在.readthedocs.yaml之前构建旧版本的文档
我正在进口一个阅读文档的项目;我有一系列代表图书馆较旧版本的git标签。我也想为这些版本生成文档。问题是放置该标签时,在存储库中没有。
通常,在这种情况下,我会将一些相关设置放在Web界面中,这些设置清楚地表明,在存在.readThedocs.yaml
文件的情况下,这些设置将被忽略。但是我的配置文件确实有一个pre_build
任务
version: 2
build:
os: "ubuntu-22.04"
tools:
python: "3.10"
jobs:
pre_build:
- doxygen ./doc/doxygen/doxygen.conf
sphinx:
builder: html
configuration: doc/conf.py
python:
install:
- requirements: doc/requirements.txt
我可以使用“当前”配置文件来构建过去的Git标签文档?
I am importing a project to read the docs; I have a series of git tags representing older versions of the library; which I would like to have docs generated for those versions as well. The problem is that there is no .readthedocs.yaml
file in the repo when that tag was placed.
Normally in this case I would put some of the relevant settings in web interface, which clearly states those settings would be ignored with the presence of a .readthedocs.yaml
file; but my config file does have a pre_build
task
version: 2
build:
os: "ubuntu-22.04"
tools:
python: "3.10"
jobs:
pre_build:
- doxygen ./doc/doxygen/doxygen.conf
sphinx:
builder: html
configuration: doc/conf.py
python:
install:
- requirements: doc/requirements.txt
Is there a way I can build documentation for past git tags using the "current" config file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论