4from searx.version import VERSION_STRING
5from pallets_sphinx_themes import ProjectLink
7GIT_URL = os.environ.get("GIT_URL", "https://github.com/asciimoo/searx")
8SEARX_URL = os.environ.get("SEARX_URL", "https://searx.me")
9DOCS_URL = os.environ.get("DOCS_URL", "https://asciimoo.github.io/searx/")
11# Project --------------------------------------------------------------
14copyright = u'2015-2019, Adam Tauber, Noémi Ványi'
15author = u'Adam Tauber'
16release, version = VERSION_STRING, VERSION_STRING
17highlight_language = 'none'
19# General --------------------------------------------------------------
25from searx import webapp
27 'webapp': dict(**webapp.__dict__)
30# usage:: lorem :patch:`f373169` ipsum
34extlinks['wiki'] = ('https://github.com/asciimoo/searx/wiki/%s', ' ')
35extlinks['pull'] = ('https://github.com/asciimoo/searx/pull/%s', 'PR ')
37# links to custom brand
38extlinks['origin'] = (GIT_URL + '/blob/master/%s', 'git://')
39extlinks['patch'] = (GIT_URL + '/commit/%s', '#')
40extlinks['search'] = (SEARX_URL + '/%s', '#')
41extlinks['docs'] = (DOCS_URL + '/%s', 'docs: ')
42extlinks['pypi'] = ('https://pypi.org/project/%s', 'PyPi: ')
43extlinks['man'] = ('https://manpages.debian.org/jump?q=%s', '')
45# 'https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-%s', '')
47 'http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#%s', '')
49 'http://docutils.sourceforge.net/docs/ref/rst/roles.html#%s', '')
51 'http://docutils.sourceforge.net/docs/ref/rst/directives.html#%s', '')
53 'https://ctan.org/pkg/%s', 'CTAN: ')
57 'sphinx.ext.extlinks',
58 'sphinx.ext.viewcode',
60 "sphinx.ext.intersphinx",
61 "pallets_sphinx_themes",
62 "sphinx_issues", # https://github.com/sloria/sphinx-issues/blob/master/README.rst
63 "sphinxcontrib.jinja", # https://github.com/tardyp/sphinx-jinja
64 'linuxdoc.rstFlatTable', # Implementation of the 'flat-table' reST-directive.
65 'linuxdoc.kfigure', # Sphinx extension which implements scalable image handling.
66 "sphinx_tabs.tabs", # https://github.com/djungelorm/sphinx-tabs
69intersphinx_mapping = {
70 "python": ("https://docs.python.org/3/", None),
71 "flask": ("https://flask.palletsprojects.com/", None),
72 # "werkzeug": ("https://werkzeug.palletsprojects.com/", None),
73 "jinja": ("https://jinja.palletsprojects.com/", None),
74 "linuxdoc" : ("https://return42.github.io/linuxdoc/", None),
75 "sphinx" : ("https://www.sphinx-doc.org/en/master/", None),
78issues_github_path = "asciimoo/searx"
80# HTML -----------------------------------------------------------------
82sys.path.append(os.path.abspath('_themes'))
83html_theme_path = ['_themes']
86# sphinx.ext.imgmath setup
87html_math_renderer = 'imgmath'
88imgmath_image_format = 'svg'
90# sphinx.ext.imgmath setup END
92html_theme_options = {"index_sidebar_logo": True}
95 ProjectLink("Source", GIT_URL),
96 ProjectLink("Wiki", "https://github.com/asciimoo/searx/wiki"),
97 ProjectLink("Public instances", "https://github.com/asciimoo/searx/wiki/Searx-instances"),
98 ProjectLink("Twitter", "https://twitter.com/Searx_engine"),
102 "**": ["project.html", "relations.html", "searchbox.html"],
104singlehtml_sidebars = {"index": ["project.html", "localtoc.html"]}
105html_static_path = ["static"]
106html_logo = "static/img/searx_logo_small.png"
107html_title = "Searx Documentation ({})".format("Searx-{}.tex".format(VERSION_STRING))
108html_show_sourcelink = False
110# LaTeX ----------------------------------------------------------------
113 (master_doc, "searx-{}.tex".format(VERSION_STRING), html_title, author, "manual")
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list