Move docs from ReadTheDocs to Github pages
See original GitHub issueWe’ve discussed this before and I think there is agreement on the change, but I didn’t find an issue and wanted to take notes.
I’m moving the docs from ReadTheDocs (RTD) to Github Pages (GHP).
The problems with RTD are:
- Currently build times out -> no easy way to get it to work
- The RTD build has been hard to maintain - every few months there’s build failures and they are often hard to debug
This isn’t trivial to set up in a good way, and I’m not sure yet about the best way. I’ll document it after I have something that works.
For now, I’ll try doing everything in a separate repo gammapy/gammapy-docs, probably via a make.py script there that has sub-commands to build and deploy the current as well as older versions of the docs. I don’t know yet if I’ll also have time to add a scripted env way to set up execution environments for different versions of the docs, or if I do this manually for now for v0.6 and see if I can get it built.
For now, docs are built and deployed manually, and then if we want we can add a docs build and deploy in addition on travis-ci or Jenkins. Probably that’s only needed for the master branch and there it’s easy to do using e.g. https://github.com/Syntaf/travis-sphinx and maybe https://github.com/davisp/ghp-import .
Later we can try adding the multi-version selection on the docs. For now the only thing I could find was https://robpol86.github.io/sphinxcontrib-versioning/ and it seems unmaintained. But probably the RTD version chooser is also open source or maybe there is something else or it’s not too hard to roll our own.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (11 by maintainers)

Top Related StackOverflow Question
@cdeil nice ! as a final touch it would be good to have the very last version published, there are still many places with references to RTDs.
i.e. http://docs.gammapy.org/dev/notebooks/first_steps.html http://docs.gammapy.org/dev/development/setup.html#docs-gammapy-org
This is working now, the switch is done:
I’ve also updated the links to docs.gammapy.org from gammapy.org just now: https://github.com/gammapy/gammapy-webpage/commit/bbe0c87619cf4759867a75550a284f367ed141ea
I’m keep this issue open as a reminder for me to improve this later, and for further discussion.
At the very least:
info.jsonthat contains the latest stable version, and propagate that to here.There’s also other possible improvements, like the docs version chooser feature as discussed with @Bultako above.