Empty .. code-block:: was not allowed. Needed console as well.

This commit is contained in:
Anton Hvornum 2020-09-30 23:11:01 +02:00
parent 088fb5cfcd
commit 4594c95bb9
4 changed files with 11 additions and 11 deletions

View File

@ -15,7 +15,7 @@ As an example we'll use the `guided <https://github.com/Torxed/archinstall/blob/
To run the `guided` installed, all you have to do *(after installing or compiling the binary)*, is run:
.. code-block::
.. code-block:: console
./archinstall guided

View File

@ -48,7 +48,7 @@ Calling a module
Assuming you've followed the example in `Creating a script`_, you can now safely call it with:
.. code-block::
.. code-block:: console
python -m archinstall test_installer
This should now print all available drives on your system.

View File

@ -19,7 +19,7 @@ We'll use the later for this example as it's less of a process to explain.
Setup pacman to use https://archlinux.life as a mirror by modifying `/etc/pacman.conf` to contain the following:
.. code-block::
.. code-block:: console
[archlife]
Server = https://archlinux.life/$repo/os/$arch
@ -27,7 +27,7 @@ Setup pacman to use https://archlinux.life as a mirror by modifying `/etc/pacman
You can now update your mirror-list and install `archinstall`.
.. code-block::
.. code-block:: console
sudo pacman -Syy
sudo pacman -S archinstall
@ -39,13 +39,13 @@ The `source <https://github.com/Torxed/archinstall>`_ contains a binary `PKGBUIL
Once you've obtained the `PKGBUILD`, building it is pretty straight forward.
.. code-block::
.. code-block:: console
makepkg -s
Which should produce a `archinstall-X.x.z-1.pkg.tar.zst` that can be installed using:
.. code-block::
.. code-block:: console
sudo pacman -U archinstall-X.x.z-1.pkg.tar.zst
@ -59,7 +59,7 @@ Manual compilation
You can compile the source manually without using a custom mirror or the `PKGBUILD` that is shipped.
Simply clone or download the source, and while standing in the cloned folder `./archinstall`, execute:
.. code-block::
.. code-block:: console
nuitka3 --standalone --show-progress archinstall

View File

@ -15,13 +15,13 @@ Using PyPi
The basic concept of PyPi applies using `pip`.
Either as a global library:
.. code-block::
.. code-block:: console
sudo pip install archinstall
Or as a user module:
.. code-block::
.. code-block:: console
pip --user install archinstall
@ -35,7 +35,7 @@ Manual installation
You can either download the github repo as a zip archive.
Or you can clone it, we'll clone it here but both methods work the same.
.. code-block::
.. code-block:: console
git clone https://github.com/Torxed/archinstall
@ -47,6 +47,6 @@ Either you can move the folder into your project and simply do
Or you can use `setuptools <https://pypi.org/project/setuptools/>`_ to install it into the module path.
.. code-block::
.. code-block:: console
sudo python setup.py install