Skip to content

Commit

Permalink
fix github-banner in html documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bneron committed Dec 6, 2024
1 parent 9e115c2 commit 89667a9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions doc/source/_static/github-banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 3 additions & 4 deletions doc/source/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

{% block footer %}

<a href="https://github.com/gem-pasteur/macsyfinder">
<a class="github" href="https://github.com/{{ github_user }}/{{ github_repo }}">
<img style="position: absolute; top: 0; right: 0; border: 0;"
src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67"
alt="Fork me on GitHub"
data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png">
src="https://raw.githubusercontent.com/{{ github_user }}/{{ github_repo }}/refs/heads/main/doc/source/_static/github-banner.svg"
alt="Fork me on GitHub" />
</a>

{% endblock %}
4 changes: 4 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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://...)
Expand Down

0 comments on commit 89667a9

Please sign in to comment.