Crystal language doc generator for MkDocs, via 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocstrings_crystal-0.3.9.tar.gz.
File metadata
- Download URL: mkdocstrings_crystal-0.3.9.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5c6887e7d50cb6a2c5b9e05533c95c4d51b2eebe270d1f72b4f18de3b891c92
|
|
| MD5 |
ca18461412d07cabdd21d13819df00d1
|
|
| BLAKE2b-256 |
01542bd615f341cf5a29431183793f8163cfb1bc029a9ffde56a8ea25974a770
|
Provenance
The following attestation bundles were made for mkdocstrings_crystal-0.3.9.tar.gz:
Publisher:
deploy-release.yml on mkdocstrings/crystal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocstrings_crystal-0.3.9.tar.gz -
Subject digest:
d5c6887e7d50cb6a2c5b9e05533c95c4d51b2eebe270d1f72b4f18de3b891c92 - Sigstore transparency entry: 685025947
- Sigstore integration time:
-
Permalink:
mkdocstrings/crystal@e843b854d4fcdbcf992ed0ee7331378fb3f932e9 -
Branch / Tag:
refs/tags/v0.3.9 - Owner: https://github.com/mkdocstrings
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy-release.yml@e843b854d4fcdbcf992ed0ee7331378fb3f932e9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mkdocstrings_crystal-0.3.9-py3-none-any.whl.
File metadata
- Download URL: mkdocstrings_crystal-0.3.9-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f16e66bc3af866a35c849187a01447c28da156ac116169ffc698127187ee344a
|
|
| MD5 |
44b20ed5ecd80aaeaa65ae88276040d0
|
|
| BLAKE2b-256 |
8312add7ffb598fa48e676cf77982f26f4360e2ba18be1dcfb16079f592a05a2
|
Provenance
The following attestation bundles were made for mkdocstrings_crystal-0.3.9-py3-none-any.whl:
Publisher:
deploy-release.yml on mkdocstrings/crystal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocstrings_crystal-0.3.9-py3-none-any.whl -
Subject digest:
f16e66bc3af866a35c849187a01447c28da156ac116169ffc698127187ee344a - Sigstore transparency entry: 685025948
- Sigstore integration time:
-
Permalink:
mkdocstrings/crystal@e843b854d4fcdbcf992ed0ee7331378fb3f932e9 -
Branch / Tag:
refs/tags/v0.3.9 - Owner: https://github.com/mkdocstrings
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy-release.yml@e843b854d4fcdbcf992ed0ee7331378fb3f932e9 -
Trigger Event:
push
-
Statement type: