Search code examples
python-sphinxread-the-docs

Removing the view source link when using Read The Docs & Sphinx with ReadTheDocs Theme


Is there any way to remove the "View page source" link from a sphinx generated read the docs theme page?

enter image description here

There is a similar question here and it recommends finding the breadcrumbs file, but I can't find one


Solution

  • In your conf.py file, try setting the variable html_show_sourcelink to False,

    html_show_sourcelink = False
    

    If it does not exist, just create it. Then, compile again the project,

    $ make html