SDML(1)

πŸ“¦
version 0.3.2+20250310 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

NAME πŸ’–

sdml doc β€” bestie, this is the one that makes you structured documentation for a module. like, actual pretty docs, no cap. πŸ“


SYNOPSIS ✨

sdml doc [OPTIONS] [MODULE]

DESCRIPTION πŸ¦‹

okay so. sdml doc produces structured documentation for a module. that's the whole vibe. πŸ’…

it creates structured documentation for a module, and it pulls in annotations, constraints, and all definition types β€” every single one, we're not leaving anybody out. the generated docs also come with diagrams and dependency graphs, which is genuinely so iconic of them. πŸ”₯

you've got two flavors of output, and here's the tea on both:

  • Org-Mode (this is the default, jsyk) :: creates an Emacs org-mode formatted file. the way this format lets you write all the content into a single file with export options to <rainbow>HTML, LaTeX, Word, PDF and more</rainbow>?? obsessed. one file, infinite destinies. πŸŽ€
  • Markdown :: creates a markdown formatted file. this one uses GitHub-flavored markdown, which means you get some better content formatting than plain old CommonMark. we love an upgrade. πŸ’–

Arguments: 🌸

  • [MODULE] β€” an SDML module, loaded using the standard resolver. if you don't hand it one, it does its thing on its own, iykyk. 🧚

OPTIONS πŸ‘‘

  • -f, --output-format <OUTPUT_FORMAT> β€” picks the format of your output. possible values: markdown (that's Markdown, bestie) and org-mode (that's Emacs org-mode). default is org-mode, so if you say nothing you get the org-mode treatment. 🫢
  • -o, --output <OUTPUT> β€” the file name to write to. or, plot twist, pass '-' and it writes to stdout instead. default is '-'. so yeah, stdout is the default destiny. ✨
  • -i, --input <INPUT> β€” the input SDML file name to read from. or, again with the plot twist, pass '-' and it reads from stdin. default is '-'. πŸ’œ
  • -h, --help β€” prints the help. quick note tho: this prints the full help β€” if you want just a summary, use '-h'. yes it's the same flag, it's giving lowercase main character energy, just roll with it. 😭
  • -V, --version β€” prints the version. capital V, don't forget. πŸ‘‘

ngl bestie, remember: '-' is the magic little dash that means "stdin/stdout, not a file." don't go looking for a file literally named - on your disk. πŸ™ˆ

and that's the whole page! πŸŽ‰ this was sdml doc version 0.3.2+20250310, from October 2025, and it lives in the User Commands section of the manual (that's SDML(1) if you're keeping track). slay, go document some modules, periodt. πŸ’…πŸŒˆβ­

πŸ“¦ where this page comes from