feat(overrides): add archive.org/.md links at footer

Also mandatory SPDX-License-Identifier headers for legal

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2023-09-25 15:49:09 +00:00
parent 7c2af95c80
commit 7099942c40
3 changed files with 31 additions and 0 deletions

View file

@ -1,4 +1,6 @@
{#- {#-
SPDX-License-Identifier: MIT
This file is copied from https://github.com/squidfunk/mkdocs-material/blob/81c15d5eced1b34e3636acb27d4cf16dad5c26e7/material/404.html This file is copied from https://github.com/squidfunk/mkdocs-material/blob/81c15d5eced1b34e3636acb27d4cf16dad5c26e7/material/404.html
alongside with customizations for live site development. alongside with customizations for live site development.
-#} -#}

View file

@ -1,3 +1,9 @@
{#-
SPDX-License-Identifier: MIT
-#}
{% extends "base.html" %} {% extends "base.html" %}
{% block extrahead %} {% block extrahead %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/mkdocs-material-styling.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/mkdocs-material-styling.css' | url }}">

View file

@ -0,0 +1,23 @@
{#-
SPDX-License-Identifier: MIT
Generally copied from upstream sources: https://github.com/squidfunk/mkdocs-material/blob/79515879d159ee807db61687c7d83aa63a8e9905/material/templates/partials/copyright.html
-#}
<div class="md-copyright">
{% if config.copyright %}
<div class="md-copyright__highlight">
{{ config.copyright }}
</div>
{% endif %}
{% if not config.extra.generator == false %}
Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
Material for MkDocs
</a>
{% endif %}
<br>
Archived versions of this page might be available at
<a href="https://web.archive.org/*/{{ page.canonical_url|url }}">Internet Archive</a>
or at <a href="https://archive.md/{{ page.canonical_url|url }}">archive.today</a>,
updated manually after an successful build.
</div>