Removing "Powered by Sphinx" from HTML footer

47 views
Skip to first unread message

Bob DuCharme

unread,
Jan 14, 2021, 12:46:26 PM1/14/21
to sphinx-users
https://pythonhosted.org/CodeChat/CodeChat/template/conf.py.html shows us that setting html_show_sphinx to True adds "Created using Sphinx" to the HTML footer and setting it to False removes it. 

That page's HTML footer includes "Powered by Sphinx 1.4", and html_show_sphinx doesn't seem to turn that off. Is there a way to turn it off? 

Thanks,
Bob

Stefano David

unread,
Jan 14, 2021, 1:18:31 PM1/14/21
to sphinx...@googlegroups.com
If you use alabaster theme you need to configure it in theme.conf

html_theme_options = {
'show_powered_by' : 'False',
}

Reference: https://alabaster.readthedocs.io/en/latest/
customization.html#header-footer-options

HTH,
Stefano

Bob DuCharme

unread,
Jan 14, 2021, 1:31:05 PM1/14/21
to sphinx...@googlegroups.com
Thanks for the quick response! That didn't work when I put it in theme/theme.conf, but it did work when I put it in conf.py, so I'm all set. 

(I should have mentioned in my original  post that I'm running release 1.8.5.) 

Bob

--
You received this message because you are subscribed to the Google Groups "sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/rtq1te%24btb%242%40ciao.gmane.io.

Stefano David

unread,
Jan 15, 2021, 4:54:19 AM1/15/21
to sphinx...@googlegroups.com
Hi Bob,

On Thu, 14 Jan 2021 13:30:50 -0500, Bob DuCharme wrote:

> Thanks for the quick response! That didn't work when I put it in
> theme/theme.conf, but it did work when I put it in conf.py, so I'm all
> set.
Glad to hear it worked! Well, the section in their doc is indeed called
"Theme options", which might seem misleading, but to their defense, at its
beginning it's clearly stated that Alabaster customisation "is the
html_theme_options variable, set in conf.py".

Cheers,
Stefano



Bob DuCharme

unread,
Jan 16, 2021, 9:38:21 AM1/16/21
to sphinx...@googlegroups.com
Yeah, that's how I eventually figured it out. 

Thanks,

Bob

--
You received this message because you are subscribed to the Google Groups "sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages