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 Docs: Unified AI documentation plugin.
    • Generates AI-ready artifacts (resolved markdown, category bundles, site index, llms.txt), injects a per-page actions widget, and generates an AI resources page.
    • Generates structured, agent-ready skill files from a JSON configuration.
  • 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.
  • Link Processing: Opens external links in a new tab and adds trailing slashes to internal paths at build time.
  • Snippet Var Resolver: Resolve placeholder variables inside snippet content before Markdown rendering.
  • Instant Preview: Generate build-time preview manifests and safe HTML fragments for internal links without depending on Material's instant navigation runtime.

Deprecated (kept for backward compatibility, will be removed in a future major release): resolve_md, ai_page_actions, ai_resources_page. Use ai_docs instead.

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_docs:
      llms_config: llms_config.json
      agent_skills_config: agent_skills_config.json
  - copy_md:
      source_dir: docs/.example
      target_dir: example
  - minify:
      minify_html: true
      minify_css: true
      minify_js: true
  - page_toggle
  - instant_preview
  - link_processor:
      skip_internal_path_prefixes:
        - /api/
  - snippet_var_resolver

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.0a18.tar.gz (80.9 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.0a18-py3-none-any.whl (86.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for papermoon_mkdocs_plugins-0.1.0a18.tar.gz
Algorithm Hash digest
SHA256 9c700af0ccd0d87b8d6aa814486fc76d06060063529ec86fbeca504e73b8adf5
MD5 0d446a758db1f0bfede0f1f516577440
BLAKE2b-256 08ccbdbef1aa26867b326b5daf15ab4a84e5e6c1ff9ff78626596f1f2975edcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for papermoon_mkdocs_plugins-0.1.0a18.tar.gz:

Publisher: release.yml on papermoonio/mkdocs-plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for papermoon_mkdocs_plugins-0.1.0a18-py3-none-any.whl
Algorithm Hash digest
SHA256 9214000af3221f5df727df4fbdf57b90594a577a4e21cb0b9e8fe039b360fc78
MD5 867c2b2151db68a19305f630910f5ebf
BLAKE2b-256 596bfc91849199ef291562583bef3901b7c3700fd160afd281b6931cfc632e5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for papermoon_mkdocs_plugins-0.1.0a18-py3-none-any.whl:

Publisher: release.yml on papermoonio/mkdocs-plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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