Publish documentation

CLI Beta

For teams who want an HTML site and a PDF from reStructuredText or MyST sources, built by the ubc CLI.

  1. What is ubCode? explains how ubCode works with Sphinx, or instead of it.

  2. ubc CLI gets you ubc, a single binary.

  3. Quickstart scaffolds a project to build, with a markdown flavor for MyST authors.

  4. Building a static HTML site builds and ships a static site, with a builder that is Beta.

  5. Building a PDF builds one PDF from the same sources, and Page classes at work shows its page classes at work; Which diagrams draw on a default install says which diagrams it draws with what installed.

  6. HTML site and PDF document set the theme, the branding and the page layout.

  7. Writing reports and Card designs with [needs.card_layouts] add generated reports and need cards.

  8. Writing content and Differences from a Sphinx build say what renders, and where ubc differs from Sphinx; the essentials tour shows the constructs most pages need.

Neither builder renders autodoc (ubCode does not run your code) or Graphviz; Unsupported syntax lists each with what to write instead. Both builders read one numbering model, [build.numbering] (Numbering), with a table of their own for anything that should differ; the site prints its section, figure, table, code-block and equation numbers and the :numref: / :eq: references to them — see Numbering sections, figures and equations — and the PDF prints the same numbers in its headings, contents, bookmarks, running heads, captions, equations and :numref: / :eq: references, and letters its appendices — see Numbering.

Next steps

Use it at work. ubCode is free for open-source projects, and a private project needs a commercial license. Request a free enterprise trial to evaluate it on your own private project.