A collection of MkDocs plugins
Project description
MkDocs Plugins Collection
A collection of custom MkDocs plugins designed to extend Material for MkDocs.
Currently included:
- AI Resources Page: Automate the generation of an "AI Resources" page with a dynamic table of artifact files.
- Copy Markdown: Serve raw Markdown files by copying them directly to your site's build folder.
- Minify: Minify HTML, JS, and CSS files globally or by scope to optimize your site's performance.
- Page Toggle: Create variant pages for the same content and display them with an interactive toggle interface.
- Resolve Markdown: Resolve variable and code snippet placeholders and serve resolved Markdown files directly from your site's build folder.
- AI Page Actions: Injects a per-page AI actions widget next to each page's H1 heading at build time.
Helper utilities and libraries:
- AI File Actions (shared library): Convenience wrapper around
ai_file_utilsfor generating AI file action dropdowns. - AI File Utils (shared library): Resolves action definitions from JSON and generates split-button dropdown HTML for copy, download, view, and LLM tool actions.
Installation
Install the plugins using pip from PyPI:
pip install papermoon-mkdocs-plugins
Usage
Enable one or more plugins in your mkdocs.yml:
plugins:
- ai_resources_page
- ai_page_actions
- copy_md:
source_dir: docs/.example
target_dir: example
- minify:
minify_html: true
minify_css: true
minify_js: true
- page_toggle
- resolve_md:
llms_config: example_config.json
License
This repository is licensed under the BSD-2-Clause License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file papermoon_mkdocs_plugins-0.1.0a6.tar.gz.
File metadata
- Download URL: papermoon_mkdocs_plugins-0.1.0a6.tar.gz
- Upload date:
- Size: 41.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
894f2c37a9f5277e9f17873b5c9fefa375409bcab5068fa35e56880f07433a79
|
|
| MD5 |
d3c0099db54c9c101b347b7df4601f41
|
|
| BLAKE2b-256 |
b5416c4441465944860fd47d84a866a5b34975f0188e9c0fcfa8e5889bbc06de
|
File details
Details for the file papermoon_mkdocs_plugins-0.1.0a6-py3-none-any.whl.
File metadata
- Download URL: papermoon_mkdocs_plugins-0.1.0a6-py3-none-any.whl
- Upload date:
- Size: 43.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19c87a5d53fc076de9a34943d2c44b02cac7c8a67099c27b74a7e668c2e92e2d
|
|
| MD5 |
61e823d01abcbfd377c03f0ddebaef8d
|
|
| BLAKE2b-256 |
091af16167473bffc6a7e3bb78ead8081f7c2fbb4244642b0cdb91eb119f9917
|