seedwing-io / seedwing-policy

A functional type system for policy inspection, audit and enforcement.
https://www.seedwing.io
Apache License 2.0
12 stars 15 forks source link

Generate Asciidoc documentation from policies #168

Closed ctron closed 1 year ago

ctron commented 1 year ago

Add a new command (swio docs], which generates an Antora Asciidoc module from the "world", which is "core", plus all configured/provided sources.

closes #160

This also fixes the way we "exit" in the CLI. Instead of just exiting somewhere in the code, the main method gets an ExitCode returned, which aligns with what Rust uses in newer versions. Also it fixes a bunch of Asciidoc issues in the docs themselves.

Example: image