Multiple git in header #5009
Unanswered
countnazgul
asked this question in
Q&A
Replies: 1 comment
-
Jup, that should be possible. You could just hardcode the second git repository in the <!-- Repo from mkdocs.yml -->
<a
href="{{ config.repo_url }}"
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">
{{ config.repo_name }}
</div>
</a>
<!-- Second repository (hardcoded) -->
<a
href="https://github.com/squidfunk/iframe-worker"
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">
squidfunk/iframe-worker
</div>
</a> Otherwise, you can put arbitrary keys in the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
on my docs site im hosting info about multiple projects. And each project have its own github repo.
Is it possible to display the git repository stats (the one in the header) but per project/folder?
As far as i can see at the moment the only way to set this is via
repo_url
inmkdocs.yml
but this will be for the whole site.Thanks!
Stefan
Beta Was this translation helpful? Give feedback.
All reactions