Skip to content

Commit a2791a7

Browse files
committed
added custom_dir and site_author, removed copy_button.html,
1 parent fd5d83f commit a2791a7

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
site_name: Reitti Documentation
22
site_url: https://www.dedicatedcode.com/projects/reitti/
33
repo_url: https://github.com/dedicatedcode/reitti
4+
site_author: Daniel Graf
5+
edit_url: https://github.com/dedicatedcode/reitti-documentation/edit/main/docs/
46

57
theme:
68
name: shadcn
@@ -11,6 +13,7 @@ theme:
1113
dark: github-dark
1214
topbar_sections: false
1315
show_datetime: true
16+
custom_dir: theme/overrides
1417
plugins:
1518
- mkdocs-nav-weight
1619
- badges

theme/overrides/templates/copy_button.html

Whitespace-only changes.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<footer view-transition-name="footer"
2+
class="group-has-[.section-soft]/body:bg-surface/40 3xl:fixed:bg-transparent dark:bg-transparent">
3+
<div class="container-wrapper px-4 xl:px-6">
4+
<div class="flex h-(--footer-height) items-center justify-between">
5+
<div class="text-muted-foreground w-full text-center text-xs leading-loose sm:text-sm">
6+
{% if config.site_author %}
7+
Built by {{ config.site_author | parse_author}} &mdash;
8+
{% endif %}
9+
<a href="https://github.com/asiffer/mkdocs-shadcn">shadcn theme</a> provided by
10+
<a href="https://github.com/asiffer">@asiffer</a>
11+
&mdash;
12+
<a href="{{ config.edit_url }}/{{ page.file.edit_uri }}">edit this page on github</a>
13+
</div>
14+
</div>
15+
</div>
16+
</footer>

0 commit comments

Comments
 (0)