Sysl Catalog CLI Reference
sysl-catalog
is a standalone CLI tool that allows you to generate documentation from your Sysl specifications. It currently supports the following output formats:
- Markdown
- HTML (using GoldMark)
To install it, follow the instructions here
#
Example Commands#
Output default Markdownsysl-catalog -o=docs/ filename.sysl
#
Output default HTMLsysl-catalog -o=docs/ --type=html filename.sysl
#
Run with custom templatessysl-catalog --templates=<filename1.tmpl>,<filename2.tmpl> filename.sysl
With this the first template will be executed first, then the second
#
Run in server modesysl-catalog
comes with a serve
mode which will serve on port :6900
by default
sysl-catalog --serve <input.sysl>
This will start a server and filewatchers to watch the input file and its directories recursively, and any changes will automatically update.
#
Generate ReDoc filessysl-catalog --redoc filename.sysl
This generates a ReDoc page that serves the original JSON or YAML OpenAPI spec on GitHub. It currently only supports spec files located in the same repo, and must be run in a Git repo (so that the remote URL can be retrieved using git
).
#
Run in server mode without css/rendered imagessysl-catalog --serve --noCSS filename.sysl
This is useful for rendering raw markdown
#
Run server with custom templatesysl-catalog --serve --templates=<filename1.tmpl>,<filename2.tmpl> filename.sysl