Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

Commit

Permalink
Turn off 'Edit on Github' link
Browse files Browse the repository at this point in the history
  • Loading branch information
rkd-msw committed Jul 23, 2016
1 parent 35181a7 commit c586585
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions autogenerated_rst_docs/conf.py
Expand Up @@ -28,3 +28,15 @@

# Output file base name for HTML help builder.
htmlhelp_basename = 'ProjectClearwaterdoc'

# The readthedocs code updates the html_context variable, setting
# display_github to True. As we don't want to display the "Edit on Github"
# link, we create a subclass of dict that always sets display_github back to
# False after being updated.
class NoGithubDict(dict):
def update(self, other_dict):
dict.update(self, other_dict)
self['display_github'] = False

html_context = NoGithubDict()

0 comments on commit c586585

Please sign in to comment.