From 89667a9bd5e5c7808bfeb0944472799f23a4d76e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bertrand=20N=C3=A9ron?= Date: Fri, 6 Dec 2024 15:26:51 +0100 Subject: [PATCH] fix github-banner in html documentation --- doc/source/_static/github-banner.svg | 5 +++++ doc/source/_templates/layout.html | 7 +++---- doc/source/conf.py | 4 ++++ 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 doc/source/_static/github-banner.svg diff --git a/doc/source/_static/github-banner.svg b/doc/source/_static/github-banner.svg new file mode 100644 index 00000000..c47d9dc0 --- /dev/null +++ b/doc/source/_static/github-banner.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/doc/source/_templates/layout.html b/doc/source/_templates/layout.html index ae5dbeec..f524a1bd 100644 --- a/doc/source/_templates/layout.html +++ b/doc/source/_templates/layout.html @@ -2,11 +2,10 @@ {% block footer %} - + Fork me on GitHub + src="https://raw.githubusercontent.com/{{ github_user }}/{{ github_repo }}/refs/heads/main/doc/source/_static/github-banner.svg" + alt="Fork me on GitHub" /> {% endblock %} \ No newline at end of file diff --git a/doc/source/conf.py b/doc/source/conf.py index a0bdd532..fd1339be 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -64,6 +64,10 @@ # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] +html_context = { + 'github_user': 'gem-pasteur', + 'github_repo': 'macsyfinder' +} # These paths are either relative to html_static_path # or fully qualified paths (eg. https://...)