changeset 8576:a63ccbc632d1

docs: add more section headings to setup description to show how it corresponds to the overview
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 19 Jun 2020 18:24:38 +0200
parents 8305790b9533
children 4742b8c89472
files docs/overview.rst docs/setup.rst
diffstat 2 files changed, 20 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/docs/overview.rst	Fri Jun 19 13:42:31 2020 +0200
+++ b/docs/overview.rst	Fri Jun 19 18:24:38 2020 +0200
@@ -30,13 +30,17 @@
     database schema and insert the most basic information: the location of the
     repository store and an initial local admin user.
 
-5. **Configure the web server.**
+5. **Prepare front-end files**
+    Some front-end files must be fetched or created using ``npm`` tooling so
+    they can be served to the client as static files.
+
+6. **Configure the web server.**
     The web server must invoke the WSGI entrypoint for the Kallithea software
     using the ``.ini`` file (and thus the database). This makes the web
     application available so the local admin user can log in and tweak the
     configuration further.
 
-6. **Configure users.**
+7. **Configure users.**
     The initial admin user can create additional local users, or configure how
     users can be created and authenticated from other user directories.
 
--- a/docs/setup.rst	Fri Jun 19 13:42:31 2020 +0200
+++ b/docs/setup.rst	Fri Jun 19 18:24:38 2020 +0200
@@ -8,6 +8,11 @@
 Setting up Kallithea
 --------------------
 
+Some further details to the steps mentioned in the overview.
+
+Create low level configuration file
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
 First, you will need to create a Kallithea configuration file. Run the
 following command to do so::
 
@@ -20,6 +25,9 @@
 
     kallithea-cli config-create my.ini host=8.8.8.8 "[handler_console]" formatter=color_formatter
 
+Populate the database
+^^^^^^^^^^^^^^^^^^^^^
+
 Next, you need to create the databases used by Kallithea. It is recommended to
 use PostgreSQL or SQLite (default). If you choose a database other than the
 default, ensure you properly adjust the database URL in your ``my.ini``
@@ -54,12 +62,18 @@
           but when trying to do a push it will fail with permission
           denied errors unless it has write access.
 
+Prepare front-end files
+^^^^^^^^^^^^^^^^^^^^^^^
+
 Finally, the front-end files must be prepared. This requires ``npm`` version 6
 or later, which needs ``node.js`` (version 12 or later). Prepare the front-end
 by running::
 
     kallithea-cli front-end-build
 
+Running
+^^^^^^^
+
 You are now ready to use Kallithea. To run it simply execute::
 
     gearbox serve -c my.ini