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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8144cfccfb4962bdc301f4f5a5500e2f0e28edd9f73b67b601baf2e168cc15a6 |
|
MD5 | 95ce556fc4f106571e0b741fba797336 |
|
BLAKE2b-256 | 9a86da276929ca1df2df520c36f8e7e36e6746e140c870d4ed1e936203d05d51 |
Hashes for mkdocstrings_crystal-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33897b48b19fd460acfacb6d237cf87bf3da941ceba07ae9cc89fe6e555ab233 |
|
MD5 | 8465456f00ef7b441679346e55e54d3c |
|
BLAKE2b-256 | d98edc39f6c7c8261a27440eed42eb8f1386af71cf0837b10d8806164939691e |