Change Pygments lexer to account for prompt

This commit is contained in:
Juan Luis Cano Rodríguez 2021-05-31 18:03:04 +02:00
parent ce727e3cfe
commit 565713d228
2 changed files with 7 additions and 8 deletions

View File

@ -55,7 +55,7 @@ For that, open a command line terminal,
``cd`` into the directory you just created,
and run the following commands:
.. code-block:: bash
.. code-block:: console
$ python -m venv .venv
$ source .venv/bin/activate
@ -72,7 +72,7 @@ If you executed these instructions correctly,
you should have the Sphinx command line tools available.
You can do a basic verification running this command:
.. code-block:: bash
.. code-block:: console
(.venv) $ sphinx-build --version
sphinx-build 4.0.2
@ -85,7 +85,7 @@ Creating the documentation layout
Then from the command line,
run the following command:
.. code-block:: bash
.. code-block:: console
(.venv) $ sphinx-quickstart docs
@ -150,7 +150,7 @@ you already have everything needed
to render the documentation as HTML for the first time.
To do that, run this command:
.. code-block:: bash
.. code-block:: console
(.venv) $ sphinx-build -b html docs/source/ docs/build/html
@ -198,7 +198,7 @@ Now to render it with the new content,
you can use the ``sphinx-build`` command as before,
or leverage the convenience script as follows:
.. code-block:: bash
.. code-block:: console
(.venv) $ cd docs
(.venv) $ make html

View File

@ -208,10 +208,9 @@ You can read more about them in the `Python Packaging User Guide`_.
Note that in some Linux distributions, such as Debian and Ubuntu,
this might require an extra installation step as follows.
.. code-block:: bash
.. code-block:: console
$ apt-get install python3-venv
$ apt-get install python3-venv
Docker
------