Merge pull request 'mkdocs-Aktualisierung' (#22) from update-mkdocs into master

Reviewed-on: #22
This commit is contained in:
hrnz 2021-07-27 20:52:04 +02:00
commit ccbe960210
6 changed files with 59 additions and 211 deletions

View File

@ -144,8 +144,6 @@ nav:
- Beitragen/Wieso/Locks.md
- Beitragen/Wieso/IPA.md
- Git: https://git.neo-layout.org/neo/
- Impressum: Impressum/index.md
# vim: set sw=2:

View File

@ -4,6 +4,8 @@
--md-primary-fg-color--dark: #06889C;
--md-typeset-color: #000000;
--md-default-fg-color: #000000;
--md-footer-fg-color: #333333;
--md-footer-bg-color: #eeeeee;
--md-typeset-kbd-color: hsla(0, 0%, 97%, 1);
}
html {
@ -53,35 +55,31 @@ html {
margin: 0;
padding: 0;
}
.md-header-nav__button.md-logo img, .md-nav__title .md-nav__button.md-logo img, .md-nav__title .md-nav__button.md-logo svg {
.md-header__button.md-logo img, .md-nav__title .md-nav__button.md-logo img, .md-nav__title .md-nav__button.md-logo svg {
width: auto;
height: 100%;
margin: 0;
padding: 0;
}
.md-header-nav__title {
margin: 0;
line-height: 3rem;
}
.md-footer-nav__inner, .md-footer-nav__link--prev, .md-footer-nav__link--next {
padding: 0;
.md-footer__link {
padding-top: 0;
padding-bottom: 0;
}
.md-footer-nav__direction {
padding: 0 1rem;
margin-top: .1rem;
.md-footer__title {
font-size: .7rem;
}
.md-footer__direction {
font-size: .6rem;
line-height: 1rem;
}
.md-footer-nav__title{
font-size: .8rem;
flex-grow: 1;
}
.md-footer-meta__inner, .md-footer-copyright, .md-footer-social {
max-width: 50%;
padding: 0;
}
.md-typeset__scrollwrap {
overflow-x: visible;
position: relative;

View File

@ -1,82 +1,30 @@
<!--
Copyright (c) 2016-2020 Martin Donath <martin.donath@squidfunk.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
-->
{% import "partials/language.html" as lang with context %}
<!-- Application footer -->
<footer class="md-footer">
<!-- Link to previous and/or next page -->
{% if (page.previous_page or page.next_page) and page.parent%}
<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 }}"
title="{{ page.previous_page.title | striptags }}"
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" %}
{% if page.previous_page or page.next_page %}
<nav class="md-footer__inner md-grid" aria-label="{{ lang.t('footer.title') }}">
{% if page.previous_page %}
<a href="{{ page.previous_page.url | url }}" class="md-footer__link md-footer__link--prev" rel="prev">
<div class="md-footer__button md-icon">
{% include ".icons/material/arrow-left.svg" %}
</div>
<div class="md-footer__title">
<div class="md-ellipsis">
{{ page.previous_page.title }}
</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 %}
{% if page.next_page %}
<a href="{{ page.next_page.url | url }}" class="md-footer__link md-footer__link--next" rel="next">
<div class="md-footer__title">
<div class="md-ellipsis">
{{ page.next_page.title }}
</div>
</a>
{% endif %}
<!-- Link to next page -->
{% if page.next_page %}
<a
href="{{ page.next_page.url | url }}"
title="{{ page.next_page.title | striptags }}"
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>
</div>
<div class="md-footer__button md-icon">
{% include ".icons/material/arrow-right.svg" %}
</div>
</a>
{% endif %}
</nav>
{% endif %}
</footer>

View File

@ -1,78 +0,0 @@
<!--
Copyright (c) 2016-2020 Martin Donath <martin.donath@squidfunk.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
-->
<!-- Application header -->
<header class="md-header" data-md-component="header">
<!-- Top-level navigation -->
<nav class="md-header-nav md-grid" aria-label="{{ lang.t('header.title') }}">
<!-- Link to home -->
<a
href="{{ config.site_url | default(nav.homepage.url, true) | url }}"
title="{{ config.site_name }}"
class="md-header-nav__button md-logo"
aria-label="{{ config.site_name }}"
>
{% include "partials/logo.html" %}
</a>
<!-- Button to open drawer -->
<label class="md-header-nav__button md-icon" for="__drawer">
{% include ".icons/material/menu" ~ ".svg" %}
</label>
<!-- Header title -->
<div class="md-header-nav__title" data-md-component="header-title">
{% if config.site_name == page.title %}
<div class="md-header-nav__ellipsis md-ellipsis">
{{ config.site_name }}
</div>
{% else %}
<div class="md-header-nav__ellipsis">
<span class="md-header-nav__topic md-ellipsis">
{{ config.site_name }}
</span>
<span class="md-header-nav__topic md-ellipsis">
{% if page and page.meta and page.meta.title %}
{{ page.meta.title }}
{% else %}
{{ page.title }}
{% endif %}
</span>
</div>
{% endif %}
</div>
<!-- Button to open search dialogue -->
{% if "search" in config["plugins"] %}
<label class="md-header-nav__button md-icon" for="__search">
{% include ".icons/material/magnify.svg" %}
</label>
<!-- Search interface -->
{% include "partials/search.html" %}
{% endif %}
<!-- removed repository containing source -->
</nav>
</header>

View File

@ -1,27 +0,0 @@
{% if nav_item.children and nav_item.children | length > 0 %}
{% set title = title | default(nav_item.title) %}
{% if (nav_item.children | first).children %}
{% set nav_item = nav_item.children | first %}
{% include "partials/tabs-item.html" %}
{% else %}
<li class="md-tabs__item">
{% set class = "md-tabs__link" %}
{% if nav_item.active %}
{% set class = "md-tabs__link md-tabs__link--active" %}
{% endif %}
<a href="{{ (nav_item.children | first).url | url }}" class="{{ class }}">
{{ title }}
</a>
</li>
{% endif %}
{% else %}
<li class="md-tabs__item">
{% set class = "md-tabs__link" %}
{% if nav_item.active %}
{% set class = "md-tabs__link md-tabs__link--active" %}
{% endif %}
<a href="{{ nav_item.url | url }}" class="{{ class }}">
{{ nav_item.title }}
</a>
</li>
{% endif %}

View File

@ -1,19 +1,28 @@
click==7.1.2
click==8.0.1
future==0.18.2
Jinja2==2.11.3
ghp-import==2.0.1
importlib-metadata==4.6.1
Jinja2==3.0.1
joblib==1.0.1
livereload==2.6.3
lunr==0.5.8
lunr==0.6.0
Markdown==3.3.4
MarkupSafe==1.1.1
mkdocs==1.1.2
mkdocs-material==6.1.4
MarkupSafe==2.0.1
mergedeep==1.3.4
mkdocs==1.2.2
mkdocs-material==7.2.1
mkdocs-material-extensions==1.0.1
nltk==3.6.2
Pygments==2.8.1
pymdown-extensions==8.1.1
packaging==21.0
Pygments==2.9.0
pymdown-extensions==8.2
pyparsing==2.4.7
python-dateutil==2.8.2
PyYAML==5.4.1
regex==2021.4.4
six==1.15.0
pyyaml_env_tag==0.1
regex==2021.7.6
six==1.16.0
tornado==6.1
tqdm==4.60.0
tqdm==4.61.2
watchdog==2.1.3
zipp==3.5.0