From 85e83e55aec629d503e3645980faa830a9b78c4d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 5 Jun 2024 18:23:57 +0200 Subject: Adding upstream version 0.7.16. Signed-off-by: Daniel Baumann --- docs/installation.rst | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 docs/installation.rst (limited to 'docs/installation.rst') diff --git a/docs/installation.rst b/docs/installation.rst new file mode 100644 index 0000000..487a1dd --- /dev/null +++ b/docs/installation.rst @@ -0,0 +1,67 @@ +============ +Installation +============ + +Alabaster requires **Sphinx 3.4 or newer**, and is included as the default +theme. + +.. note:: + If you distribute your documentation via `Read the Docs + `_, you will need to explicitly enable + Alabaster by adding this line to your ``conf.py``: + + .. code-block:: python + + html_theme = 'alabaster' + +To set-up Alabaster, add an explicit ``html_sidebars`` setting so +Alabaster's customized sidebar templates are loaded: + + .. code-block:: python + + html_sidebars = { + '**': [ + 'about.html', + 'navigation.html', + 'relations.html', + 'searchbox.html', + 'donate.html', + ] + } + +That's it! You now have the standard Alabaster theme set up. Read on for more +core configuration concerns, or see :doc:`customization` for feature/style +options. + + +Sidebars +-------- + +Feel free to adjust ``html_sidebars`` as desired - the theme is designed +assuming you'll always have ``about.html`` activated, but otherwise it doesn't +care much. + +* See `the Sphinx docs + `_ for details on + how this setting behaves. +* Alabaster provides ``about.html`` (logo, github button + blurb), + ``donate.html`` (donation/support buttons/links) and ``navigation.html`` (a + more flexible version of the builtin ``localtoc``/``globaltoc`` templates). + ``searchbox.html`` comes with Sphinx itself. + + +.. _static-path: + +Static path for images and/or custom stylesheet +----------------------------------------------- + +If you're using any of the image-related options listed on :doc:`customization` +(``logo`` or ``touch-icon``) or a :ref:`custom stylesheet `, +you'll also want to tell Sphinx where to get these files from. If so, add a +line like this (changing the path if necessary; see `the Sphinx docs for +'html_static_path' +`_) to your ``conf.py``: + +.. code-block:: python + + html_static_path = ['_static'] -- cgit v1.2.3