From a063e81862e32cddb78a3ed9ec2db23966dc4011 Mon Sep 17 00:00:00 2001 From: belono Date: Fri, 21 Feb 2025 20:02:56 +0100 Subject: [PATCH] Fix Include link to github in documentation topbar --- doc/conf.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 = []