How to change the icon for a sphinx-generated page?

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?

1 answer

  • answered 2022-05-05 18:29 user1479670

    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.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum