diff --git a/doc/_themes/pretix_theme/__init__.py b/doc/_themes/pretix_theme/__init__.py new file mode 100644 index 000000000..4fcc6793c --- /dev/null +++ b/doc/_themes/pretix_theme/__init__.py @@ -0,0 +1,16 @@ +"""pretix sphinx theme. + +Based on sphinx-rtd-theme +Based on https://github.com/ryan-roemer/sphinx-bootstrap-theme. + +""" +import os + +__version__ = '0.1.0' +__version_full__ = __version__ + + +def get_html_theme_path(): + """Return list of HTML theme paths.""" + cur_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) + return cur_dir diff --git a/doc/_themes/pretix_theme/breadcrumbs.html b/doc/_themes/pretix_theme/breadcrumbs.html new file mode 100644 index 000000000..486905c57 --- /dev/null +++ b/doc/_themes/pretix_theme/breadcrumbs.html @@ -0,0 +1,82 @@ +{# Support for Sphinx 1.3+ page_source_suffix, but don't break old builds. #} + +{% if page_source_suffix %} +{% set suffix = page_source_suffix %} +{% else %} +{% set suffix = source_suffix %} +{% endif %} + +{% if meta is defined and meta is not none %} +{% set check_meta = True %} +{% else %} +{% set check_meta = False %} +{% endif %} + +{% if check_meta and 'github_url' in meta %} +{% set display_github = True %} +{% endif %} + +{% if check_meta and 'bitbucket_url' in meta %} +{% set display_bitbucket = True %} +{% endif %} + +{% if check_meta and 'gitlab_url' in meta %} +{% set display_gitlab = True %} +{% endif %} + +
diff --git a/doc/_themes/pretix_theme/footer.html b/doc/_themes/pretix_theme/footer.html new file mode 100644 index 000000000..86fbd280a --- /dev/null +++ b/doc/_themes/pretix_theme/footer.html @@ -0,0 +1,52 @@ + + diff --git a/doc/_themes/pretix_theme/layout.html b/doc/_themes/pretix_theme/layout.html new file mode 100644 index 000000000..4279e4b66 --- /dev/null +++ b/doc/_themes/pretix_theme/layout.html @@ -0,0 +1,213 @@ +{# TEMPLATE VAR SETTINGS #} +{%- set url_root = pathto('', 1) %} +{%- if url_root == '#' %}{% set url_root = '' %}{% endif %} +{%- if not embedded and docstitle %} + {%- set titlesuffix = " — "|safe + docstitle|e %} +{%- else %} + {%- set titlesuffix = "" %} +{%- endif %} + + + + + + + {{ metatags }} + + {% block htmltitle %} +asdf asdf asdf asdf 22
+{%- endblock %} + + + diff --git a/doc/_themes/pretix_theme/search.html b/doc/_themes/pretix_theme/search.html new file mode 100644 index 000000000..e3aa9b5c6 --- /dev/null +++ b/doc/_themes/pretix_theme/search.html @@ -0,0 +1,50 @@ +{# + basic/search.html + ~~~~~~~~~~~~~~~~~ + + Template for the search page. + + :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. + :license: BSD, see LICENSE for details. +#} +{%- extends "layout.html" %} +{% set title = _('Search') %} +{% set script_files = script_files + ['_static/searchtools.js'] %} +{% block footer %} + + {# this is used when loading the search index using $.ajax fails, + such as on Chrome for documents on localhost #} + + {{ super() }} +{% endblock %} +{% block body %} + + + {% if search_performed %} +{{ _('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.') }}
+ {% endif %} + {% endif %} +{{ context|e }}
+