Skip to content

Commit

Permalink
[Docs] Some navigation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingpie committed May 19, 2024
1 parent 0e4e706 commit cc91899
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 49 deletions.
21 changes: 16 additions & 5 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,17 @@ nav:
- Toggle Animation: v1/settings/toggle-animation.md
- Windows Terminal Command: v1/settings/windows-terminal-command.md

- Misc:
- Changelog: misc/changelog.md
- Reporting Issues: misc/reporting-issues.md
- Reporting Issues: misc/reporting-issues.md

theme:
name: material
custom_dir: overrides
favicon: assets/favicon.ico
features:
- navigation.expand
- navigation.sections
- navigation.tabs
- navigation.tracking
font: false
highlightjs: true
hljs_languages:
Expand All @@ -68,8 +69,18 @@ theme:
repo: fontawesome/brands/github
logo: assets/favicon.png
palette:
scheme: slate
primary: blue
- media: "(prefers-color-scheme: light)"
scheme: default
primary: indigo
toggle:
icon: material/weather-night
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: indigo
toggle:
icon: material/weather-sunny
name: Switch to light mode

repo_name: windows-terminal-quake
repo_url: http://github.com/flyingpie/windows-terminal-quake
Expand Down
44 changes: 0 additions & 44 deletions docs/overrides/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,48 +1,4 @@
<footer class="md-footer">

<!-- Link to previous and/or next page -->
{% if page.previous_page or page.next_page %}
<div class="md-footer-nav">
<nav class="md-footer-nav__inner md-grid" aria-label="{{ lang.t('footer.title') }}">

<!-- Link to previous page -->
{% if page.previous_page %}
<a href="{{ page.previous_page.url | url }}" class="md-footer-nav__link md-footer-nav__link--prev"
rel="prev">
<div class="md-footer-nav__button md-icon">
{% include ".icons/material/arrow-left.svg" %}
</div>
<div class="md-footer-nav__title">
<div class="md-ellipsis">
<span class="md-footer-nav__direction">
{{ lang.t("footer.previous") }}
</span>
{{ page.previous_page.title }}
</div>
</div>
</a>
{% endif %}

<!-- Link to next page -->
{% if page.next_page %}
<a href="{{ page.next_page.url | url }}" class="md-footer-nav__link md-footer-nav__link--next" rel="next">
<div class="md-footer-nav__title">
<div class="md-ellipsis">
<span class="md-footer-nav__direction">
{{ lang.t("footer.next") }}
</span>
{{ page.next_page.title }}
</div>
</div>
<div class="md-footer-nav__button md-icon">
{% include ".icons/material/arrow-right.svg" %}
</div>
</a>
{% endif %}
</nav>
</div>
{% endif %}

<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
Expand Down

0 comments on commit cc91899

Please sign in to comment.