question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Move docs from ReadTheDocs to Github pages

See original GitHub issue

We’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:closed
  • Created 6 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Bultakocommented, Jan 10, 2018

@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

1reaction
cdeilcommented, Jan 10, 2018

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:

There’s also other possible improvements, like the docs version chooser feature as discussed with @Bultako above.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation in GitHub Pages with mkdocs ... - Medium
Recently I wanted to migrate the documentation of my C# WordPress library WordPressPCL from the GitHub wiki to something more flexible.
Read more >
Documentation in GitHub Pages with ... - medienstudio.net -
With version 2 of the libaray coming soon the idea was to move all the docs into a static site hosted with GitHub...
Read more >
Deploying Your Docs - MkDocs
You should never edit files in your pages repository by hand if you're using the gh-deploy command because you will lose your work...
Read more >
Importing Your Documentation - Read the Docs
If you have connected your Read the Docs account to GitHub, Bitbucket, or GitLab, you will see a list of your repositories that...
Read more >
Publish Your Project Documentation with GitHub Pages
Create a /docs/index.md file on your repository's master branch. · Add your content and any necessary Jekyll front matter, then commit your ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found