Closed kloczek closed 1 year ago
Documentation is dynamically generated, all you need to do is run gen_docs.py
.
Some changes might be required, here:
I suspect you're seeing the error, because of sphinx configuration
conf.py
and some intermediate files, generated bygen_docs.py
, required for the build.
Issue has been resolved? 🤔
Developers (at least I) intend to generate documentation using that script, you could do the same. You haven't given me a strong reason to using sphinix-build
directly.
gen_docs.py
uses pypandoc
to convert the dynamically generated markdown files to reStructuredText. Only then sphinx-build
would have something to work on.
From https://github.com/python-validators/validators/issues/258 I suspect you're automating something. You can use (or modify or even create an equivalent bash script for) the following function to suit your needs.
Moment .. so why calling that script is not added to the conf.py and or why it is not part of that file? 🤔
How, can you please explain?
conf.py it is just python script and it can contain any code as well.
But, it's supposed to be a configuration file for Sphinx.
Does it have some sort of hooks to run other scripts as well? Any reference would be helpful.
It is only impession that it is config files. Please have a look on conf.py files in other projects. You can ffjnd many examples of preproessing files which are used by sphinx to render document in one of the requested formats. Really .. it is possible to integrate that external script straight into conf.py.
Looks like something is wrong with
validators
sphinx documentationThat is odd a bit because actually that file exist