diff options
| author | Bnyro <bnyro@tutanota.com> | 2026-05-06 22:05:24 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2026-05-07 16:19:28 +0200 |
| commit | ef6290c8cd64c7437745ea113d675e3a3f469062 (patch) | |
| tree | 5ae5bf6caaa6578f6243e6bbc91403d7cdb0cabc /docs | |
| parent | 89aa588b27260b27e6a1c845364197a0da27c053 (diff) | |
[furo] add some project links to the online documentation (#3408)
- add button for editing docs source on GitHub
- add links to GitHub repository and public instances (searx.space)
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/conf.py | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py index b976f0209..3fb8256ea 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -import sys, os +import os from pathlib import Path from searx import get_setting @@ -156,6 +156,26 @@ issues_github_path = "searxng/searxng" # HTML ----------------------------------------------------------------- html_theme = "furo" +html_theme_options = { + # link to project source at GitHub for editing and viewing docs code + "source_repository": "https://github.com/searxng/searxng/", + "source_branch": "master", + "source_directory": "docs/", + + # Show link to repository & searx.space in footer + "footer_icons": [ + { + "name": "GitHub", + "url": "https://github.com/searxng/searxng/", + "html": "💾", + }, + { + "name": "searx.space", + "url": "https://searx.space/", + "html": "🌐", + }, + ], +} html_sidebars = { "**": [ @@ -188,6 +208,7 @@ html_show_sphinx = False html_logo = "../client/simple/src/brand/searxng-wordmark.svg" html_title = "SearXNG Documentation ({})".format(VERSION_STRING) html_show_sourcelink = True +html_copy_source = True # LaTeX ---------------------------------------------------------------- |
