From 2cc24068597830c778b339f096e757678337d22b Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Thu, 18 Nov 2021 17:27:49 +0100 Subject: [mod] doc - in sidebar, add links to the reST sources Offer links to the reST sources (aka) html_show_sourcelink [1]. Links to the reST source are sometimes very helpful, especially in our resT-Primer [2] :) [1] https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_show_sourcelink [2] https://searxng.github.io/searxng/dev/reST.html Related-to: https://github.com/pallets/pallets-sphinx-themes/issues/32 Signed-off-by: Markus Heiser --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index eb3598908..47cdaa3f1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -130,13 +130,13 @@ if CONTACT_URL: html_context["project_links"].append(ProjectLink("Contact", CONTACT_URL)) html_sidebars = { - "**": ["project.html", "relations.html", "searchbox.html"], + "**": ["project.html", "relations.html", "searchbox.html", "sourcelink.html"], } singlehtml_sidebars = {"index": ["project.html", "localtoc.html"]} html_static_path = ["static"] html_logo = "static/img/searx_logo_small.png" html_title = "SearXNG Documentation ({})".format(VERSION_STRING) -html_show_sourcelink = False +html_show_sourcelink = True # LaTeX ---------------------------------------------------------------- -- cgit v1.2.3 From 3e5057405abe3499e6127fdb73564e89755ba1c8 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Thu, 18 Nov 2021 17:29:25 +0100 Subject: [mod] doc - html_logo = themes/simple/src/svg/searxng-wordmark.svg Signed-off-by: Markus Heiser --- docs/conf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index 47cdaa3f1..f892336f8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -133,8 +133,7 @@ html_sidebars = { "**": ["project.html", "relations.html", "searchbox.html", "sourcelink.html"], } singlehtml_sidebars = {"index": ["project.html", "localtoc.html"]} -html_static_path = ["static"] -html_logo = "static/img/searx_logo_small.png" +html_logo = "../searx/static/themes/simple/src/svg/searxng-wordmark.svg" html_title = "SearXNG Documentation ({})".format(VERSION_STRING) html_show_sourcelink = True -- cgit v1.2.3 From 27bb55ab0729fe0531440362f6aa5eb1142e42fb Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Thu, 18 Nov 2021 17:33:48 +0100 Subject: [brand] SearXNG - docs html_theme = "searxng" Signed-off-by: Markus Heiser --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index f892336f8..5bc83ebe6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -108,7 +108,7 @@ issues_github_path = "searxng/searxng" sys.path.append(os.path.abspath('_themes')) sys.path.insert(0, os.path.abspath("../utils/")) html_theme_path = ['_themes'] -html_theme = "searx" +html_theme = "searxng" # sphinx.ext.imgmath setup html_math_renderer = 'imgmath' -- cgit v1.2.3