[Python-modules-commits] [jupyter-sphinx-theme] 01/03: Import jupyter-sphinx-theme_0.0.6+ds.orig.tar.xz

Jerome Benoit calculus-guest at moszumanska.debian.org
Thu Nov 10 05:02:30 UTC 2016


This is an automated email from the git hooks/post-receive script.

calculus-guest pushed a commit to branch master
in repository jupyter-sphinx-theme.

commit 99ee7b7459c24e81eec03db342cabc963a85200a
Author: Jerome Benoit <calculus at rezozer.net>
Date:   Thu Nov 10 03:23:03 2016 +0000

    Import jupyter-sphinx-theme_0.0.6+ds.orig.tar.xz
---
 BOOTSTRAP_THEME_LICENSE.txt                        |   19 +
 MANIFEST.in                                        |   15 +
 PKG-INFO                                           |   41 +
 README.md                                          |   22 +
 jupyter_sphinx_theme/__init__.py                   |   48 +
 jupyter_sphinx_theme/jupyter/globaltoc.html        |   10 +
 jupyter_sphinx_theme/jupyter/layout.html           |  151 +
 jupyter_sphinx_theme/jupyter/localtoc.html         |    1 +
 jupyter_sphinx_theme/jupyter/navbar-2.html         |   51 +
 jupyter_sphinx_theme/jupyter/navbar.html           |   45 +
 jupyter_sphinx_theme/jupyter/navbarsearchbox.html  |    9 +
 jupyter_sphinx_theme/jupyter/navbartoc.html        |   10 +
 jupyter_sphinx_theme/jupyter/relations.html        |   19 +
 jupyter_sphinx_theme/jupyter/search.html           |   71 +
 jupyter_sphinx_theme/jupyter/searchbox.html        |    9 +
 jupyter_sphinx_theme/jupyter/searchresults.html    |   38 +
 jupyter_sphinx_theme/jupyter/sidebartoc.html       |    1 +
 jupyter_sphinx_theme/jupyter/sourcelink.html       |    6 +
 .../bootstrap-2.3.2/css/bootstrap-responsive.css   | 1109 ++++
 .../css/bootstrap-responsive.min.css               |    9 +
 .../static/bootstrap-2.3.2/css/bootstrap.css       | 6167 ++++++++++++++++++
 .../static/bootstrap-2.3.2/css/bootstrap.min.css   |    9 +
 .../img/glyphicons-halflings-white.png             |  Bin 0 -> 8777 bytes
 .../bootstrap-2.3.2/img/glyphicons-halflings.png   |  Bin 0 -> 12799 bytes
 .../jupyter/static/bootstrap-2.3.2/js/bootstrap.js | 2287 +++++++
 .../static/bootstrap-2.3.2/js/bootstrap.min.js     |    6 +
 .../static/bootstrap-3.3.4/css/bootstrap-theme.css |  476 ++
 .../bootstrap-3.3.4/css/bootstrap-theme.css.map    |    1 +
 .../bootstrap-3.3.4/css/bootstrap-theme.min.css    |    5 +
 .../static/bootstrap-3.3.4/css/bootstrap.css       | 6584 ++++++++++++++++++++
 .../static/bootstrap-3.3.4/css/bootstrap.css.map   |    1 +
 .../static/bootstrap-3.3.4/css/bootstrap.min.css   |    5 +
 .../fonts/glyphicons-halflings-regular.eot         |  Bin 0 -> 20127 bytes
 .../fonts/glyphicons-halflings-regular.svg         |  288 +
 .../fonts/glyphicons-halflings-regular.ttf         |  Bin 0 -> 45404 bytes
 .../fonts/glyphicons-halflings-regular.woff        |  Bin 0 -> 23424 bytes
 .../fonts/glyphicons-halflings-regular.woff2       |  Bin 0 -> 18028 bytes
 .../jupyter/static/bootstrap-3.3.4/js/bootstrap.js | 2317 +++++++
 .../static/bootstrap-3.3.4/js/bootstrap.min.js     |    7 +
 .../jupyter/static/bootstrap-3.3.4/js/npm.js       |   13 +
 .../jupyter/static/bootstrap-sphinx.css_t          |  268 +
 .../jupyter/static/bootstrap-sphinx.js_t           |  175 +
 .../bootswatch-2.3.2/amelia/bootstrap.min.css      |    9 +
 .../bootswatch-2.3.2/cerulean/bootstrap.min.css    |    9 +
 .../bootswatch-2.3.2/cosmo/bootstrap.min.css       |    9 +
 .../bootswatch-2.3.2/cyborg/bootstrap.min.css      |    9 +
 .../bootswatch-2.3.2/flatly/bootstrap.min.css      |    9 +
 .../img/glyphicons-halflings-white.png             |  Bin 0 -> 8777 bytes
 .../bootswatch-2.3.2/img/glyphicons-halflings.png  |  Bin 0 -> 12799 bytes
 .../bootswatch-2.3.2/journal/bootstrap.min.css     |    9 +
 .../bootswatch-2.3.2/readable/bootstrap.min.css    |    9 +
 .../bootswatch-2.3.2/simplex/bootstrap.min.css     |    9 +
 .../bootswatch-2.3.2/slate/bootstrap.min.css       |    9 +
 .../bootswatch-2.3.2/spacelab/bootstrap.min.css    |    9 +
 .../bootswatch-2.3.2/spruce/bootstrap.min.css      |    9 +
 .../bootswatch-2.3.2/superhero/bootstrap.min.css   |    9 +
 .../bootswatch-2.3.2/united/bootstrap.min.css      |    9 +
 .../bootswatch-3.3.4/cerulean/bootstrap.min.css    |    7 +
 .../bootswatch-3.3.4/cosmo/bootstrap.min.css       |    7 +
 .../bootswatch-3.3.4/custom/bootstrap.min.css      |    7 +
 .../bootswatch-3.3.4/cyborg/bootstrap.min.css      |    7 +
 .../bootswatch-3.3.4/darkly/bootstrap.min.css      |    7 +
 .../bootswatch-3.3.4/flatly/bootstrap.min.css      |    7 +
 .../fonts/glyphicons-halflings-regular.eot         |  Bin 0 -> 20127 bytes
 .../fonts/glyphicons-halflings-regular.svg         |  288 +
 .../fonts/glyphicons-halflings-regular.ttf         |  Bin 0 -> 45404 bytes
 .../fonts/glyphicons-halflings-regular.woff        |  Bin 0 -> 23424 bytes
 .../fonts/glyphicons-halflings-regular.woff2       |  Bin 0 -> 18028 bytes
 .../bootswatch-3.3.4/journal/bootstrap.min.css     |    7 +
 .../bootswatch-3.3.4/lumen/bootstrap.min.css       |    7 +
 .../bootswatch-3.3.4/paper/bootstrap.min.css       |    7 +
 .../bootswatch-3.3.4/readable/bootstrap.min.css    |    7 +
 .../bootswatch-3.3.4/sandstone/bootstrap.min.css   |    7 +
 .../bootswatch-3.3.4/simplex/bootstrap.min.css     |    7 +
 .../bootswatch-3.3.4/slate/bootstrap.min.css       |    7 +
 .../bootswatch-3.3.4/spacelab/bootstrap.min.css    |    7 +
 .../bootswatch-3.3.4/superhero/bootstrap.min.css   |    7 +
 .../bootswatch-3.3.4/united/bootstrap.min.css      |    7 +
 .../static/bootswatch-3.3.4/yeti/bootstrap.min.css |    7 +
 .../jupyter/static/js/jquery-1.11.0.min.js         |    4 +
 .../jupyter/static/js/jquery-fix.js                |    2 +
 jupyter_sphinx_theme/jupyter/theme.conf            |   64 +
 requirements.txt                                   |    3 +
 setup.py                                           |   68 +
 84 files changed, 20958 insertions(+)

