Skip to content

[FEATURE] Introduce option directive #636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 2, 2023
Merged

Conversation

linawolf
Copy link
Contributor

@linawolf linawolf commented Oct 26, 2023

Options can be linked with the special text-role :option:

https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#directive-option

depends on #627

@linawolf linawolf marked this pull request as draft October 26, 2023 15:37
@linawolf linawolf force-pushed the feature/standard-domain branch 2 times, most recently from 1a04504 to b8d5ef5 Compare October 27, 2023 15:08
@linawolf linawolf marked this pull request as ready for review October 27, 2023 15:08
@linawolf linawolf requested a review from jaapio October 27, 2023 15:08
Copy link
Member

@jaapio jaapio left a comment

Choose a reason for hiding this comment

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

It feels like the term intersphinxDomain is invalid or should not be part of our core library. I'm still thinking if and how intersphinx should be part of our core. However domains are a more common thing in rst, at least it sounds less sphinx specific. Which makes sense to me to rename the current getIntersphinxDomain to getDomain

I think the :option: domain should have it's own ReferenceResolver, it's another type of reference, so let's model it like that. This ReferenceResolver should be part of the Rst package as it is not a shared concept between RST and Markdown for example. Probably this is also the reason why you have put the node inside the RST extension.

@linawolf linawolf force-pushed the feature/standard-domain branch from 50ae817 to 95e84ad Compare November 1, 2023 07:55
@linawolf linawolf requested a review from jaapio November 1, 2023 07:57
@linawolf linawolf enabled auto-merge November 1, 2023 10:15
@linawolf linawolf merged commit 4d6ebd2 into main Nov 2, 2023
@linawolf linawolf deleted the feature/standard-domain branch November 2, 2023 07:42
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