Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last update date #95

Open
ptbrowne opened this issue Sep 20, 2018 · 0 comments
Open

Last update date #95

ptbrowne opened this issue Sep 20, 2018 · 0 comments

Comments

@ptbrowne
Copy link
Contributor

ptbrowne commented Sep 20, 2018

It would be nice to have on every page a last update date to know if the article is potentially out of date. We could maybe leverage the meta attributes of the markdown.

To test:

  1. Use the on_files event through a plugin to check the last update date via git and add it to the meta information of the file (https://www.mkdocs.org/user-guide/plugins/#on_files), this would not work for external docs since git information is lost when documentation files are copied from the external repository to the src repository
  2. Change the template to display this information through the page.meta Jinja variable: https://www.mkdocs.org/user-guide/custom-themes/#pagemeta
@ptbrowne ptbrowne changed the title Last update dat Last update date Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant