Skip to main content

Crystal language doc generator for mkdocstrings

Project description

mkdocstrings-crystal

Crystal language doc generator for MkDocs, via mkdocstrings

PyPI GitHub GitHub Workflow Status

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.

See it in action.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocstrings_crystal-0.3.6.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

mkdocstrings_crystal-0.3.6-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file mkdocstrings_crystal-0.3.6.tar.gz.

File metadata

File hashes

Hashes for mkdocstrings_crystal-0.3.6.tar.gz
Algorithm Hash digest
SHA256 37d3f6194ad65d996756cd23e548ffdbef8e18f7515ed9a2502b16d695597f04
MD5 fc5643c3dec74933a1e3ce23c0d9b10c
BLAKE2b-256 e65340fcf72d9a8cfe6496b62a284c49900b57e365f238a9058c6f709d38fc03

See more details on using hashes here.

File details

Details for the file mkdocstrings_crystal-0.3.6-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocstrings_crystal-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 824bb305fda7de4760101f078ee586b536a89294b2e9a07f453fee61d3e4a665
MD5 7899952a92e01bba426c53732573470d
BLAKE2b-256 71c64ab2b13bb68d3dcd629fed8edfff26614007d14094b4e0ba1a21269a84d0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page