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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bdc829eabc9ad8ee0afd43cd7a852e60500c94a08b265ea69610a4d54ea5dbd |
|
MD5 | 5ec018596d883e5ffc1bcabb62951542 |
|
BLAKE2b-256 | 542b45d7d7866afe6b89d1411eb8693702555d9ffeac7690969b7e98f52e9d9d |
Hashes for mkdocstrings_crystal-0.3.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d06db457d6fe4f996e4f1b418ac5763191abd05e31e454a325d414f1d509856c |
|
MD5 | 4d034d9be6029ce3e34168837aca28ea |
|
BLAKE2b-256 | 793deb9d1520dac27ee7f2b2084b376555a5bdf85abb4c6c7ea2ef8b9e9d7c72 |