在.readthedocs.yaml之前构建旧版本的文档

发布于 2025-01-30 16:09:04 字数 571 浏览 0 评论 0原文

我正在进口一个阅读文档的项目;我有一系列代表图书馆较旧版本的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文