From b41d7017277c4ffde3b423cf34e3a61301a5ca35 Mon Sep 17 00:00:00 2001 From: Alexander Speshilov Date: Tue, 28 Feb 2023 16:20:53 +0300 Subject: fix example in docs/examples/python.rst (#1606) --- docs/examples/python.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/examples/python.rst b/docs/examples/python.rst index c3904863..dfc0abb3 100644 --- a/docs/examples/python.rst +++ b/docs/examples/python.rst @@ -35,10 +35,10 @@ To do this, we'll begin by importing `archinstall` in our `./archinstall/example import archinstall - all_drives = archinstall.list_drives() - print(all_drives) + all_drives = archinstall.all_blockdevices(partitions=False) + print(list(all_drives.keys())) -This should print out a list of drives and some meta-information about them. +This should print out a list of drives. As an example, this will do just fine. Now, go ahead and install the library either as a user-module or system-wide. -- cgit v1.2.3-70-g09d2 From 9b08c244e66bcc92c425a399f1ddf5be5bac7abc Mon Sep 17 00:00:00 2001 From: Chengjun Xie Date: Wed, 8 Mar 2023 22:30:10 +0800 Subject: rename `keyboard-language` to `keyboard-layout` (#1670) `keyboard-language` doesn't work. --- docs/installing/guided.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/installing/guided.rst b/docs/installing/guided.rst index b7d4db4f..3c566958 100644 --- a/docs/installing/guided.rst +++ b/docs/installing/guided.rst @@ -117,7 +117,7 @@ Options for ``--config`` +----------------------+--------------------------------------------------------+---------------------------------------------------------------------------------------------+-----------------------------------------------+ | kernels | [ "kernel1", "kernel2"] | List of kernels to install eg: linux, linux-lts, linux-zen etc | At least 1 | +----------------------+--------------------------------------------------------+---------------------------------------------------------------------------------------------+-----------------------------------------------+ -| keyboard-language | Any valid layout given by ``localectl list-keymaps`` | eg: ``us``, ``de`` or ``de-latin1`` etc. Defaults to ``us`` | No | +| keyboard-layout | Any valid layout given by ``localectl list-keymaps`` | eg: ``us``, ``de`` or ``de-latin1`` etc. Defaults to ``us`` | No | +----------------------+--------------------------------------------------------+---------------------------------------------------------------------------------------------+-----------------------------------------------+ | mirror-region | | {"": { "Mirror URL": True/False}, ..} | | Defaults to automatic selection. | No | | | | "Worldwide" or "Sweden" | | Either takes a dictionary structure of region and a given set of mirrors. | | -- cgit v1.2.3-70-g09d2 From 315f87ce827ccbc2c190c54fb5a1fdc360f5d986 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Fri, 31 Mar 2023 11:05:52 +0200 Subject: Fixed a indentation in a table of docs (#1708) --- docs/installing/guided.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/installing/guided.rst b/docs/installing/guided.rst index 3c566958..4cb07ae1 100644 --- a/docs/installing/guided.rst +++ b/docs/installing/guided.rst @@ -115,9 +115,9 @@ Options for ``--config`` +----------------------+--------------------------------------------------------+---------------------------------------------------------------------------------------------+-----------------------------------------------+ | hostname | any | Hostname of machine after installation. Default will be ``archinstall`` | No | +----------------------+--------------------------------------------------------+---------------------------------------------------------------------------------------------+-----------------------------------------------+ -| kernels | [ "kernel1", "kernel2"] | List of kernels to install eg: linux, linux-lts, linux-zen etc | At least 1 | +| kernels | [ "kernel1", "kernel2"] | List of kernels to install eg: linux, linux-lts, linux-zen etc | At least 1 | +----------------------+--------------------------------------------------------+---------------------------------------------------------------------------------------------+-----------------------------------------------+ -| keyboard-layout | Any valid layout given by ``localectl list-keymaps`` | eg: ``us``, ``de`` or ``de-latin1`` etc. Defaults to ``us`` | No | +| keyboard-layout | Any valid layout given by ``localectl list-keymaps`` | eg: ``us``, ``de`` or ``de-latin1`` etc. Defaults to ``us`` | No | +----------------------+--------------------------------------------------------+---------------------------------------------------------------------------------------------+-----------------------------------------------+ | mirror-region | | {"": { "Mirror URL": True/False}, ..} | | Defaults to automatic selection. | No | | | | "Worldwide" or "Sweden" | | Either takes a dictionary structure of region and a given set of mirrors. | | -- cgit v1.2.3-70-g09d2