Crystal language doc generator for MkDocs, via mkdocstrings
Project Links
Meta
Author: Oleh Prypin
Requires Python: >=3.9
Classifiers
Development Status
- 4 - Beta
Environment
- Console
- Web Environment
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Operating System
- OS Independent
Programming Language
- Python
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
Topic
- Documentation
- Software Development :: Documentation
- Text Processing :: Markup :: Markdown
Typing
- Typed
mkdocstrings-crystal
Crystal language doc generator for MkDocs, via mkdocstrings
Introduction
mkdocstrings-crystal allows you to insert API documentation (generated from Crystal's source code and doc comments) as part of any page on a MkDocs site.
To install it, run (possibly in a virtualenv):
pip install mkdocstrings-crystal
Continue to the documentation site.
Usage
With MkDocs, add/merge this base config as your mkdocs.yml:
site_name: My Project
theme:
name: material
plugins:
- search
- mkdocstrings:
default_handler: crystal
markdown_extensions:
- pymdownx.highlight
- deduplicate-toc
Then, in any docs/**/*.md file, you can mention a Crystal identifier alone on a line, after ::::
::: MyClass
::: Other::Class#some_method
::: Foo::CONSTANT
-- and in the output this will be replaced with generated API documentation for it, much like Crystal's own doc generator does.
This, of course, happens as part of a normal MkDocs build process:
mkdocs build # generate from docs/ into site/
mkdocs serve # live preview
Continue to the documentation site.
0.3.9
Nov 08, 2025
0.3.8
Nov 05, 2025
0.3.7
Oct 25, 2023
0.3.6
May 29, 2023
0.3.5
May 02, 2022
0.3.4
Dec 07, 2021
0.3.3
Aug 29, 2021
0.3.2
Jun 19, 2021
0.3.1
Feb 28, 2021
0.3.0
Feb 28, 2021
0.2.2
Jan 08, 2021
0.2.1
Jan 07, 2021
0.2.0
Jan 02, 2021
0.1.0
Dec 10, 2020
Wheel compatibility matrix
Files in release
Extras:
None
Dependencies:
jinja2
(>=2.11.2)
markdown-callouts
(>=0.1.0)
markupsafe
(>=1.1.1)
mkdocs-autorefs
(>=0.3.1)
mkdocstrings
(>=0.30.0)