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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ba2be84a5ffbd69f806c4457de8b83630b5428e19ff95a99378b0cd866362f6 |
|
MD5 | 3886b070c5cc73cbb6782eecc78ca0c7 |
|
BLAKE2b-256 | 1cb862d14ec59646c76b32b97da37b75d54f6ecd90ec072d3ed61d18daacc005 |
Hashes for mkdocstrings_crystal-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fb6924562be855215073f91c90ec60d036c976be4653d32f4c3448f1803fbf2 |
|
MD5 | 99f1f4d2917cd538e386a24d58fc044f |
|
BLAKE2b-256 | 0bced746f7295a045d9eef5dd14ac45e4fa97512b5274f6d7a33ef6011978706 |