PK {QM&@ @ alabaster_jupyterhub/__init__.py"""The JupyterHub Alabaster theme"""
import os
from alabaster_jupyterhub import _version as version
__version__ = version.__version__
with open(os.path.join(os.path.dirname(__file__), "_version.py")) as fp:
exec(fp.read(), None, {})
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 get_html_theme_path():
"""
Utility to return theme location.
Used in Sphinx conf.py to set html_theme_path.
"""
# Theme directory is defined as our parent directory
return os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
def setup(app):
app.add_html_theme('alabaster_jupyterhub', os.path.abspath(os.path.dirname(__file__)))
PK !gNtIP P alabaster_jupyterhub/_version.py__version_info__ = (0, 1, 7)
__version__ = ".".join(map(str, __version_info__))
PK sNT?s ( alabaster_jupyterhub/edit_on_github.html
{% if sourcename is defined and github_user is defined %}
{% set src = sourcename.split('.') %}
PK |{NOx alabaster_jupyterhub/layout.html{%- extends "alabaster/layout.html" %}
{%- block extrahead %}
{{ super() }}
{%- if not favicon %}
{%- endif %}
{% endblock %}
{% block sidebar1 %}
{%- include "rightsidebar.html" %}
{% endblock %}
{# Prev / Next buttons
Alabaster theme does not provide blocks for prev/next at bottom of each page.
This is _in addition_ to the prev/next in the sidebar. The "Prev/Next" text
or symbols are handled by CSS classes in _static/custom.css
#}
{% macro prev_next(prev, next, prev_title='', next_title='') %}
{%- if prev %}
{{ prev_title or prev.title }}
{%- endif %}
{%- if next %}
{{ next_title or next.title }}
{%- endif %}
{% endmacro %}
{% block relbar_top %}