question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

intersphinx mapping

See original GitHub issue

I am working on a project that uses sphinx to build the docs. We use intersphinx to cross link to other projects and we would like to link to Ax for type hints and other resources. Because in Ax’s docs scripts, after you build your docs with sphinx, you copy the html files for docusaurus and then the build doesn’t have access to the generated objects.inv the gives the inventory of objects for intersphinx linking. Without it, you can’t do the intersphinx mapping.

I am not sure if it would be possible, but maybe if you also copy the objects.inv over as well. It usually goes in the same folder as your index.html file, which is usually in the created _build directory in sphinx, but that directory isn’t there, so if you all did do this, maybe where index.html is, so in the api folder in the gh_pages branch.

See related Botorch issue https://github.com/pytorch/botorch/issues/1464

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
madeline-scypherscommented, Oct 26, 2022

@pcanaran

Thanks!

  1. Instructions to validate can be found here at the bottom. There is a command line instructions. It should look something like this

     python -m sphinx.ext.intersphinx https://ax.dev/api/objects.inv 
    

    or

     python -m sphinx.ext.intersphinx https://ax.dev/objects.inv 
    

    depending on where the objects.inv is.

  2. https://github.com/madeline-scyphers/boa is the project. Has in the intersphinx section one intersphinx linking. On this docs update branch there are more examples

0reactions
pcanarancommented, Nov 30, 2022

@madeline-scyphers Unfortunately we didn’t have a chance to get to this. I added it to our wishlist tracking issue #566. Closing this one as we have tracking there. In the mean time if you prefer you can also send a PR instead. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sphinx.ext.intersphinx – Link to other projects' documentation
Each Sphinx HTML build creates a file named objects.inv that contains a mapping from object names to URIs relative to the HTML set's...
Read more >
How to Link to Other Documentation Projects With Intersphinx
Sometimes you may need to link to a specific section of another project's documentation. While you could just hyperlink directly, there is a...
Read more >
Intersphinx: easy linking — Sphinx-lesson documentation
Configuration details and how to link to other sites are found at the docs for intersphinx . For most Sphinx-documented projects, use the...
Read more >
Various intersphinx mappings - gists · GitHub
Various intersphinx mappings . GitHub Gist: instantly share code, notes, and snippets.
Read more >
seed-intersphinx-mapping - PyPI
Populate the Sphinx 'intersphinx_mapping' dictionary from the project's requirements. Docs. Documentation Build Status Docs Check Status. Tests.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found