Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions docs/reference/myst-syntax-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,17 @@ To show a terminal view, use the following directive:
Input is specified as the `:input:` option (or prefixed with `:input:` as part of the main content of the directive).
Output is the main content of the directive.

To override the prompt (`user@host:~$` by default), specify the `:user:` and/or `:host:` options.
To make the terminal scroll horizontally instead of wrapping long lines, add `:scroll:`.
To customize the prompt (`user@host:~$` by default), specify any of the following options:

* `:user:`
* `:host:`
* `:dir:`

To add a button that copies the command specified in `:input:`, include the `:copy:` option.

To make the terminal scroll horizontally instead of wrapping long lines, include the `:scroll:` option.

For more details, refer to the [`sphinx-terminal` README](https://github.com/canonical/sphinx-terminal/blob/main/README.md).

## Links

Expand Down
13 changes: 11 additions & 2 deletions docs/reference/rst-syntax-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,17 @@ To include a terminal view, use the following directive:
Input is specified as the ``:input:`` option (or prefixed with ``:input:`` as part of the main content of the directive).
Output is the main content of the directive.

To override the prompt (``user@host:~$`` by default), specify the ``:user:`` and/or ``:host:`` options.
To make the terminal scroll horizontally instead of wrapping long lines, add ``:scroll:``.
To customize the prompt (``user@host:~$`` by default), specify any of the following options:

* ``:user:``
* ``:host:``
* ``:dir:``

To add a button that copies the command specified in ``:input:``, include the ``:copy:`` option.

To make the terminal scroll horizontally instead of wrapping long lines, include the ``:scroll:`` option.

For more details, refer to the `sphinx-terminal README <https://github.com/canonical/sphinx-terminal/blob/main/README.md>`_.

Links
-----
Expand Down
Loading