Skip to content

Commit

Permalink
docs: use correct keypress style, fix markup (#722)
Browse files Browse the repository at this point in the history
* docs: add correct keypress markup

In compliance with the Ubuntu and reST style guides.

* [review] re-add "ctrl" to linter allowlist

Turns out the linter doesn't respect :kbd: fences.
  • Loading branch information
medubelko authored Oct 3, 2024
1 parent 94b6877 commit 1d87e33
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cli
CMake
cmake
CMD
CTRL
Ctrl
dataset
Deadsnakes
declaratively
Expand Down
6 changes: 4 additions & 2 deletions docs/tutorial/django.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ The Django application should respond with
it difficult to read on a terminal. Visit ``http://localhost:8000`` using a
browser to see the fully rendered page.

The Django application looks good, so you can stop it for now using ``ctrl+C``.
The Django application looks good, so let's stop it for now by pressing
:kbd:`Ctrl` + :kbd:`C`.

Pack the Django application into a rock
=======================================
Expand Down Expand Up @@ -211,7 +212,8 @@ You should expect to see something similar to this:
2024-08-20T06:34:36.116Z [django] [2024-08-20 06:34:36 +0000] [18] [INFO] Booting worker with pid: 18
You can also choose to follow the logs by using the ``-f`` option with the
``pebble logs`` command above. To stop following the logs, press ``ctrl+c``.
``pebble logs`` command above. To stop following the logs, press :kbd:`Ctrl` +
:kbd:`C`.

Cleanup
~~~~~~~
Expand Down
6 changes: 4 additions & 2 deletions docs/tutorial/flask.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ endpoint. You may need a new terminal for this, if you are using Multipass use

The Flask application should respond with ``Hello, world!``.

The Flask application looks good, so stop it for now using ``ctrl+C``.
The Flask application looks good, so let's stop it for now by pressing
:kbd:`Ctrl` + :kbd:`C`.

Pack the Flask application into a rock
======================================
Expand Down Expand Up @@ -205,7 +206,8 @@ You should expect to see something similar to this:
2024-06-21T03:41:45.078Z [flask] [2024-06-21 03:41:45 +0000] [18] [INFO] Booting worker with pid: 18
You can also choose to follow the logs by using the ``-f`` option with the
``pebble logs`` command above. To stop following the logs, press ``ctrl+c``.
``pebble logs`` command above. To stop following the logs, press :kbd:`Ctrl` +
:kbd:`C`.

.. note::

Expand Down
4 changes: 2 additions & 2 deletions docs/tutorial/node-app.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ open another shell into the VM and access the app with curl:

This should also print "Hello World from inside the rock!" to the terminal.

You can now stop the running container by either interrupting it with CTRL+C or
by running the following in another terminal:
You can now stop the running container by either interrupting it with
:kbd:`Ctrl` + :kbd:`C` or by running the following in another terminal:

.. literalinclude:: code/node-app/task.yaml
:language: bash
Expand Down

0 comments on commit 1d87e33

Please sign in to comment.