diff --git a/doc/conf.py b/doc/conf.py index 4ac91ba..cd3a4c2 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -141,9 +141,15 @@ else: # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. -html_theme_options = dict( - github_url="https://github.com/python-escpos/python-escpos", -) +# html_theme_options = {} + +# Show a 'Edit on GitHub' link instead of 'View page source' +html_context = { + "display_github": True, + "github_user": "python-escpos", + "github_repo": "python-escpos", + "github_version": "master", +} # Add any paths that contain custom themes here, relative to this directory. # html_theme_path = []