How do I have multiple versions of my doc with sphinx?

后端 未结 2 1361
北海茫月
北海茫月 2021-02-12 10:09

Like the documentation of python or django, how do I have multiple versions of my doc with sphinx ?

I saved my doc on git, and I want my user to be able to see documenta

2条回答
  •  野性不改
    2021-02-12 10:51

    You could just use Read The Docs to host your documentation for you. They automatically handle multiple versions with a dropdown: https://docs.readthedocs.io/en/latest/index.html

    If you'd like to host your own documentation on GitHub Pages or some other web server, I made a Sphinx extension that does what you're looking for: https://github.com/sphinx-contrib/sphinxcontrib-versioning

提交回复
热议问题