brand-doc
Runs the brand-doc CLI to generate a Bain Design branded PDF from a Markdown file.
Input
The user provides a path to a .md file. They may also provide an output path. If not, the PDF is written alongside the input.
Steps
Resolve the input path. If it is relative, resolve it from the user's current working directory.
Run the tool:
brand-doc /path/to/input.md [/path/to/output.pdf]
- If the command succeeds, report the output path and open the PDF:
xdg-open /path/to/output.pdf
- If the command fails, show the error output.
Notes
- The tool lives at
/home/bain/bin/brand-doc(on PATH). - Source is at
studio/tools/brand-doc/brand_doc.pyin the bain-studio repo. - See
studio/tools/brand-doc/README.mdfor full documentation.