All Projects → timvink → mkdocs-git-revision-date-localized-plugin

timvink / mkdocs-git-revision-date-localized-plugin

Licence: MIT license
MkDocs plugin to add a last updated date to your site pages

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to mkdocs-git-revision-date-localized-plugin

mkdocs-exclude-search
🔎 A mkdocs plugin that lets you exclude selected chapters from the search index.
Stars: ✭ 16 (-78.08%)
Mutual labels:  mkdocs, mkdocs-material, mkdocs-plugin
mkdocs-static-i18n
MkDocs i18n plugin using static translation markdown files
Stars: ✭ 78 (+6.85%)
Mutual labels:  mkdocs, mkdocs-material, mkdocs-plugin
mkdocs-section-index
MkDocs plugin to allow clickable sections that lead to an index page
Stars: ✭ 36 (-50.68%)
Mutual labels:  mkdocs, mkdocs-material, mkdocs-plugin
mkdocs-jekyll
The Material theme from MkDocs provided as a Jekyll template, optimized for GitHub Pages
Stars: ✭ 55 (-24.66%)
Mutual labels:  mkdocs, mkdocs-material
mkdocs-print-site-plugin
MkDocs Plugin that adds an additional page that combines all pages, allowing easy exports to PDF and standalone HTML.
Stars: ✭ 38 (-47.95%)
Mutual labels:  mkdocs, mkdocs-plugin
obsidian-publish-mkdocs
A Template to Publish Obsidian/Foam Notes on Github Pages (uses MkDocs)
Stars: ✭ 219 (+200%)
Mutual labels:  mkdocs, mkdocs-material
mkdocs-table-reader-plugin
MkDocs plugin that adds a {{ read_csv('table.csv') }} markdown tag to directly insert CSV files as a table into a page.
Stars: ✭ 60 (-17.81%)
Mutual labels:  mkdocs, mkdocs-plugin
fosscord-docs
Docs for Fosscord
Stars: ✭ 23 (-68.49%)
Mutual labels:  mkdocs, mkdocs-material
ImageModels
ImageNet model implemented using the Keras Functional API
Stars: ✭ 63 (-13.7%)
Mutual labels:  mkdocs, mkdocs-material
mkdocs-rss-plugin
MkDocs plugin to generate a RSS feeds for created and updated pages, using git log and YAML frontmatter (page.meta).
Stars: ✭ 43 (-41.1%)
Mutual labels:  mkdocs, mkdocs-plugin
lavalink-list
A list of free and available public lavalink. Feel free to make a pull request!
Stars: ✭ 43 (-41.1%)
Mutual labels:  mkdocs, mkdocs-material
mkdocs-git-authors-plugin
MkDocs plugin to display git authors of a page.
Stars: ✭ 27 (-63.01%)
Mutual labels:  mkdocs, mkdocs-plugin
docs
📖 TomoChain documentation
Stars: ✭ 19 (-73.97%)
Mutual labels:  mkdocs, mkdocs-material
mkdocs-htmlproofer-plugin
A MkDocs plugin that validates URL in rendered html files
Stars: ✭ 17 (-76.71%)
Mutual labels:  mkdocs, mkdocs-plugin
docutools
Dev Centric Tools for Mkdocs Based Documentation
Stars: ✭ 13 (-82.19%)
Mutual labels:  mkdocs, mkdocs-material
mkdocs-literate-nav
MkDocs plugin to specify the navigation in Markdown instead of YAML
Stars: ✭ 19 (-73.97%)
Mutual labels:  mkdocs, mkdocs-plugin
tutorials
Collection of tutorials for various libraries and technologies
Stars: ✭ 98 (+34.25%)
Mutual labels:  mkdocs, mkdocs-material
mkdocs-markdownextradata-plugin
A MkDocs plugin that injects the mkdocs.yml extra variables into the markdown template
Stars: ✭ 48 (-34.25%)
Mutual labels:  mkdocs, mkdocs-plugin
taller-de-git
Documentación del taller de git
Stars: ✭ 18 (-75.34%)
Mutual labels:  mkdocs, mkdocs-material
privacyguides.org
Protect your data against global mass surveillance programs.
Stars: ✭ 1,316 (+1702.74%)
Mutual labels:  mkdocs, mkdocs-material

Actions Status PyPI - Python Version PyPI PyPI - Downloads GitHub contributors PyPI - License

mkdocs-git-revision-date-localized-plugin

MkDocs plugin that enables displaying the date of the last git modification of a page. The plugin uses babel and timeago.js to provide different localized date formats. Initial fork from mkdocs-git-revision-date-plugin.

demo

(Example when used together with the mkdocs-material theme)

Other MkDocs plugins that use information from git:

Setup

Install the plugin using pip3 with the following command:

pip3 install mkdocs-git-revision-date-localized-plugin

Next, add the following lines to your mkdocs.yml:

plugins:
  - search
  - git-revision-date-localized

If you have no plugins entry in your config file yet, you'll likely also want to add the search plugin. MkDocs enables it by default if there is no plugins entry set.

The mkdocs-material theme supports git-revision-date-localized. After installing the plugin and updating your mkdocs.yml you should see the last revision date on the bottom of your pages. Other mkdocs themes require additional customization.

See the documentation on how to fine-tune the appearance and the date format.

Note when using build environments

This plugin needs access to the last commit that touched a specific file to be able to retrieve the date. By default many build environments only retrieve the last commit, which means you might need to:

Change your CI settings
  • github actions: set fetch-depth to 0 (docs)
  • gitlab runners: set GIT_DEPTH to 0 (docs)
  • bitbucket pipelines: set clone: depth: full (docs)

Documentation

See timvink.github.io/mkdocs-git-revision-date-localized-plugin.

Contributing

Contributions are very welcome! Please read CONTRIBUTING.md before putting in any work.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].