Crystal language doc generator for mkdocstrings
Project description
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.
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
Hashes for mkdocstrings-crystal-0.3.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddca5e827a0d88c69cb61a9d3af2785e83af8953e12da2ed0261a77ee9f6b2a5 |
|
MD5 | 6024226639aeb5ae59bdc7773a3adaff |
|
BLAKE2b-256 | 682f1cf4962fc90af1d135c2ac1790a661e7e1f3f7a59780cdd3856cb97f6d10 |
Hashes for mkdocstrings_crystal-0.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7746850e3cf8d9302c1ca277dda93c12609a33b9af96c77428bb2bdd6783f769 |
|
MD5 | 21c94703537f2dc61a40ebcf472d4e65 |
|
BLAKE2b-256 | 8400807998d191406025bdcf12d164a912f9e0f88333f118fcdbe7aab7184414 |