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 vNP P alabaster_jupyterhub/_version.py__version_info__ = (0, 1, 5) __version__ = ".".join(map(str, __version_info__)) 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 %} {% endblock %} {% block relbar_bottom %} {% endblock %} {%- block sidebarlogo %} {%- endblock %} PK N.I I &