You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I'd like to get the
versionandreleasefor a sphinx project without a full build.My quick one-off solution is
Of course this has a number of implicit assumptions.
Questions:
sphinx configcommand in the context of Providesphinxcommand and integrate sphinx commands #5618? Then one could dosphinx config release- somewhat in analogy togit config user.name, but limited to read-only and for a start only for a predefined set of values.