]> git.baikalelectronics.ru Git - kernel.git/commit
docs: allow selecting a Sphinx theme
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 7 Dec 2021 09:52:59 +0000 (10:52 +0100)
committerJonathan Corbet <corbet@lwn.net>
Fri, 10 Dec 2021 21:05:55 +0000 (14:05 -0700)
commit6ead5ef4403f11db47f7988315a217286546d821
tree6f9c197e180ea7236c9815e3890bf2f706560b94
parenta23f00d1c7c8c33df228883cbdc57ebe70f6e0dc
docs: allow selecting a Sphinx theme

Instead of having RTD as an almost mandatory theme, allow the
user to select other themes via DOCS_THEME environment var.

There's a catch, though: as the current theme override logic is
dependent of the RTD theme, we need to move the code which
adds the CSS overrides to be inside the RTD theme logic.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/bd20adabfd428fd3cd0e69c2cf146aa354932936.1638870323.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/Makefile
Documentation/conf.py
Documentation/doc-guide/sphinx.rst