diff options
| author | Alexandre Flament <alex@al-f.net> | 2022-06-18 07:26:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-18 07:26:40 +0200 |
| commit | a7b0b2ecbf82f823750f641500085f316cb4edd0 (patch) | |
| tree | a751383a9c47788e42064b272fc6a45e23f32601 /docs | |
| parent | 8177bf3f0a4d4f22cf63812dc86a80535cd15d68 (diff) | |
| parent | 31005595c9681fbcc75d5d933c3cac1300a22e75 (diff) | |
Merge pull request #1329 from samsaptidev/feature/privacypolicy_url
Add privacypolicy_url option
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/admin/engines/settings.rst | 4 | ||||
| -rw-r--r-- | docs/conf.py | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/docs/admin/engines/settings.rst b/docs/admin/engines/settings.rst index 8f4ee12da..b43802d11 100644 --- a/docs/admin/engines/settings.rst +++ b/docs/admin/engines/settings.rst @@ -72,12 +72,16 @@ Global Settings general: debug: false # Debug mode, only for development instance_name: "SearXNG" # displayed name + privacypolicy_url: false # https://example.com/privacy contact_url: false # mailto:contact@example.com ``debug`` : ``$SEARXNG_DEBUG`` Allow a more detailed log if you run SearXNG directly. Display *detailed* error messages in the browser too, so this must be deactivated in production. +``privacypolicy_url``: + Link to privacy policy. + ``contact_url``: Contact ``mailto:`` address or WEB form. diff --git a/docs/conf.py b/docs/conf.py index 171e864ed..750464916 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,6 +18,7 @@ SEARXNG_URL = get_setting('server.base_url') or 'https://example.org/searxng' ISSUE_URL = get_setting('brand.issue_url') DOCS_URL = get_setting('brand.docs_url') PUBLIC_INSTANCES = get_setting('brand.public_instances') +PRIVACYPOLICY_URL = get_setting('general.privacypolicy_url') CONTACT_URL = get_setting('general.contact_url') WIKI_URL = get_setting('brand.wiki_url') @@ -172,6 +173,8 @@ if PUBLIC_INSTANCES: html_context["project_links"].append(ProjectLink("Public instances", PUBLIC_INSTANCES)) if ISSUE_URL: html_context["project_links"].append(ProjectLink("Issue Tracker", ISSUE_URL)) +if PRIVACYPOLICY_URL: + html_context["project_links"].append(ProjectLink("Privacy Policy", PRIVACYPOLICY_URL)) if CONTACT_URL: html_context["project_links"].append(ProjectLink("Contact", CONTACT_URL)) |