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

Add option for document expiration #15

Closed
oxr463 opened this issue Apr 9, 2020 · 1 comment
Closed

Add option for document expiration #15

oxr463 opened this issue Apr 9, 2020 · 1 comment

Comments

@oxr463
Copy link
Contributor

oxr463 commented Apr 9, 2020

If the published date is older than a predefined interval, then mkdocs build should fail, and a warning message issues for the offending document.

For example, here is a snippet from an article

---
date: 2001-07-19
---

# Article Title

And here is the option in my mkdocs.yml file:

extra:
  expiration_period: 2Y

Then during the build phase:

mkdocs build
Error: documentation has not been update since July, 2001.
@zhaoterryy
Copy link
Owner

I would like to keep this plugin as simple as possible. The feature you're asking for should be a separate plugin. Thanks for the suggestion!

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

2 participants