Skip to content

Commit

Permalink
Link mastodon from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasaglia committed Sep 11, 2023
1 parent 7427e6a commit a86dc1b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/mkdocs.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,5 @@ nav:
- '<i class="fab fa-telegram"></i> Telegram Chat': ${DOCS_CHAT_URL}
- '<i class="fab fa-gitlab"></i> Code Browser': ${DOCS_REPO_URL}
- '<i class="fa fa-bug"></i> Issues': ${URL_ISSUES}
- '<i class="fa-brands fa-mastodon"></i> Mastodon': https://floss.social/@glax
- '<i class="fas fa-external-link-alt"></i> More Links': contributing/links.md
4 changes: 2 additions & 2 deletions docs/theme/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<meta property='og:image' content='{{ page.meta.photo|canonical_url }}'/>
{% endif %}

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.0/css/all.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.0/css/v4-shims.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v6.4.2/css/all.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v6.4.2/css/v4-shims.css">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/build/web/hack.min.css">
<link href='//rsms.me/inter/inter.css' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,600,700&subset=latin-ext,latin' rel='stylesheet' type='text/css'>
Expand Down
8 changes: 7 additions & 1 deletion docs/theme/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ nav_item.title }} <b class="caret"></b></a>
<ul class="dropdown-menu">
{% for nav_item in nav_item.children %}
{% include "nav-sub.html" %}
{% if "mastodon" in nav_item.title.lower() %}
<li {% if nav_item.active %}class="active"{% endif %}>
<a href="{{ nav_item.url|url }}" rel="me">{{ nav_item.title }}</a>
</li>
{% else %}
{% include "nav-sub.html" %}
{% endif %}
{% endfor %}
</ul>
</li>
Expand Down

0 comments on commit a86dc1b

Please sign in to comment.