Skip to content

Commit

Permalink
Improve mark-up in docs (follow-up to PR #10366)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbu committed Jun 26, 2022
1 parent d4aba4b commit 8ecbe8a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGES
Expand Up @@ -17,7 +17,8 @@ Features added
--------------

* #10366: std domain: Add support for emphasising placeholders in :rst:dir:`option`
directives through a new ``option_emphasise_placeholders`` configuration option.
directives through a new :confval:`option_emphasise_placeholders` configuration
option.
* #10439: std domain: Use the repr of some variables when displaying warnings,
making whitespace issues easier to identify.
* #10571: quickstart: Reduce content in the generated ``conf.py`` file. Patch by
Expand Down
2 changes: 1 addition & 1 deletion doc/usage/configuration.rst
Expand Up @@ -709,7 +709,7 @@ General configuration
.. confval:: option_emphasise_placeholders

Default is ``False``.
When enabled, emphasise placeholders in ``.. option:`` directives.
When enabled, emphasise placeholders in :rst:dir:`option` directives.
To display literal braces, escape with a backslash (``\{``). For example,
``option_emphasise_placeholders=True`` and ``.. option:: -foption={TYPE}`` would
render with ``TYPE`` emphasised.
Expand Down
2 changes: 1 addition & 1 deletion doc/usage/restructuredtext/domains.rst
Expand Up @@ -1751,7 +1751,7 @@ There is a set of directives allowing documenting command-line programs:
like ``:option:`dest_dir```, ``:option:`-m```, or ``:option:`--module```).

Use :confval:`option_emphasise_placeholders` for parsing of
"variable part" of a literal text (similarly to the ``samp`` role).
"variable part" of a literal text (similarly to the :rst:role:`samp` role).

``cmdoption`` directive is a deprecated alias for the ``option`` directive.

Expand Down

0 comments on commit 8ecbe8a

Please sign in to comment.