MkDocs plugin for LLM-friendly documentation with direct markdown serving and i18n support
Project description
mkdocs-ask-ai
MkDocs plugin that makes your documentation AI-friendly:
- "Use with AI" dropdown — Copy markdown, open in ChatGPT/Claude, view raw
.md - llms.txt / llms-full.txt — LLM-optimized documentation indexes
- Direct markdown serving — Access source markdown at
.mdURLs - i18n support — Per-locale output with
mkdocs-static-i18n
Installation
pip install mkdocs-ask-ai
Quick Start
Add to your mkdocs.yml:
plugins:
- ask-ai:
sections:
"Getting Started":
- index.md: "Introduction"
- quickstart.md
"API Reference":
- api/*.md
Every page gets a "Use with AI" button with:
- Copy page as Markdown — clipboard copy for any AI tool
- View as Markdown — opens
.mdsource in a new tab - Open in ChatGPT — sends page content directly to ChatGPT
- Open in Claude — sends page content directly to Claude
- llms.txt — link to the full documentation index
With mkdocs-static-i18n
Place ask-ai before i18n in the plugins list:
plugins:
- ask-ai:
sections:
"Docs":
- "*.md"
- i18n:
docs_structure: suffix
languages:
- locale: en
default: true
name: English
- locale: ru
name: Русский
Generates separate outputs per locale:
site/llms.txt+site/llms-full.txt(default locale)site/ru/llms.txt+site/ru/llms-full.txt(additional locales)
Configuration
| Option | Default | Description |
|---|---|---|
sections |
{} |
Section names mapped to file patterns |
enable_ai_menu |
true |
Show "Use with AI" dropdown on pages |
ai_menu_button_text |
"Use with AI" |
Dropdown trigger text |
enable_chatgpt |
true |
Show "Open in ChatGPT" item |
enable_claude |
true |
Show "Open in Claude" item |
enable_markdown_urls |
true |
Serve .md files alongside HTML |
enable_llms_txt |
true |
Generate llms.txt |
enable_llms_full |
true |
Generate llms-full.txt |
markdown_description |
— | Description included in llms.txt |
License
MIT — see 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
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 mkdocs_ask_ai-1.0.0.tar.gz.
File metadata
- Download URL: mkdocs_ask_ai-1.0.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35cae4bb419a74c981ac93539fb2b700004c19391bb62adf8c13eb4b01abe341
|
|
| MD5 |
b7358220be9cb32594d11830c8e17464
|
|
| BLAKE2b-256 |
2bb566a8f121feffa5776fd20ea5f02b110939a4fa09f16a6943b4be3b051668
|
File details
Details for the file mkdocs_ask_ai-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mkdocs_ask_ai-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba2803ec0c64befdf8b80e3800a1ec6a3f02cba6f1494cadfe1d106f6835c279
|
|
| MD5 |
6c22ba7cb87820641adc61333679a0ae
|
|
| BLAKE2b-256 |
be6f31d864782943867077997eb7e701c0cc39973093b7641574a90b79b23bc2
|