Skip to content

Query version and release values that sphinx will use #14254

@timhoffm

Description

@timhoffm

I'd like to get the version and release for a sphinx project without a full build.

My quick one-off solution is

cd docs && python -c "import conf; print(conf.version); print(conf.release)"

Of course this has a number of implicit assumptions.

Questions:

  • Is there a better out-of-the-box way of doing this?
  • Would it be reasonable to implement a sphinx config command in the context of Provide sphinx command and integrate sphinx commands #5618? Then one could do sphinx config release - somewhat in analogy to git config user.name, but limited to read-only and for a start only for a predefined set of values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions