-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from ASFHyP3/upgrade-mkdocs-material
Upgrade `mkdocs-material`
- Loading branch information
Showing
7 changed files
with
210 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<!-- | ||
Copyright (c) 2016-2020 Martin Donath <[email protected]> | ||
Copyright (c) 2016-2023 Martin Donath <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to | ||
|
@@ -20,9 +20,26 @@ | |
IN THE SOFTWARE. | ||
--> | ||
|
||
<!-- Logo --> | ||
{% if config.theme.logo %} | ||
<img src="{{ config.theme.logo | url }}" alt="logo" /> | ||
{% elif config.theme.icon.logo %} | ||
{% include ".icons/" ~ config.theme.icon.logo ~ ".svg" %} | ||
{% endif %} | ||
<!-- Adapted from https://github.com/squidfunk/mkdocs-material/blob/9.4.2/src/templates/partials/copyright.html --> | ||
|
||
<!-- Copyright and theme information --> | ||
<div class="md-copyright"> | ||
<div class="md-copyright__highlight"> | ||
{% if config.copyright or config.theme.copyright %} | ||
© <span id="copyright-year"></span> | ||
<script type="text/javascript"> | ||
current_year = new Date().getFullYear(); | ||
document.getElementById("copyright-year").innerHTML=current_year; | ||
</script> | ||
{{ config.copyright if config.copyright else config.theme.copyright}} | ||
{% endif %} | ||
<!-- ASF non-discrimination disclaimer--> | ||
| ||
<a href="https://www.alaska.edu/nondiscrimination" | ||
target="_blank" | ||
class="md-copyright-link"> | ||
UA is an AA/EO employer and educational institution and prohibits | ||
illegal discrimination against any individual | ||
</a> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<!-- | ||
Copyright (c) 2016-2020 Martin Donath <[email protected]> | ||
Copyright (c) 2016-2023 Martin Donath <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to | ||
|
@@ -20,30 +20,40 @@ | |
IN THE SOFTWARE. | ||
--> | ||
|
||
{% import "partials/language.html" as lang with context %} | ||
<!-- Adapted from https://github.com/squidfunk/mkdocs-material/blob/9.4.2/src/templates/partials/footer.html --> | ||
|
||
<!-- Application footer --> | ||
<!-- Footer --> | ||
<footer class="md-footer"> | ||
|
||
<!-- Link to previous and/or next page --> | ||
{% if page.previous_page or page.next_page %} | ||
<div class="md-footer-nav"> | ||
{% if "navigation.footer" in features %} | ||
{% if page.previous_page or page.next_page %} | ||
{% if page.meta and page.meta.hide %} | ||
{% set hidden = "hidden" if "footer" in page.meta.hide %} | ||
{% endif %} | ||
<nav | ||
class="md-footer-nav__inner md-grid" | ||
aria-label="{{ lang.t('footer.title') }}" | ||
class="md-footer__inner md-grid" | ||
aria-label="{{ lang.t('footer') }}" | ||
{{ hidden }} | ||
> | ||
|
||
<!-- 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" %} | ||
{% set direction = lang.t("footer.previous") %} | ||
<a | ||
href="{{ page.previous_page.url | url }}" | ||
class="md-footer__link md-footer__link--prev" | ||
aria-label="{{ direction }}: {{ page.previous_page.title | e }}" | ||
> | ||
<div class="md-footer__button md-icon"> | ||
{% set icon = config.theme.icon.previous or "material/arrow-left" %} | ||
{% include ".icons/" ~ icon ~ ".svg" %} | ||
</div> | ||
<div class="md-footer-nav__title"> | ||
<div class="md-footer__title"> | ||
<span class="md-footer__direction"> | ||
{{ direction }} | ||
</span> | ||
<div class="md-ellipsis"> | ||
<span class="md-footer-nav__direction"> | ||
{{ lang.t("footer.previous") }} | ||
</span> | ||
{{ page.previous_page.title }} | ||
</div> | ||
</div> | ||
|
@@ -52,22 +62,28 @@ | |
|
||
<!-- 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"> | ||
{% set direction = lang.t("footer.next") %} | ||
<a | ||
href="{{ page.next_page.url | url }}" | ||
class="md-footer__link md-footer__link--next" | ||
aria-label="{{ direction }}: {{ page.next_page.title | e }}" | ||
> | ||
<div class="md-footer__title"> | ||
<span class="md-footer__direction"> | ||
{{ direction }} | ||
</span> | ||
<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 class="md-footer__button md-icon"> | ||
{% set icon = config.theme.icon.next or "material/arrow-right" %} | ||
{% include ".icons/" ~ icon ~ ".svg" %} | ||
</div> | ||
</a> | ||
{% endif %} | ||
</nav> | ||
|
||
{% endif %} | ||
<!-- ASF Footer information--> | ||
<div class="md-grid"> | ||
<div class="md-footer-container md-grid"> | ||
|
@@ -104,34 +120,12 @@ <h1>Contact Info</h1> | |
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
|
||
<!-- Further information --> | ||
<div class="md-footer-meta md-typeset"> | ||
<div class="md-footer-meta__inner md-grid"> | ||
|
||
<!-- Copyright and theme information --> | ||
<div class="md-footer-copyright"> | ||
<div class="md-footer-copyright__highlight"> | ||
{% if config.copyright or config.theme.copyright %} | ||
© <span id="copyright-year"></span> | ||
<script type="text/javascript"> | ||
current_year = new Date().getFullYear(); | ||
document.getElementById("copyright-year").innerHTML=current_year; | ||
</script> | ||
{{ config.copyright if config.copyright else config.theme.copyright}} | ||
{% endif %} | ||
<!-- ASF non-discrimination disclaimer--> | ||
| ||
<a href="https://www.alaska.edu/nondiscrimination" | ||
target="_blank" | ||
class="md-footer-copyright-link"> | ||
UA is an AA/EO employer and educational institution and prohibits | ||
illegal discrimination against any individual | ||
</a> | ||
</div> | ||
</div> | ||
{% include "partials/copyright.html" %} | ||
|
||
<!-- Social links --> | ||
{% include "partials/social.html" %} | ||
|
Oops, something went wrong.