Sphinx RTD:更改输出文件夹名称

发布于 2025-01-21 15:24:05 字数 201 浏览 0 评论 0原文

我想将sphinx/read-the-docs 更改为html output 文件夹名称而不是'docs'而不是'html'。有办法这样做吗?我一直在浏览conf.py文档,唯一看起来很接近的东西就是:

html_baseurl ='docs',

但它无能为力:输出文件夹名称默认为'html'。

I would like to change the Sphinx / Read-the-Docs make html output folder name to 'docs' rather than 'html'. Is there a way to do this? I've been going over the conf.py documentation and the only thing that looks close to what might do it is:

html_baseurl = 'docs'

but it does nothing: the output folder name defaults to 'html'.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

筑梦 2025-01-28 15:24:05

您可以手动运行sphinx-build命令,您无需使用提供的makefile。

sphinx-build -M html "docs/source" "whatever/docs"

You can run the sphinx-build command by hand, you do not need to use the supplied Makefile.

sphinx-build -M html "docs/source" "whatever/docs"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文