Skip to content

Comments

doc: add example for the envvar directive#14295

Open
him2him2 wants to merge 1 commit intosphinx-doc:masterfrom
him2him2:doc-envvar-directive-example
Open

doc: add example for the envvar directive#14295
him2him2 wants to merge 1 commit intosphinx-doc:masterfrom
him2him2:doc-envvar-directive-example

Conversation

@him2him2
Copy link

Summary

The .. envvar:: directive documentation currently has no example showing that it accepts body text with a description. This contrasts with the neighbouring .. confval:: directive, which has a full example (RST source + rendered output).

This PR adds a matching example following the same pattern.

Hat tip to @webknjaz for the suggestion during a pytest review — thanks for pointing this out!

The ``.. envvar::`` directive documentation did not include an example
showing that it accepts body text with a description, unlike the
neighbouring ``confval`` directive which has a full example. Add one
following the same pattern (RST source + rendered output).
Copy link
Contributor

@webknjaz webknjaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The render looks good: https://sphinx--14295.org.readthedocs.build/en/14295/usage/domains/standard.html#directive-envvar. The ty failure in CI is unrelated.

cc @AA-Turner would you mind merging this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants