Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove "Edit on..." button on autogenerated docs
Remove the "Edit on GitHub" button on doc pages that are autogenerated by Sphinx's `autosummary` extension, because these doc pages do not have a source file on GitHub. See sphinx-doc/sphinx#2386 (comment)
- Loading branch information
Showing
7 changed files
with
37 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- | ||
Custom template to remove the "Edit on ..." button in the header of doc | ||
pages hosted by Read the Docs. See | ||
https://docs.readthedocs.io/en/stable/guides/remove-edit-buttons.html | ||
and | ||
https://github.com/sphinx-doc/sphinx/issues/2386#issuecomment-478403897 | ||
--> | ||
|
||
{%- extends "sphinx_rtd_theme/breadcrumbs.html" %} | ||
|
||
{% block breadcrumbs_aside %} | ||
{% if not meta or meta.get('github_url') != 'hide' %} | ||
{{ super() }} | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
:github_url: hide | ||
|
||
{{ name | escape | underline}} | ||
|
||
.. currentmodule:: {{ module }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
:github_url: hide | ||
|
||
{{ name | escape | underline}} | ||
|
||
.. currentmodule:: {{ module }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
:github_url: hide | ||
|
||
{{ name | escape | underline}} | ||
|
||
.. currentmodule:: {{ module }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters