Closed kloczek closed 10 months ago
Can this be run inside the venv - using pdm run sphinx-build ...
?
This way there's a single source of truth for the project environment, instead of using a hack.
Can this be run inside the venv - using
pdm run sphinx-build ...
?
Yes it can be however with patch which provided nullifies necessity of such procedure. It follows KISS principle ..
It modifies the sys path - it wouldn't be able to include any possible dependencies or account for changes to the layout/build-system. Using the venv also allows for a specified version of sphinx to be used along with all the correct dependencies. Is this for packaging into an RPM? If so, I can change it
It modifies the sys path - it wouldn't be able to include any possible dependencies or account for changes to the layout/build-system. Using the venv also allows for a specified version of sphinx to be used along with all the correct dependencies. Is this for packaging into an RPM? If so, I can change it
pytoolconfig
but version which is in source tree.Ok, just keep in mind this package contains a sphinx plugin used in the documentation of this project. It should work, but may cause issues in the future
You would need sphinx_rtd_theme, tabulate, and sphinx_autodoc_typehints to build it out of the venv currently.
Just tested 1.3.1 and issue with alter sys.path
is sorted out (thank you) however issue with sphinx warnings still is sorted out 😋
First of all currently it is not possible to use straight
sphinx-build
command to build documentation out of source treeThis can be fixed by patch like below:
This patch fixes what is in the comment and that can of fix is suggested in sphinx example copy.py https://www.sphinx-doc.org/en/master/usage/configuration.html#example-of-configuration-file
Than .. on building my packages I'm using
sphinx-build
command with-n
switch which shows warmings about missing references. These are not critical issues.Here is the output with warnings:
You can peak on fixes that kind of issues in other projects https://github.com/RDFLib/rdflib-sqlalchemy/issues/95 https://github.com/RDFLib/rdflib/pull/2036 https://github.com/click-contrib/sphinx-click/commit/abc31069 https://github.com/frostming/unearth/issues/14 https://github.com/jaraco/cssutils/issues/21 https://github.com/latchset/jwcrypto/pull/289 https://github.com/latchset/jwcrypto/pull/289 https://github.com/pypa/distlib/commit/98b9b89f https://github.com/pywbem/pywbem/pull/2895 https://github.com/sissaschool/elementpath/commit/bf869d9e https://github.com/sissaschool/xmlschema/commit/42ea98f2 https://github.com/sqlalchemy/sqlalchemy/commit/5e88e6e8