diff --git a/.github/workflows/.docs.yml.swp b/.github/workflows/.docs.yml.swp deleted file mode 100644 index 14b7584b8a..0000000000 Binary files a/.github/workflows/.docs.yml.swp and /dev/null differ diff --git a/.mkdocs.yml.swp b/.mkdocs.yml.swp index 80cb833634..35bcc8b69b 100644 Binary files a/.mkdocs.yml.swp and b/.mkdocs.yml.swp differ diff --git a/docs/hackinglifetheme/partials/.content.html.swp b/docs/hackinglifetheme/partials/.content.html.swp new file mode 100644 index 0000000000..73898b0117 Binary files /dev/null and b/docs/hackinglifetheme/partials/.content.html.swp differ diff --git a/docs/overrides/content.html b/docs/hackinglifetheme/partials/content.html similarity index 80% rename from docs/overrides/content.html rename to docs/hackinglifetheme/partials/content.html index 0f6e2f2270..2d724f8ef2 100644 --- a/docs/overrides/content.html +++ b/docs/hackinglifetheme/partials/content.html @@ -13,9 +13,9 @@ {% if page.meta.git_revision_date_localized %} - Last update: {{ page.meta.git_revision_date_localized }} + Last update: {{ page.meta.git_revision_date_localized }}
{% endif %} -{% if page.meta.git_created_date_localized %} - Created: {{ page.meta.git_created_date_localized }} +{% if page.meta.git_creation_date_localized %} + Created: {{ page.meta.git_creation_date_localized }} {% endif %} diff --git a/docs/javascripts/tablesort.js b/docs/javascripts/tablesort.js deleted file mode 100644 index 6a5afcf2c5..0000000000 --- a/docs/javascripts/tablesort.js +++ /dev/null @@ -1,6 +0,0 @@ -document$.subscribe(function() { - var tables = document.querySelectorAll("article table:not([class])") - tables.forEach(function(table) { - new Tablesort(table) - }) -}) diff --git a/docs/js/timeago.min.js b/docs/js/timeago.min.js deleted file mode 100644 index a8530a5f72..0000000000 --- a/docs/js/timeago.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/* Taken from https://cdnjs.cloudflare.com/ajax/libs/timeago.js/4.0.2/timeago.min.js */ -!function(s,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((s=s||self).timeago={})}(this,function(s){"use strict";var a=["second","minute","hour","day","week","month","year"];function n(s,n){if(0===n)return["just now","right now"];var e=a[Math.floor(n/2)];return 1=m[t]&&t=m[e]&&e 0) { - var locale = nodes[0].getAttribute('locale'); - timeago.render(nodes, locale); - } - }) -} else { - var nodes = document.querySelectorAll('.timeago'); - if (nodes.length > 0) { - var locale = nodes[0].getAttribute('locale'); - timeago.render(nodes, locale); - } -} diff --git a/mkdocs.yml b/mkdocs.yml index 2b4dbcd1c8..1a8a5a7abd 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -449,7 +449,7 @@ nav: - Downloads: files/index-of-files.md theme: name: material - custom_dir: docs/overrides + custom_dir: docs/hackinglifetheme features: - navigation.instant - navigation.top @@ -491,10 +491,15 @@ plugins: tags_file: tags.md - git-revision-date-localized: type: timeago + custom_format: "%d. %B %Y" timezone: Europe/Amsterdam locale: en - fallback_to_build_date: false enable_creation_date: true + exclude: + - index.md + enabled: true + strict: true + - pdf-export: verbose: true enabled_if_env: ENABLE_PDF_EXPORT @@ -512,7 +517,7 @@ extra_css: extra_javascript: - https://unpkg.com/tablesort@5.3.0/dist/tablesort.min.js - - javascripts/tablesort.js + - js/tablesort.js markdown_extensions: - admonition