diff --git a/docs/_templates/alabaster/__init__.py b/docs/_templates/alabaster/__init__.py new file mode 100644 index 0000000..39f1407 --- /dev/null +++ b/docs/_templates/alabaster/__init__.py @@ -0,0 +1,24 @@ +import os + +from alabaster import _version as version + + +def get_path(): + """ + Shortcut for users whose theme is next to their conf.py. + """ + # Theme directory is defined as our parent directory + return os.path.abspath(os.path.dirname(os.path.dirname(__file__))) + + +def update_context(app, pagename, templatename, context, doctree): + context['alabaster_version'] = version.__version__ + +def setup(app): + # add_html_theme is new in Sphinx 1.6+ + if hasattr(app, 'add_html_theme'): + theme_path = os.path.abspath(os.path.dirname(__file__)) + app.add_html_theme('alabaster', theme_path) + app.connect('html-page-context', update_context) + return {'version': version.__version__, + 'parallel_read_safe': True} diff --git a/docs/_templates/alabaster/_version.py b/docs/_templates/alabaster/_version.py new file mode 100644 index 0000000..9e641f7 --- /dev/null +++ b/docs/_templates/alabaster/_version.py @@ -0,0 +1,2 @@ +__version_info__ = (0, 7, 10) +__version__ = '.'.join(map(str, __version_info__)) diff --git a/docs/_templates/alabaster/about.html b/docs/_templates/alabaster/about.html new file mode 100644 index 0000000..d6884e7 --- /dev/null +++ b/docs/_templates/alabaster/about.html @@ -0,0 +1,57 @@ +{% if theme_logo %} +
+
+
+ {% if theme_logo_name|lower == 'true' %}
+
{{ project }}
+ {% endif %}
+
+
{{ theme_description }}
+{% endif %} + +{% if theme_github_user and theme_github_repo %} +{% if theme_github_button|lower == 'true' %} ++ +
+{% endif %} +{% endif %} + +{% if theme_travis_button|lower != 'false' %} +{% if theme_travis_button|lower == 'true' %} + {% set path = theme_github_user + '/' + theme_github_repo %} +{% else %} + {% set path = theme_travis_button %} +{% endif %} +
+
+
+
+
+
+
+
+
+Consider supporting the authors on Gratipay: + +
+{% endif %} diff --git a/docs/_templates/alabaster/layout.html b/docs/_templates/alabaster/layout.html new file mode 100644 index 0000000..459700f --- /dev/null +++ b/docs/_templates/alabaster/layout.html @@ -0,0 +1,82 @@ +{%- extends "basic/layout.html" %} + +{%- block extrahead %} + {{ super() }} + + {% if theme_touch_icon %} + + {% endif %} + {% if theme_canonical_url %} + + {% endif %} + +{% endblock %} + +{# Disable base theme's top+bottom related navs; we have our own in sidebar #} +{%- block relbar1 %}{% endblock %} +{%- block relbar2 %}{% endblock %} + +{# Nav should appear before content, not after #} +{%- block content %} +{%- if theme_fixed_sidebar|lower == 'true' %} +
+
+ {% endif %}
+
+ {% if theme_analytics_id %}
+
+ {% endif %}
+{%- endblock %}
diff --git a/docs/_templates/alabaster/navigation.html b/docs/_templates/alabaster/navigation.html
new file mode 100644
index 0000000..760dcc9
--- /dev/null
+++ b/docs/_templates/alabaster/navigation.html
@@ -0,0 +1,10 @@
+