Skip to main content

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_utils for 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

papermoon_mkdocs_plugins-0.1.0a7.tar.gz (41.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

papermoon_mkdocs_plugins-0.1.0a7-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

Details for the file papermoon_mkdocs_plugins-0.1.0a7.tar.gz.

File metadata

File hashes

Hashes for papermoon_mkdocs_plugins-0.1.0a7.tar.gz
Algorithm Hash digest
SHA256 090eb8626b9a4dd5ba1c2cd05ac531f8c71b42c01fe0ef7dd769b9ebfe21f90d
MD5 be6e388c80e36eabcba6e2cb6f9ab605
BLAKE2b-256 270817352e6d73d464e51c8918b975e60e7a7ad2de6335ae4cca8db2199b58b4

See more details on using hashes here.

File details

Details for the file papermoon_mkdocs_plugins-0.1.0a7-py3-none-any.whl.

File metadata

File hashes

Hashes for papermoon_mkdocs_plugins-0.1.0a7-py3-none-any.whl
Algorithm Hash digest
SHA256 14dad659c2274ed5b37114936d7c264b2210413f4c9f1cf372886e0ec5b1ea15
MD5 0bcc24beb71b8170f79822a25be586f8
BLAKE2b-256 42f949a87e6e4b8a907962f95002286510e5653f210f290d060e5297bfceebb3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page