-
Notifications
You must be signed in to change notification settings - Fork 12
[WIP] Sphinx #39
base: master
Are you sure you want to change the base?
[WIP] Sphinx #39
Conversation
Before doing this for too many source files, we should decide on a docstring style that will go well with Sphinx. There are now several different options shown in
I don't have a strong preference, as long as it is clear and readable. |
Conflicts: ipi/engine/atoms.py
- list of extensions - current Sphinx version options - theme - Read the Docs
We actually keep some PDFs in the repository, can not git ignore all of them.
I made some progress on the new documentation. The current version should showcase some of the features of Sphinx that we want to use. The text is very much placeholder at the moment and subject to change. I just want to get all the infrastructure in place before we start moving text from the LaTeX documentation or adding more. I rolled back to changes to To illustrate what the autogenerated documentation could look like, I included two modules. Once it is clear that and how exactly we want to proceed, it is easy to add the rest. There are some options to fine-tune what exactly gets generated. I have tested that both the HTML and LaTeX builds of the documentation work. You can get them simply by doing I could upload the generated HTML and PDF files somewhere, but that gets clumsy very quickly with edits and trying out things. In the future, we can use Read the Docs to generate and host the HTML documentation, but that requires a public repository. I think the last piece that needs to be added is the input file documentation, but I think it should be easy to adapt the current code that write LaTeX source to write RST files. What do you think? |
Work in progress, do not merge.
This adds documentation in Sphinx. The idea is to combine both hand-written and automatic documentation to replace the LaTeX manual. If a PDF is needed, Sphinx can render to LaTeX, too.