Skip to content

Suggestion: extract the module list from the Sphinx object inventory #1

@ncoghlan

Description

@ncoghlan

This is a neat project, but rather than scraping the ToC HTML (which offers no backwards compatibility guarantees, and hence may break your page scanning in future versions), you may want to read the full module details from the automatically generated Sphinx object inventory ("objects.inv") instead. That's a standard Sphinx feature that allows intersphinx to link between projects based on object references rather than direct URLs.

The following script provides an example of reading a Sphinx inventory file directly and printing out all the contents: https://gist.github.com/epc/4118456

It may also be worth filing an RFE with the intersphinx project to either break the inventory reading out to an independent module, or at least to provide a public API that encapsulates the task of retrieving and parsing an object inventory independently of Sphinx itself.

/cc @birkenfeld

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions