mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Change Pygments lexer to account for prompt
This commit is contained in:
parent
ce727e3cfe
commit
565713d228
@ -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
|
||||
|
@ -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
|
||||
------
|
||||
|
Loading…
Reference in New Issue
Block a user