Skip to content

Commit

Permalink
📝 Show a link to Trio GitHub repo instead of TrioDocs
Browse files Browse the repository at this point in the history
Use nightscout/Trio instead of `nightscout/trio-docs`
The overridden template is used in the header, footer and navigation
(on small screens).
Fixes nightscout#92
  • Loading branch information
ebouchut committed Oct 30, 2024
1 parent 119c6da commit 4cf0463
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ extra_javascript:
extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/nightscout/trio-docs
link: https://github.com/nightscout/Trio
name: Trio on GitHub
- icon: fontawesome/brands/discord
link: https://discord.gg/FnwFEFUwXE
Expand Down
8 changes: 8 additions & 0 deletions overrides/partials/source.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{#- Override mkdocs-material theme to show the nightscout/Trio GitHub repository instead nightscout/trio-docs -#}
<a href="https://github.com/nightscout/Trio/" title="{{ lang.t('source') }}" class="md-source" data-md-component="source">
<div class="md-source__icon md-icon">
{% set icon = config.theme.icon.repo or "fontawesome/brands/git-alt" %} {%
include ".icons/" ~ icon ~ ".svg" %}
</div>
<div class="md-source__repository">nightscout/Trio</div>
</a>

0 comments on commit 4cf0463

Please sign in to comment.