-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add sphinx documentation #290
base: develop
Are you sure you want to change the base?
Conversation
For now, I mainly moved the existing docs to the new Sphinx docs, while adding some things:
These changes are drafts to test what could be relevant for the website, any feedback is really welcome (keep in mind that Sphinx is highly customizable, so we can do many things). What I have in mind for the next changes:
@sebhoerl @Nitnelav if you want we can do a call and browse the website, so you can tell me what pages you think would be nice to have |
A new documentation website built using Sphinx
How to generate the documentation locally
Install the docs requirements in
sphinx_doc/doc_requirements.txt
Build the html documentation
# in the sphinx_doc folder make html
sphinx_doc/_build/html/
(homepage isindex.html
)The build is not reactive, you have to call
make html
again after a modification. You can look at sphinx-autobuild if it bothers you.If you see a part of the page not updating correctly (like the main sections on top), you can delete the
_build
folder to force re-rendering all pages.How to write documentation pages
Pages can be written in either Markdown or reStructuredText.
We use the MyST parser extension in order to read Markdown pages.
I recommend that you mainly refer to the Sphinx/reStructuredText documentation when looking at what is possible to do, then we see if we can make it work with Markdown files. Otherwise we write it in reStructuredText.
Inspiring documentations
Non exhaustive list of nice websites built using Sphinx, if you search inspiration about what can be done and how to organize the pages:
Related issues
Close #277