DocFx.Plugin.LastModified
A DocFX plugin that adds a last modified date at the end of each conceptual articles.
Features
- Adds last commit/modified date to each articles
- Shows last commit message at the end of each articles
Prerequisites
- Git for the target documentation
- This does not require the host to install the git command, only version tracking for the project
But I don't track my changes with Git!
You are a mad man, but that's okay; the plugin will fallback to last modified date on the local machine when Git is not detected.
Setup
- Download the binaries from the AppVeyor artifacts linked above (or compile yourself).
- Create a new folder
last-modifiedunder your DocFX template folder. - Create a new folder called
pluginsunderlast-modified. - Drop the compiled binaries in.
- In your
docfx.jsonfile, modify your template section like so:
"template": [
"default",
"_template/last-modified"
],- Add the post-processor plugin like so:
"postProcessors": ["LastModifiedPostProcessor"]- Build the documentation, and it should work now!
Live Demo
This plugin is currently being used under Discord.Net Documentation.
License
This project is licensed under MIT; read LICENSE for more details.