如何在GitHub上托管基于狮身狮身来临的文档的多个版本?
当使用github页面托管狮身人面像文档时,可能需要为不同分支或代码的标签托管多个版本的同一文档的多个版本。 但是,sphinxcontrib-multiversion
和sphinxcontrib-versioning
均未积极维护,并且它们不适用于最新版本的sphinx。
如果一个人不想使用readthedocs,并且不想坚持雪花石膏主题,那么正确的解决方案是什么?
When using Github pages to host Sphinx documentation, it might be desirable to host multiple versions of the same documentation for different branches or tag of the code.
However, both sphinxcontrib-multiversion
and sphinxcontrib-versioning
are not actively maintained and they do not work with the latest version of Sphinx.
If one does not want to use ReadTheDocs, and want to stick to the Alabaster theme, what would be the right solution ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于DIY实施,您可以参考我如何实现此目标,以 rinohtype文档。我首先为狮身人面像RTD主题实施了此功能,然后切换到狮身人面像材料。请注意,这两个主题都提供了版本选择器,我认为Alabaster不会。
这些是相关的提交:
For a DIY implementation, you can refer to how I implemented this for the rinohtype documentation. I first implemented this for the Sphinx RTD theme and later switched to Sphinx-Immaterial. Note that both of these themes provide version selectors, which I don't think Alabaster does.
These are the relevant commits: