Skip to content
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

doc: fix intersphinx references #126

Merged
merged 3 commits into from
Jan 22, 2023
Merged

doc: fix intersphinx references #126

merged 3 commits into from
Jan 22, 2023

Conversation

jnikula
Copy link
Owner

@jnikula jnikula commented Jan 20, 2023

First, fix the intersphinx URL

Second, add 'confval' object type [1] to be able to reference objects of that type using intersphinx. (Yes, it's also possible to turn conf.py into an extension just by adding a setup() function.)

Third, fix the intersphinx references [2].

[1] sphinx-doc/sphinx#5562 (comment) [2] https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html

doc/extension.rst Outdated Show resolved Hide resolved
doc/extension.rst Outdated Show resolved Hide resolved
The object type for the "extensions" target has changed to
"confval". It's a custom object type in the Sphinx documentation, and
intersphinx is unable to reference it unless we define that locally as
well. [1]

Turn conf.py into an extension by adding the setup() function (yes,
that's indeed possible), add the "confval" object type, and fix the
extensions reference role to match that.

[1] sphinx-doc/sphinx#5562 (comment)
See [1]. The role was added in Sphinx 4.4, so require that for the
documentation build.

[1] https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html
@jnikula
Copy link
Owner Author

jnikula commented Jan 21, 2023

Force pushed v2 with the issues addressed.

@BrunoMSantos
Copy link
Collaborator

Force pushed v2 with the issues addressed.

Shame about the external syntax, but so be it. Looks good to me!

@jnikula jnikula merged commit 4c1f29e into master Jan 22, 2023
@jnikula jnikula deleted the intersphinx branch January 22, 2023 15:34
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