Skip to content

Commit

Permalink
docs/internal: Add note on synth_* script highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
KrystalDelusion committed Mar 4, 2025
1 parent 471d73f commit 46765a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/source/cmd/index_internal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ Dumping command help to json
:end-before: "chparam": {
:caption: `chformal` in generated :file:`cmds.json`

.. note:: Synthesis command scripts are special cased

If the final block of help output starts with the string `"The following
commands are executed by this synthesis command:\n"`, then the rest of the
code block is formatted as ``yoscrypt`` (e.g. `synth_ice40`). The caveat
here is that if the ``script()`` calls ``run()`` on any commands *prior* to
the first ``check_label`` then the auto detection will break and revert to
unformatted code (e.g. `synth_fabulous`).

Command line rendering
~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 46765a8

Please # to comment.