Unsupported syntax¶
These are the constructs a Sphinx project can write that ubCode does not render, each with what to write instead.
A directive ubCode recognises but has no renderer for is drawn as a placeholder,
a labelled frame showing its name, options and body,
in the preview and in both builds,
and ubc build html and ubc build pdf report it once per name
(build.directive_unhandled, build.pdf_directive_unhandled).
A directive it does not recognise at all is reported as block.directive_unknown,
and a role it has no renderer for is drawn as a chip and reported as build.role_unhandled.
Every other directive and role ubCode renders is shown on the Writing pages, and this page is checked against ubCode’s own list of what it renders, so a row leaves the table when its construct is supported.
API documentation¶
Construct |
Instead |
|---|---|
|
ubCode does not import or run your code. Build the API reference with Sphinx, and link to it through intersphinx. |
|
Describe the object in a definition list or a field list.
( |
|
Put a label on the description and refer to it with |
|
Write a command’s options as an option list,
and refer to them by a label with |
Numbering¶
Construct |
Instead |
|---|---|
|
Number the headings in their titles. |
The toctree’s |
Number the headings in their titles. The option is accepted and ignored, with no finding: the headings print unnumbered. |
Sphinx’s |
Give the caption its number yourself. ubCode has no such setting, so captions print unnumbered, with no finding. |
|
Write the links you want listed as footnotes. |
|
Refer to the figure, table or equation’s label with |
Diagrams¶
Construct |
Instead |
|---|---|
|
Draw it with |
Sphinx-Needs¶
Construct |
Instead |
|---|---|
|
Export the service’s data to a |
sphinx-design¶
Construct |
Instead |
|---|---|
|
A |
|
A |
|
Write the author and date as text. |
|
The |
Other constructs¶
Construct |
Instead |
|---|---|
|
A hyperlink to the entry. |
|
Nothing: docutils registers it for its own tests. |
MyST extensions¶
Three of MyST-Parser’s extensions are not implemented:
naming one in the parsing configuration reports config.extension_unimplemented,
and its syntax renders as written.
Extension |
Instead |
|---|---|
|
Write the text out, or keep the page in reStructuredText, whose |
|
Enable |
|
Write the admonition as a directive, such as |