8 ms·
An alternative is to host the documentation on readthedocs[0] instead: rtfd is dedicated to hosting sphinx documentations so it'll build the documentation on it
by masklinn 15y ago
An alternative is to host the documentation on readthedocs[0] instead: rtfd is dedicated to hosting sphinx documentations so it'll build the documentation on its own, it understands git (and mercurial, and bazaar, and svn) repositories[1] and it provide webhooks to get it to update your documentation on push[2]. In fact, Github has built-in support for rtfd so you only need to check the corresponding option.
That way, no need to mess around with committing your (compiled) doc in a separate branch and remembering to push your compiled artifacts.
[0] http://readthedocs.org/ http://readthedocs.org/
[1] http://read-the-docs.readthedocs.org/en/latest/features.html#version-control-support-matrix http://read-the-docs.readthedocs.org/en/latest/features.html...
[2] http://read-the-docs.readthedocs.org/en/latest/webhooks.html http://read-the-docs.readthedocs.org/en/latest/webhooks.html
- palewire 15y agoI should have mentioned alternatives in my post. Thanks for picking me up. Readthedocs is a great option.
- gtaylor 15y agoRTD is the easiest way to do this. It works wonderfully, is free, and if you use GitHub's project hooks in your project settings, the builds start almost immediately after a push. I used to do what this post suggested, but got tired of managing all of the gh-pages branches as I changed/added new projects.