5

I'm working on my RTFM Documentation and I d'like to change the html-title. Currently, my title looks like this:

<title>[PAGE TITLE] — My Documentation  documentation</title>

Everything the [PAGE TITLE] part as well as - My Documentation part is fine like it is, but I don't need the second "documentation"

In the end, it should look like this:

<title>[PAGE TITLE] — My Documentation</title>

Does anyone knows where I can remove it?

mzjn
  • 48,958
  • 13
  • 128
  • 248
roland
  • 101
  • 2
  • 7

1 Answers1

7

Use the configuration value html_title. You can set it either in your conf.py or on the command line.

conf.py

html_title = 'Beep Boop'

output

<title>[PAGE TITLE] &#8212; Beep Boop</title>
Steve Piercy
  • 13,693
  • 1
  • 44
  • 57
  • 6
    Where does the `PAGE TITLE` comes from? I have a page generating a as this value. Is it the `h1` title? – cglacet Oct 25 '20 at 16:58
  • Questions in comments will not be answered. Please click the "Ask Question" button in the upper right to ask your new question. – Steve Piercy Oct 26 '20 at 08:06
  • 7
    That's just a question so you can improve your answer. It would make no sense to duplicate this question to ask how to modify the whole html title (and not just part of it). I probably googled something like *change html title in sphinx* and ended up here. – cglacet Oct 26 '20 at 09:13
  • Your question is not the same as the OP's. – Steve Piercy Oct 26 '20 at 10:10
  • @cglacet, you probably already know this but seeing as this question is well-ranked on search engines I'll answer it: yes, the `PAGE TITLE` comes from the first header ( `# PAGE TITLE` ) on the page. – jdsalaro Jul 05 '23 at 08:33