Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/_overrides/bluesky.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions docs/_overrides/partials/source.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{% import "partials/language.html" as lang with context %}
<a href="{{ config.repo_url }}" title="{{ lang.t('source.link.title') }}" 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">
{{ config.repo_name }}
</div>
</a>
<a href="{{ config.theme.bluesky_url }}" title="Go to Bluesky" class="md-source">
<div class="md-source__icon md-icon">
{% include "bluesky.svg" %}
</div>
<div class="md-source__repository">
{{ config.theme.bluesky_name }}
</div>
</a>
14 changes: 14 additions & 0 deletions docs/_static/custom_css.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ html {
scroll-padding-top: 50px;
}

/* Fit the Bluesky handle alongside the GitHub one in the top right. */
div.md-header__source {
width: revert;
max-width: revert;
}

a.md-source {
display: inline-block;
}

.md-source__repository {
max-width: 100%;
}

/* Emphasise sections of nav on left hand side */
nav.md-nav {
padding-left: 5px;
Expand Down
Loading