Skip to content

Commit

Permalink
Fix: plugin git-revision-date-localized, add creation date and custom…
Browse files Browse the repository at this point in the history
… theme
  • Loading branch information
amandaguglieri committed Nov 25, 2023
1 parent 8aebc41 commit cdd3579
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 32 deletions.
Binary file removed .github/workflows/.docs.yml.swp
Binary file not shown.
Binary file modified .mkdocs.yml.swp
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

<!-- This section adds support for localized revision dates -->
{% if page.meta.git_revision_date_localized %}
<small>Last update: {{ page.meta.git_revision_date_localized }}</small>
<small>Last update: {{ page.meta.git_revision_date_localized }}</small></br>
{% endif %}
{% if page.meta.git_created_date_localized %}
<small>Created: {{ page.meta.git_created_date_localized }}</small>
{% if page.meta.git_creation_date_localized %}
<small>Created: {{ page.meta.git_creation_date_localized }}</small>
{% endif %}

6 changes: 0 additions & 6 deletions docs/javascripts/tablesort.js

This file was deleted.

2 changes: 0 additions & 2 deletions docs/js/timeago.min.js

This file was deleted.

18 changes: 0 additions & 18 deletions docs/js/timeago_mkdocs_material.js

This file was deleted.

11 changes: 8 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -512,7 +517,7 @@ extra_css:

extra_javascript:
- https://unpkg.com/[email protected]/dist/tablesort.min.js
- javascripts/tablesort.js
- js/tablesort.js

markdown_extensions:
- admonition
Expand Down

0 comments on commit cdd3579

Please sign in to comment.