Skip to content
This repository was archived by the owner on Jul 9, 2021. It is now read-only.
This repository was archived by the owner on Jul 9, 2021. It is now read-only.

Figure out how to best call Sphinx from Python #1

Closed
@choldgraf

Description

@choldgraf

Most people interact with Sphinx via the command line (in particular, sphinx-build). We'll want to interact with it from within Python as a part of the controller process.

It looks like the Sphinx building / initializing step is here:

https://github.com/sphinx-doc/sphinx/blob/3.x/sphinx/cmd/build.py#L269

However, there is some logic in there that we should investigate. In particular, there are some context managers that seem to be patching docutils before calling the Sphinx app, and also some parsing of arguments etc. We should make sure those aren't doing something important before just calling Sphinx(

Maybe @chrisjsewell has experience with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions