如何更改狮身人面像生成的页面的图标?

发布于 2025-01-26 22:40:40 字数 254 浏览 1 评论 0原文

我希望我的狮身人面像生成的网页具有特定的图标。 在我的其他网页中,我

<link rel='icon' type='image/png' href='http://aim-bigfoot.uzh.ch/~docs/path/to/icon/favicon.png' />

&lt; head&gt;标签中具有线条。

是否可以修改模板或配置文件将此行插入结果的HTML文件中?

I would like my sphinx-generated web page to have a particular icon.
In my other web pages i have the line

<link rel='icon' type='image/png' href='http://aim-bigfoot.uzh.ch/~docs/path/to/icon/favicon.png' />

inside the <head> tag.

Is there a way to modify a template or a config file to have this line inserted in the resulting html file?

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

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

发布评论

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

评论(1

万劫不复 2025-02-02 22:40:40

我找到了解决问题的解决方案。

在conf.py中,您可以设置条目html_favicon

就我而言,我设置了:

html_favicon = "http://aim-bigfoot.uzh.ch/~docs/path/to/icon/favicon.png"

现在生成的页面具有指定的图标。

I found the solution to my problem.

In conf.py you can set the entry html_favicon.

In my case I set:

html_favicon = "http://aim-bigfoot.uzh.ch/~docs/path/to/icon/favicon.png"

Now the generated page has the specified icon.

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