Skip to content

[WIP] intersphinx, allow an inventory to be a self ref#10127

Closed
jakobandersen wants to merge 1 commit into
sphinx-doc:masterfrom
jakobandersen:intersphinx_self
Closed

[WIP] intersphinx, allow an inventory to be a self ref#10127
jakobandersen wants to merge 1 commit into
sphinx-doc:masterfrom
jakobandersen:intersphinx_self

Conversation

@jakobandersen

@jakobandersen jakobandersen commented Jan 22, 2022

Copy link
Copy Markdown
Contributor

Feature or Bugfix

  • Feature

Purpose

A resolution for #9169 where a new config variable intersphinx_self_mapping can be used to specify an inventory name which will make corresponding :external+thatName:domain:role: references to fall back as if the user wrote :domain:role:.
This is useful for Python projects where a docstring can be inherited from an external project. That external project would need to write :external: references in those docstrings and use this self-mapping mechanism.

TODOs:

  • Name of config variable?
  • Does it need an env_version bump?
  • Documentation
  • CHANGES entry

Relates

Fixes #9169

@tk0miya

tk0miya commented Jan 23, 2022

Copy link
Copy Markdown
Member

I can understand the case. But I feel very strange to annotate "local" reference as an "external" reference... I'm not sure this should be implemented as a built-in feature.

@jakobandersen

Copy link
Copy Markdown
Contributor Author

I can understand the case. But I feel very strange to annotate "local" reference as an "external" reference... I'm not sure this should be implemented as a built-in feature.

It is indeed a bit of a hax. Ideally the root of the problem, that docstrings are copied from external projects, should be addressed directly.

@tk0miya tk0miya changed the base branch from 4.x to 5.x May 22, 2022 12:55
@AA-Turner AA-Turner changed the base branch from 5.x to master October 16, 2022 15:22
@AA-Turner AA-Turner added this to the some future version milestone Apr 29, 2023
@AA-Turner AA-Turner modified the milestones: some future version, 8.2.0 Jan 30, 2025
@AA-Turner

Copy link
Copy Markdown
Member

Closing in favour of #13291.

A

@AA-Turner AA-Turner closed this Feb 2, 2025
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolve intersphinx to own project as current build

3 participants