-
Notifications
You must be signed in to change notification settings - Fork 5
Modernize Documentation with Recommended MkDocs Plugins #139
Copy link
Copy link
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Modernize the documentation by adding several high-quality plugins to improve user trust, performance, and accessibility for automated agents. These plugins are also on the roadmap for Zensical, making this a useful preparatory step.
Tasks
- Add Dependencies
Add the following topyproject.tomlin the[dependency-groups.docs]section:
mkdocs-git-revision-date-localized-plugin>=1.2.0mkdocs-redirects>=1.2.0mkdocs-minify-plugin>=0.8.0mkdocs-llmstxt>=0.1.0
- Configure
mkdocs.ymlPlugins
Update theplugins:block with the following configurations:
- Git Revision Date: Adds a "Last updated" date to the bottom of pages using git history.
- git-revision-date-localized: enable_creation_date: true type: timeago # Display as "3 weeks ago"
- Redirects: Manages URL mapping for renamed/moved pages.
- redirects: redirect_maps: {} # Initial empty map
- Minify: Optimizes HTML, CSS, and JS output for faster loading.
- minify: minify_html: true
- LLMStxt: Generates a standardized
/llms.txtand/llms-full.txtfor AI agent consumption.- llmstxt: full_output: true
- Verify Build
- Run
uv run mkdocs build. - Confirm the footer shows a revision date.
- Confirm that
site/llms.txtis generated.
Rationale
- llms.txt is essential for providing a machine-readable summary of the site's content for LLMs and coding assistants.
- git-revision-date-localized builds reader trust by showing recent updates.
- minify and redirects are standard best practices for site maintenance and performance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation