on master help sign in
brands: add ISSUE_URL

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>

commit33814719333c2c5b7b13ab47f9c8d4f8a0cecb16 authorMarkus Heiser <markus.heiser@darmarit.de> dateWed 25 Mar 2020, 17:48 (7 years ago) parent4d64828
5 files changed+10−3
Makefile+2 searx/brand.py+1 searx/templates/oscar/base.html+1−1 searx/templates/simple/base.html+1−1 setup.py+5−1
Makefile+2
@@ -1,6 +1,7 @@
11# -*- coding: utf-8; mode: makefile-gmake -*-
22
33export GIT_URL=https://github.com/asciimoo/searx
4+export ISSUE_URL=$(GIT_URL)/issues
45export SEARX_URL=https://searx.me
56export DOCS_URL=https://asciimoo.github.io/searx
67
@@ -86,6 +87,7 @@ engines-languages: pyenvinstall
8687searx.brand:
8788 $(Q)echo "build searx/brand.py"
8889 $(Q)echo "GIT_URL = '$(GIT_URL)'" > searx/brand.py
90+ $(Q)echo "ISSUE_URL = '$(ISSUE_URL)'" >> searx/brand.py
8991 $(Q)echo "SEARX_URL = '$(SEARX_URL)'" >> searx/brand.py
9092 $(Q)echo "DOCS_URL = '$(DOCS_URL)'" >> searx/brand.py
9193 $(Q)echo "PUBLIC_INSTANCES = 'https://searx.space'" >> searx/brand.py
searx/brand.py+1
@@ -1,4 +1,5 @@
11GIT_URL = 'https://github.com/asciimoo/searx'
2+ISSUE_URL = 'https://github.com/asciimoo/searx/issues'
23SEARX_URL = 'https://searx.me'
34DOCS_URL = 'https://asciimoo.github.io/searx'
45PUBLIC_INSTANCES = 'https://searx.space'
searx/templates/oscar/base.html+1−1
@@ -87,7 +87,7 @@
8787 <small>
8888 {{ _('Powered by') }} <a href="{{ brand.DOCS_URL }}">searx</a> - {{ searx_version }} - {{ _('a privacy-respecting, hackable metasearch engine') }}<br/>
8989 <a href="{{ brand.GIT_URL }}">{{ _('Source code') }}</a> |
90− <a href="{{ brand.GIT_URL }}/issues">{{ _('Issue tracker') }}</a> |
90+ <a href="{{ brand.ISSUE_URL }}">{{ _('Issue tracker') }}</a> |
9191 <a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a>
9292 </small>
9393 </p>
searx/templates/simple/base.html+1−1
@@ -52,7 +52,7 @@
5252 <p>
5353 {{ _('Powered by') }} <a href="{{ url_for('about') }}">searx</a> - {{ searx_version }} - {{ _('a privacy-respecting, hackable metasearch engine') }}<br/>
5454 <a href="{{ brand.GIT_URL }}">{{ _('Source code') }}</a> |
55− <a href="{{ brand.GIT_URL }}/issues">{{ _('Issue tracker') }}</a> |
55+ <a href="{{ brand.ISSUE_URL }}">{{ _('Issue tracker') }}</a> |
5656 <a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a>
5757 </p>
5858 </footer>
setup.py+5−1
@@ -26,6 +26,11 @@ setup(
2626 version=VERSION_STRING,
2727 description="A privacy-respecting, hackable metasearch engine",
2828 long_description=long_description,
29+ url=brand.DOCS_URL,
30+ project_urls={
31+ "Code": brand.GIT_URL,
32+ "Issue tracker": brand.ISSUE_URL
33+ },
2934 classifiers=[
3035 "Development Status :: 4 - Beta",
3136 "Programming Language :: Python",
@@ -37,7 +42,6 @@ setup(
3742 keywords='metasearch searchengine search web http',
3843 author='Adam Tauber',
3944 author_email='asciimoo@gmail.com',
40− url=brand.GIT_URL,
4145 license='GNU Affero General Public License',
4246 packages=find_packages(exclude=["tests*"]),
4347 zip_safe=False,