diff --git a/BOOTSTRAP_THEME_LICENSE.txt b/BOOTSTRAP_THEME_LICENSE.txt
new file mode 100644
index 0000000..99afec3
--- /dev/null
+++ b/BOOTSTRAP_THEME_LICENSE.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2011-2015 Ryan Roemer
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..e2fa061
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,15 @@
+# Top level.
+include *.txt
+include *.rst
+include *.md
+
+# Non-python files.
+recursive-include jupyter_sphinx_theme *
+recursive-exclude node_modules *
+
+# Extraneous files.
+global-exclude .DS_Store
+global-exclude *.pyc
+exclude node_modules
+exclude demo
+exclude fabfile.py
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..e504ad8
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,41 @@
+Metadata-Version: 1.1
+Name: jupyter-sphinx-theme
+Version: 0.0.6
+Summary: Jupyter Sphinx Theme.
+Home-page: http://github.com/jupyter/sphinx-theme
+Author: Ryan Roemer, Project Jupyter, and contributors
+Author-email: jupyter at googlegroups.com
+License: UNKNOWN
+Description: # jupyter-sphinx-theme
+        A Jupyter [Sphinx](http://www.sphinx-doc.org/en/stable/) theme for narrative
+        documentation.
+        
+        ## Installation
+        Install the package using PIP:
+        
+        ```bash
+        pip install jupyter_sphinx_theme
+        ```
+        
+        Edit the "conf.py" configuration file to point to the jupyter theme:
+        
+        ```python
+        # At the top.
+        from jupyter_sphinx_theme import *
+        init_theme()
+        
+        # ...
+        
+        # Comment out the `html_theme =` line
+        ```
+        
+Platform: UNKNOWN
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: Environment :: Web Environment
+Classifier: Intended Audience :: Developers
+Classifier: Intended Audience :: System Administrators
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Operating System :: OS Independent
+Classifier: Programming Language :: Python
+Classifier: Topic :: Internet
+Classifier: Topic :: Software Development :: Documentation
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..f7dedde
--- /dev/null
+++ b/README.md
@@ -0,0 +1,22 @@
+# jupyter-sphinx-theme
+A Jupyter [Sphinx](http://www.sphinx-doc.org/en/stable/) theme for narrative
+documentation.
+
+## Installation
+Install the package using PIP:
+
+```bash
+pip install jupyter_sphinx_theme
+```
+
+Edit the "conf.py" configuration file to point to the jupyter theme:
+
+```python
+# At the top.
+from jupyter_sphinx_theme import *
+init_theme()
+
+# ...
+
+# Comment out the `html_theme =` line
+```
diff --git a/jupyter_sphinx_theme/__init__.py b/jupyter_sphinx_theme/__init__.py
new file mode 100644
index 0000000..76cc5f6
--- /dev/null
+++ b/jupyter_sphinx_theme/__init__.py
@@ -0,0 +1,48 @@
+"""Jupyter sphinx theme."""
+import os
+import subprocess
+import sys
+
+on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+
+def get_html_theme_path():
+    """Return list of HTML theme paths."""
+    cur_dir = os.path.abspath(os.path.dirname(__file__))
+    return [cur_dir]
+
+def bash(fileName):
+    """Runs a bash script in the local directory"""
+    sys.stdout.flush()
+    subprocess.call("bash {}".format(fileName), shell=True)
+
+VERSION = (0, 0, 6)
+__version__ = ".".join(str(v) for v in VERSION)
+__version_full__ = __version__
+theme_version = __version__
+
+# The suffix(es) of source filenames.
+# You can specify multiple suffix as a list of string:
+source_suffix = ['.rst', '.ipynb']
+
+# Conf.py import settings
+source_parsers = {}
+def init_theme():
+    from recommonmark.parser import CommonMarkParser
+    source_parsers['.md'] = CommonMarkParser
+    source_suffix.append('.md')
+
+html_theme = 'jupyter'
+html_theme_path = get_html_theme_path()
+
+extensions = [
+    'sphinx.ext.autodoc',
+    'sphinx.ext.intersphinx',
+    'sphinx.ext.mathjax',
+    'nbsphinx'
+]
+
+html_sidebars = {
+    '**': [
+        'sidebartoc.html'
+    ]
+}
diff --git a/jupyter_sphinx_theme/jupyter/globaltoc.html b/jupyter_sphinx_theme/jupyter/globaltoc.html
new file mode 100644
index 0000000..d5df46c
--- /dev/null
+++ b/jupyter_sphinx_theme/jupyter/globaltoc.html
@@ -0,0 +1,10 @@
+<li class="dropdown globaltoc-container">
+  <a role="button"
+     id="dLabelGlobalToc"
+     data-toggle="dropdown"
+     data-target="#"
+     href="{{ pathto(master_doc) }}">{{ theme_navbar_site_name }} <b class="caret"></b></a>
+  <ul class="dropdown-menu globaltoc"
+      role="menu"
+      aria-labelledby="dLabelGlobalToc">{{ toctree(maxdepth=theme_globaltoc_depth|toint, collapse=False, includehidden=theme_globaltoc_includehidden|tobool) }}</ul>
+</li>
diff --git a/jupyter_sphinx_theme/jupyter/layout.html b/jupyter_sphinx_theme/jupyter/layout.html
new file mode 100644
index 0000000..7035a7f
--- /dev/null
+++ b/jupyter_sphinx_theme/jupyter/layout.html
@@ -0,0 +1,151 @@
+{% extends "basic/layout.html" %}
+
+{% set theme_css_files = [] %}
+{% if theme_bootstrap_version == "3" %}
+  {% set bootstrap_version, bootstrap_additional_css, navbar_version = "3.3.4", "theme", "" %}
+  {% set bs_span_prefix = "col-md-" %}
+{% else %}
+  {% set bootstrap_version, bootstrap_additional_css, navbar_version = "2.3.2", "responsive", "-2" %}
+  {% set bs_span_prefix = "span" %}
+{% endif %}
+
+{% if theme_bootswatch_theme and theme_bootswatch_theme != "\"\"" %}
+  {# BS2 needs "bootstrap-responsive.css". BS3 doesn't. #}
+  {% if theme_bootstrap_version == "3" %}
+    {% set theme_css_files = theme_css_files + [
+        '_static/bootswatch-' + bootstrap_version + '/' + theme_bootswatch_theme + '/bootstrap.min.css',
+        '_static/bootstrap-sphinx.css'
+      ]
+    %}
+  {% else %}
+    {% set theme_css_files = theme_css_files + [
+        '_static/bootswatch-' + bootstrap_version + '/' + theme_bootswatch_theme + '/bootstrap.min.css',
+        '_static/bootstrap-' + bootstrap_version + '/css/bootstrap-' + bootstrap_additional_css + '.min.css',
+        '_static/bootstrap-sphinx.css'
+      ]
+    %}
+  {% endif %}
+{% else %}
+  {% set theme_css_files = theme_css_files + [
+      '_static/bootstrap-' + bootstrap_version + '/css/bootstrap.min.css',
+      '_static/bootstrap-' + bootstrap_version + '/css/bootstrap-' + bootstrap_additional_css + '.min.css',
+      '_static/bootstrap-sphinx.css'
+    ]
+  %}
+{% endif %}
+
+{% if not bootswatch_css_custom %}
+  {% set bootswatch_css_custom = [] %}
+{% endif %}
+
+{% if not theme_custom_css %}
+  {% set theme_custom_css = [] %}
+{% endif %}
+
+{% set css_files = css_files + theme_css_files + bootswatch_css_custom + theme_custom_css %}
+
+{% if not theme_custom_js %}
+  {% set theme_custom_js = [] %}
+{% endif %}
+
+{% set script_files = script_files + [
+    '_static/js/jquery-1.11.0.min.js',
+    '_static/js/jquery-fix.js',
+    '_static/bootstrap-' + bootstrap_version + '/js/bootstrap.min.js',
+    '_static/bootstrap-sphinx.js'
+  ] + theme_custom_js
+%}
+
+{%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and sidebars %}
+
+{%- set bs_content_width = render_sidebar and "9" or "12"%}
+
+{%- block doctype -%}
+<!DOCTYPE html>
+{%- endblock %}
+
+{# Sidebar: Rework into our Bootstrap nav section. #}
+{% macro navBar() %}
+{% include "navbar" + navbar_version + ".html" %}
+{% endmacro %}
+
+{% if theme_bootstrap_version == "3" %}
+  {%- macro bsidebar() %}
+      {%- if render_sidebar %}
+      <div class="{{ bs_span_prefix }}3">
+        <div id="sidebar" class="bs-sidenav" role="complementary">
+          {%- for sidebartemplate in sidebars %}
+            {%- include sidebartemplate %}
+          {%- endfor %}
+        </div>
+      </div>
+      {%- endif %}
+  {%- endmacro %}
+{% else %}
+  {%- macro bsidebar() %}
+      {%- if render_sidebar %}
+      <div class="{{ bs_span_prefix }}3">
+        <div id="sidebar" class="bs-sidenav well" data-spy="affix">
+          {%- for sidebartemplate in sidebars %}
+            {%- include sidebartemplate %}
+          {%- endfor %}
+        </div>
+      </div>
+      {%- endif %}
+  {%- endmacro %}
+{% endif %}
+
+{%- block extrahead %}
+<meta charset='utf-8'>
+<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
+<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
+<meta name="apple-mobile-web-app-capable" content="yes">
+{% endblock %}
+
+{# Silence the sidebar's, relbar's #}
+{% block header %}{% endblock %}
+{% block relbar1 %}{% endblock %}
+{% block relbar2 %}{% endblock %}
+{% block sidebarsourcelink %}{% endblock %}
+
+{%- block content %}
+{{ navBar() }}
+<div class="container">
+  <div class="row">
+    {%- block sidebar1 %}{{ bsidebar() }}{% endblock %}
+    <div class="{{ bs_span_prefix }}{{ bs_content_width }} content">
+      {% block body %}{% endblock %}
+    </div>
+    {% block sidebar2 %} {# possible location for sidebar #} {% endblock %}
+  </div>
+</div>
+{%- endblock %}
+
+{%- block footer %}
+<footer class="footer">
+  <div class="container">
+    <p class="pull-right">
+      <a href="#">Back to top</a>
+      {% if theme_source_link_position == "footer" %}
+        <br/>
+        {% include "sourcelink.html" %}
+      {% endif %}
+    </p>
+    <p>
+    {%- if show_copyright %}
+      {%- if hasdoc('copyright') %}
+        {% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}<br/>
+      {%- else %}
+        {% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %}<br/>
+      {%- endif %}
+    {%- endif %}
+    {%- if last_updated %}
+      {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}<br/>
+    {%- endif %}
+    {%- if show_sphinx %}
+      {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}<br/>
+    {%- endif %}
+    </p>
+  </div>
+</footer>
+{%- endblock %}
diff --git a/jupyter_sphinx_theme/jupyter/localtoc.html b/jupyter_sphinx_theme/jupyter/localtoc.html
new file mode 100644
index 0000000..6e6c03b
--- /dev/null
+++ b/jupyter_sphinx_theme/jupyter/localtoc.html
@@ -0,0 +1 @@
+{{ toc }}
diff --git a/jupyter_sphinx_theme/jupyter/navbar-2.html b/jupyter_sphinx_theme/jupyter/navbar-2.html
new file mode 100644
index 0000000..5f7116f
--- /dev/null
+++ b/jupyter_sphinx_theme/jupyter/navbar-2.html
@@ -0,0 +1,51 @@
+  <div id="navbar" class="{{ theme_navbar_class }} {% if theme_navbar_fixed_top|tobool -%} navbar-fixed-top{%- endif -%}">
+    <div class="navbar-inner">
+      <div class="container">
+        <!-- .btn-navbar is used as the toggle for collapsed navbar content -->
+        <button class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </button>
+
+        <a class="brand" href="{{ pathto(master_doc) }}">
+          {%- block sidebarlogo %}
+            {%- if logo %}<img src="{{ pathto('_static/' + logo, 1) }}">{%- endif %}
+          {%- endblock %}
+          {% if theme_navbar_title -%}{{ theme_navbar_title|e }}{%- else -%}{{ project|e }}{%- endif -%}
+        </a>
+        <span class="navbar-text pull-left"><b>{{ version|e }}</b></span>
+
+        <div class="nav-collapse">
+          <ul class="nav">
+            <li class="divider-vertical"></li>
+            {% if theme_navbar_links %}
+              {%- for link in theme_navbar_links %}
+                <li><a href="{{ pathto(*link[1:]) }}">{{ link[0] }}</a></li>
+              {%- endfor %}
+            {% endif %}
+            {% block navbartoc %}
+              {% include "globaltoc.html" %}
+              {% if theme_navbar_pagenav %}
+                {% include "navbartoc.html" %}
+              {% endif %}
+            {% endblock %}
+            {% if theme_navbar_sidebarrel %}
+              {% block sidebarrel %}
+                {% include "relations.html" %}
+              {% endblock %}
+            {% endif %}
+            {% block navbarextra %}
+            {% endblock %}
+            {% if theme_source_link_position == "nav" %}
+              <li>{% include "sourcelink.html" %}</li>
+            {% endif %}
+          </ul>
+
+          {% block navbarsearch %}
+            {% include "navbarsearchbox.html" %}
+          {% endblock %}
+        </div>
+      </div>
+    </div>
+  </div>
diff --git a/jupyter_sphinx_theme/jupyter/navbar.html b/jupyter_sphinx_theme/jupyter/navbar.html
new file mode 100644
index 0000000..96bab6e
--- /dev/null
+++ b/jupyter_sphinx_theme/jupyter/navbar.html
@@ -0,0 +1,45 @@
+<div id="navbar" class="{{ theme_navbar_class }} navbar-default {% if theme_navbar_fixed_top|tobool -%} navbar-fixed-top{%- endif -%}">
+  <div class="container">
+    <div class="navbar-header">
+      <!-- .btn-navbar is used as the toggle for collapsed navbar content -->
+      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <a class="navbar-brand" href="{{ pathto(master_doc) }}">
+        {%- block sidebarlogo %}
+          {%- if logo %}<img src="{{ pathto('_static/' + logo, 1) }}">{%- endif %}
+        {%- endblock %}
+        {% if theme_navbar_title -%}{{ theme_navbar_title|e }}{%- else -%}{{ project|e }}{%- endif -%}
+      </a>
+      <span class="navbar-text navbar-version pull-left"><b>{{ version|e }}</b></span>
+    </div>
+
+      <div class="collapse navbar-collapse nav-collapse">
+        <ul class="nav navbar-nav">
+          {% if theme_navbar_links %}
+            {%- for link in theme_navbar_links %}
+              <li><a href="{{ pathto(*link[1:]) }}">{{ link[0] }}</a></li>
+            {%- endfor %}
+          {% endif %}
+          {% block navbarextra %}
+          {% endblock %}
+          {% if theme_source_link_position == "nav" %}
+            <li class="hidden-sm">{% include "sourcelink.html" %}</li>
+          {% endif %}
+        </ul>
+
+        {% block navbarsearch %}
+          {% include "navbarsearchbox.html" %}
+        {% endblock %}
+        {% if theme_navbar_sidebarrel %}
+          {% block sidebarrel %}
+            <ul class='nav navbar-nav navbar-right'>
+                {% include "relations.html" %}
+            </ul>
+          {% endblock %}
+        {% endif %}
+      </div>
+  </div>
+</div>
diff --git a/jupyter_sphinx_theme/jupyter/navbarsearchbox.html b/jupyter_sphinx_theme/jupyter/navbarsearchbox.html
new file mode 100644
index 0000000..82e9338
--- /dev/null
+++ b/jupyter_sphinx_theme/jupyter/navbarsearchbox.html
@@ -0,0 +1,9 @@
+{%- if pagename != "search" %}
+<form class="navbar-form navbar-right" action="{{ pathto('search') }}" method="get">
+ <div class="form-group">
+  <input type="text" name="q" class="form-control" placeholder="Search" />
+ </div>
+  <input type="hidden" name="check_keywords" value="yes" />
+  <input type="hidden" name="area" value="default" />
+</form>
+{%- endif %}
diff --git a/jupyter_sphinx_theme/jupyter/navbartoc.html b/jupyter_sphinx_theme/jupyter/navbartoc.html
new file mode 100644
index 0000000..8def043
--- /dev/null
+++ b/jupyter_sphinx_theme/jupyter/navbartoc.html
@@ -0,0 +1,10 @@
+<li class="dropdown">
+  <a role="button"
+     id="dLabelLocalToc"
+     data-toggle="dropdown"
+     data-target="#"
+     href="#">{{ _(theme_navbar_pagenav_name) }} <b class="caret"></b></a>
+  <ul class="dropdown-menu localtoc"
+      role="menu"
+      aria-labelledby="dLabelLocalToc">{{ toc }}</ul>
+</li>
diff --git a/jupyter_sphinx_theme/jupyter/relations.html b/jupyter_sphinx_theme/jupyter/relations.html
new file mode 100644
index 0000000..0db3df0
--- /dev/null
+++ b/jupyter_sphinx_theme/jupyter/relations.html
@@ -0,0 +1,19 @@
+{# Switch to icon instead of text in `sm` view size for BS3 only. #}
+{%- if prev %}
+  <li>
+    <a href="{{ prev.link|e }}" title="{{ _('Previous Chapter: ') + prev.title|striptags }}">
+      {%- if theme_bootstrap_version == "2" -%}<span class="icon-chevron-left visible-tablet"></span>{%- endif -%}
+      {%- if theme_bootstrap_version == "3" -%}<span class="glyphicon glyphicon-chevron-left visible-sm"></span>{%- endif -%}
+      <span class="hidden-sm hidden-tablet">{{ "«"|safe }} {{ prev.title|striptags|truncate(length=26, killwords=True) }}</span>
+    </a>
+  </li>
+{%- endif %}
+{%- if next %}
+  <li>
+    <a href="{{ next.link|e }}" title="{{ _('Next Chapter: ') + next.title|striptags }}">
+      {%- if theme_bootstrap_version == "2" -%}<span class="icon-chevron-right visible-tablet"></span>{%- endif -%}
+      {%- if theme_bootstrap_version == "3" -%}<span class="glyphicon glyphicon-chevron-right visible-sm"></span>{%- endif -%}
+      <span class="hidden-sm hidden-tablet">{{ next.title|striptags|truncate(length=26, killwords=True) }} {{ "»"|safe }}</span>
+    </a>
+  </li>
+{%- endif %}
diff --git a/jupyter_sphinx_theme/jupyter/search.html b/jupyter_sphinx_theme/jupyter/search.html
new file mode 100644
index 0000000..0332637
--- /dev/null
+++ b/jupyter_sphinx_theme/jupyter/search.html
@@ -0,0 +1,71 @@
+{#
+    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 extrahead %}
+  <script type="text/javascript">
+    jQuery(function() { Search.loadIndex("{{ pathto('searchindex.js', 1) }}"); });
+  </script>
+  {# this is used when loading the search index using $.ajax fails,
+     such as on Chrome for documents on localhost #}
+  <script type="text/javascript" id="searchindexloader"></script>
+  {{ super() }}
+{% endblock %}
+{% block body %}
+  <h1 id="search-documentation">{{ _('Search') }}</h1>
+  <div id="fallback" class="admonition warning">
+  <script type="text/javascript">$('#fallback').hide();</script>
+  <p>
+    {% trans %}Please activate JavaScript to enable the search
+    functionality.{% endtrans %}
+  </p>
+  </div>
+  <p>
+    {% trans %}From here you can search these documents. Enter your search
+    words into the box below and click "search". Note that the search
+    function will automatically search for all of the words. Pages
+    containing fewer words won't appear in the result list.{% endtrans %}
+  </p>
+
+  {% if theme_bootstrap_version == "3" %}
+  <form class="form-inline" action="" method="get">
+    <div class="form-group">
+      <input type="text" class="form-control" name="q" value="" />
+    </div>
+    <input type="submit" class="btn btn-default" value="{{ _('search') }}" />
+    <span id="search-progress" style="padding-left: 10px"></span>
+  </form>  
+  {% else %}
+  <form class="form-search">
+    <input type="text" class="input-medium search-query" name="q" value="" />
+    <input type="submit" class="btn btn-default" value="{{ _('search') }}" />
+    <span id="search-progress" style="padding-left: 10px"></span>
+  </form>
+  {% endif %}
+  
+  {% if search_performed %}
+    <h2>{{ _('Search Results') }}</h2>
+    {% if not search_results %}
+      <p>{{ _('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.') }}</p>
+    {% endif %}
+  {% endif %}
+  <div id="search-results">
+  {% if search_results %}
+    <ul>
+    {% for href, caption, context in search_results %}
+      <li><a href="{{ pathto(item.href) }}">{{ caption }}</a>
+        <div class="context">{{ context|e }}</div>
+      </li>
+    {% endfor %}
+    </ul>
+  {% endif %}
+  </div>
+{% endblock %}
diff --git a/jupyter_sphinx_theme/jupyter/searchbox.html b/jupyter_sphinx_theme/jupyter/searchbox.html
new file mode 100644
index 0000000..53755f3
--- /dev/null
+++ b/jupyter_sphinx_theme/jupyter/searchbox.html
@@ -0,0 +1,9 @@
+{%- if pagename != "search" %}
+<form action="{{ pathto('search') }}" method="get">
+ <div class="form-group">
+  <input type="text" name="q" class="form-control" placeholder="Search" />
+ </div>
+  <input type="hidden" name="check_keywords" value="yes" />
+  <input type="hidden" name="area" value="default" />
+</form>
+{%- endif %}
diff --git a/jupyter_sphinx_theme/jupyter/searchresults.html b/jupyter_sphinx_theme/jupyter/searchresults.html
new file mode 100644
index 0000000..cfb0aa4
--- /dev/null
+++ b/jupyter_sphinx_theme/jupyter/searchresults.html
@@ -0,0 +1,38 @@
+{#
+    basic/searchresults.html
+    ~~~~~~~~~~~~~~~~~~~~~~~~
+
+    Template for the body of the search results page.
+
+    :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
+    :license: BSD, see LICENSE for details.
+#}
+<h1 id="search-documentation">Search</h1>
+<p>
+  From here you can search these documents. Enter your search
+  words into the box below and click "search".
+</p>
+
+<form class="form-search" action="" method="get">
+  <input type="text" name="q" class="input-medium search-query">
+  <button type="submit" class="btn">{{ _('search') }}</button>
+  <span id="search-progress" style="padding-left: 10px"></span>
+</form>
+
+{%- if search_performed %}
+  <h2>Search Results</h2>
+  {%- if not search_results %}
+  <p>Your search did not match any results.</p>
+  {%- endif %}
+{%- endif %}
+<div id="search-results">
+  {%- if search_results %}
+  <ul class="search">
+    {% for href, caption, context in search_results %}
+    <li><a href="{{ docroot }}{{ href }}/?highlight={{ q }}">{{ caption }}</a>
+      <div class="context">{{ context|e }}</div>
+    </li>
+    {% endfor %}
+  </ul>
+  {%- endif %}
+</div>
diff --git a/jupyter_sphinx_theme/jupyter/sidebartoc.html b/jupyter_sphinx_theme/jupyter/sidebartoc.html
new file mode 100644
index 0000000..f9f1fde
--- /dev/null
+++ b/jupyter_sphinx_theme/jupyter/sidebartoc.html
@@ -0,0 +1 @@
+{{ toctree(maxdepth=theme_globaltoc_depth|toint, collapse=False, includehidden=theme_globaltoc_includehidden|tobool) }}
diff --git a/jupyter_sphinx_theme/jupyter/sourcelink.html b/jupyter_sphinx_theme/jupyter/sourcelink.html
new file mode 100644
index 0000000..3cf7335
--- /dev/null
+++ b/jupyter_sphinx_theme/jupyter/sourcelink.html
@@ -0,0 +1,6 @@
+{%- if show_source and has_source and sourcename %}
+<div id="sourcelink">
+  <a href="{{ pathto('_sources/' + sourcename, true)|e }}"
+     rel="nofollow">{{ _('Source') }}</a>
+</div>
+{%- endif %}
diff --git a/jupyter_sphinx_theme/jupyter/static/bootstrap-2.3.2/css/bootstrap-responsive.css b/jupyter_sphinx_theme/jupyter/static/bootstrap-2.3.2/css/bootstrap-responsive.css
new file mode 100644
index 0000000..09e88ce
--- /dev/null
+++ b/jupyter_sphinx_theme/jupyter/static/bootstrap-2.3.2/css/bootstrap-responsive.css
@@ -0,0 +1,1109 @@
+/*!
+ * Bootstrap Responsive v2.3.2
+ *
+ * Copyright 2012 Twitter, Inc
+ * Licensed under the Apache License v2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
+ */
+
+.clearfix {
+  *zoom: 1;
+}
+
+.clearfix:before,
+.clearfix:after {
+  display: table;
+  line-height: 0;
+  content: "";
+}
+
+.clearfix:after {
+  clear: both;
+}
+
+.hide-text {
+  font: 0/0 a;
+  color: transparent;
+  text-shadow: none;
+  background-color: transparent;
+  border: 0;
+}
+
+.input-block-level {
+  display: block;
+  width: 100%;
+  min-height: 30px;
+  -webkit-box-sizing: border-box;
+     -moz-box-sizing: border-box;
+          box-sizing: border-box;
+}
+
+ at -ms-viewport {
+  width: device-width;
+}
+
+.hidden {
+  display: none;
+  visibility: hidden;
+}
+
+.visible-phone {
+  display: none !important;
+}
+
+.visible-tablet {
+  display: none !important;
+}
+
+.hidden-desktop {
+  display: none !important;
+}
+
+.visible-desktop {
+  display: inherit !important;
+}
+
+ at media (min-width: 768px) and (max-width: 979px) {
+  .hidden-desktop {
+    display: inherit !important;
+  }
+  .visible-desktop {
+    display: none !important ;
+  }
+  .visible-tablet {
+    display: inherit !important;
+  }
+  .hidden-tablet {
+    display: none !important;
+  }
+}
+
+ at media (max-width: 767px) {
+  .hidden-desktop {
+    display: inherit !important;
+  }
+  .visible-desktop {
+    display: none !important;
+  }
+  .visible-phone {
+    display: inherit !important;
+  }
+  .hidden-phone {
+    display: none !important;
+  }
+}
+
+.visible-print {
+  display: none !important;
+}
+
+ at media print {
+  .visible-print {
+    display: inherit !important;
+  }
+  .hidden-print {
+    display: none !important;
+  }
+}
+
+ at media (min-width: 1200px) {
+  .row {
+    margin-left: -30px;
+    *zoom: 1;
+  }
+  .row:before,
+  .row:after {
+    display: table;
+    line-height: 0;
+    content: "";
+  }
+  .row:after {
+    clear: both;
+  }
+  [class*="span"] {
+    float: left;
+    min-height: 1px;
+    margin-left: 30px;
+  }
+  .container,
+  .navbar-static-top .container,
+  .navbar-fixed-top .container,
+  .navbar-fixed-bottom .container {
+    width: 1170px;
+  }
+  .span12 {
+    width: 1170px;
+  }
+  .span11 {
+    width: 1070px;
+  }
+  .span10 {
+    width: 970px;
+  }
+  .span9 {
+    width: 870px;
+  }
+  .span8 {
+    width: 770px;
+  }
+  .span7 {
+    width: 670px;
+  }
+  .span6 {
+    width: 570px;
+  }
+  .span5 {
+    width: 470px;
+  }
+  .span4 {
+    width: 370px;
+  }
+  .span3 {
+    width: 270px;
+  }
+  .span2 {
+    width: 170px;
+  }
+  .span1 {
+    width: 70px;
+  }
+  .offset12 {
+    margin-left: 1230px;
+  }
+  .offset11 {
+    margin-left: 1130px;
+  }
+  .offset10 {
+    margin-left: 1030px;
+  }
+  .offset9 {
+    margin-left: 930px;
+  }
+  .offset8 {
+    margin-left: 830px;
+  }
+  .offset7 {
+    margin-left: 730px;
+  }
+  .offset6 {
+    margin-left: 630px;
+  }
+  .offset5 {
+    margin-left: 530px;
+  }
+  .offset4 {
+    margin-left: 430px;
+  }
+  .offset3 {
+    margin-left: 330px;
+  }
+  .offset2 {
+    margin-left: 230px;
+  }
+  .offset1 {
+    margin-left: 130px;
+  }
+  .row-fluid {
+    width: 100%;
+    *zoom: 1;
+  }
+  .row-fluid:before,
+  .row-fluid:after {
+    display: table;
+    line-height: 0;
+    content: "";
+  }
+  .row-fluid:after {
+    clear: both;
+  }
+  .row-fluid [class*="span"] {
+    display: block;
+    float: left;
+    width: 100%;
+    min-height: 30px;
+    margin-left: 2.564102564102564%;
+    *margin-left: 2.5109110747408616%;
+    -webkit-box-sizing: border-box;
... 20557 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/jupyter-sphinx-theme.git



More information about the Python-modules-commits mailing list