Skip to content

Commit

Permalink
Merge branch 'doc/documenting_code_format_fix' into 'master'
Browse files Browse the repository at this point in the history
docs: change descriptions of substitution defines to use literal blocks

See merge request espressif/esp-idf!8699
  • Loading branch information
krzychb committed May 14, 2020
2 parents a0288c1 + 6d56ac8 commit ad9e514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/contribute/documenting-code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,11 @@ Would render in the documentation as:

This is a {IDF_TARGET_NAME}, with /{IDF_TARGET_PATH_NAME}/soc.c, compiled with `xtensa-{IDF_TARGET_TOOLCHAIN_NAME}-elf-gcc` with `CONFIG_{IDF_TARGET_CFG_PREFIX}_MULTI_DOC`.

This extension also supports markup for defining local (within a single source file) substitutions. Place a definition like the following into a single line of the RST file:
This extension also supports markup for defining local (within a single source file) substitutions. Place a definition like the following into a single line of the RST file::

{\IDF_TARGET_SUFFIX:default="DEFAULT_VALUE", esp32="ESP32_VALUE", esp32s2="ESP32S2_VALUE"}

This will define a target-dependent substitution of the tag {\IDF_TARGET_SUFFIX} in the current RST file. For example:
This will define a target-dependent substitution of the tag {\IDF_TARGET_SUFFIX} in the current RST file. For example::

{\IDF_TARGET_TX_PIN:default="IO3", esp32="IO4", esp32s2="IO5"}

Expand Down

0 comments on commit ad9e514

Please sign in to comment.