Skip to main content

Crystal language doc generator for MkDocs, via mkdocstrings

Project description

mkdocstrings-crystal

Crystal language doc generator for MkDocs, via mkdocstrings

PyPI License 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.9.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocstrings_crystal-0.3.9-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

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

Hashes for mkdocstrings_crystal-0.3.9.tar.gz
Algorithm Hash digest
SHA256 d5c6887e7d50cb6a2c5b9e05533c95c4d51b2eebe270d1f72b4f18de3b891c92
MD5 ca18461412d07cabdd21d13819df00d1
BLAKE2b-256 01542bd615f341cf5a29431183793f8163cfb1bc029a9ffde56a8ea25974a770

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocstrings_crystal-0.3.9.tar.gz:

Publisher: deploy-release.yml on mkdocstrings/crystal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for mkdocstrings_crystal-0.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f16e66bc3af866a35c849187a01447c28da156ac116169ffc698127187ee344a
MD5 44b20ed5ecd80aaeaa65ae88276040d0
BLAKE2b-256 8312add7ffb598fa48e676cf77982f26f4360e2ba18be1dcfb16079f592a05a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocstrings_crystal-0.3.9-py3-none-any.whl:

Publisher: deploy-release.yml on mkdocstrings/crystal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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