| CRYSTAL-DOC(1) | Crystal Compiler Command Line Reference Guide | CRYSTAL-DOC(1) |
NAME
crystal-doc - Generate API docs for Crystal code
SYNOPSIS
crystal build [options] [programfile] [--] [arguments]
DESCRIPTION
Generate documentation from comments using a subset of markdown. The output is saved in html format on the created docs/ folder. More information about documentation conventions can be found at https://crystal-lang.org/docs/conventions/documenting_code.html.
OPTIONS
--project-name NAME
In case no default can be found, this option is mandatory.
--project-version VERSION
In case no default can be found, this option is mandatory.
--json-config-url URL
--source-refname REFNAME
If this option is missing and can’t be automatically determined, the generator can’t produce source code links.
--source-url-pattern URL
Supported replacement tags:
%{refname}
%{path}
%{filename}
%{line}
If this option is missing and can’t be automatically determined, the generator can’t produce source code links.
-o DIR, --output DIR
-b URL, --canonical-base-url URL
-b URL, --sitemap-base-url URL
--sitemap-priority PRIO
--sitemap-changefreq FREQ
| 2026-07-23 | crystal 1.21.0 |