Skip to content

Commit 165b70a

Browse files
committed
Clear mkdocs
1 parent 9df6f00 commit 165b70a

File tree

2 files changed

+44
-17
lines changed

2 files changed

+44
-17
lines changed

docs/overrides/main.html

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,46 @@
11
{% extends "base.html" %}
22

33
{% block content %}
4-
{{ super() }}
5-
<!-- Content footer -->
6-
<footer class="tx-content__footer md-typeset" style="margin-top: 70px;">
7-
<a href="{{ config.repo_url }}" title="{{ config.site_name }}" class="md-button" target="_blank">
8-
⭐️ Star {{ config.site_name }}
9-
</a>
10-
<a href="https://www.patreon.com/modernhpc" title="{{ config.site_name }}" class="md-button" target="_blank">
11-
❤️ Contribute to {{ config.site_name }}
12-
</a>
13-
</footer>
4+
{{ super() }}
5+
<!-- Content footer -->
6+
<footer class="tx-content__footer md-typeset" style="margin-top: 70px;">
7+
<a href="{{ config.repo_url }}" title="{{ config.site_name }}" class="md-button" target="_blank">
8+
⭐️ Star {{ config.site_name }}
9+
</a>
10+
<a href="https://www.patreon.com/modernhpc" title="{{ config.site_name }}" class="md-button" target="_blank">
11+
❤️ Contribute to {{ config.site_name }}
12+
</a>
13+
</footer>
1414
{% endblock %}
15+
16+
17+
<!-- Navigation -->
18+
{% block site_nav %}
19+
<!-- Main navigation -->
20+
{% if nav %}
21+
{% if page and page.meta and page.meta.hide %}
22+
{% set hidden = "hidden" if "navigation" in page.meta.hide %}
23+
{% endif %}
24+
<div
25+
class="md-sidebar md-sidebar--primary"
26+
data-md-component="sidebar" data-md-type="navigation"
27+
{{ hidden }}
28+
>
29+
<div class="md-sidebar__scrollwrap">
30+
<div class="md-sidebar__inner">
31+
{% include "partials/nav.html" %}
32+
</div>
33+
</div>
34+
</div>
35+
{% endif %}
36+
37+
<!-- Table of contents: never hidden -->
38+
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc">
39+
<div data-ea-publisher="alandefreitas-com" data-ea-type="image"></div>
40+
<div class="md-sidebar__scrollwrap">
41+
<div class="md-sidebar__inner">
42+
{% include "partials/toc.html" %}
43+
</div>
44+
</div>
45+
</div>
46+
{% endblock %}

mkdocs.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ theme:
1010
custom_dir: docs/overrides
1111
palette:
1212
scheme: preference
13-
features:
14-
# - navigation.instant # this doesn't work well with pymdownx.arithmatex
15-
# - navigation.sections # problems on github pages
16-
- toc.integrate
17-
# - header.autohide # problems on mobile
1813
icon:
1914
repo: fontawesome/brands/git-alt
2015
logo: fontawesome/solid/code
@@ -29,7 +24,7 @@ google_analytics:
2924
- UA-109858331-2
3025
- auto
3126

32-
copyright: Copyright &copy; 2020 Alan Freitas
27+
copyright: Copyright &copy; Alan Freitas
3328

3429
markdown_extensions:
3530
- admonition
@@ -49,4 +44,4 @@ markdown_extensions:
4944
extra_javascript:
5045
- https://polyfill.io/v3/polyfill.min.js?features=es6
5146
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
52-
# - javascripts/config.js # for extra javascript
47+
- https://media.ethicalads.io/media/client/ethicalads.min.js

0 commit comments

Comments
 (0)