initial import draft
authorDavid Douard <david.douard@logilab.fr>
Wed, 02 May 2018 15:54:49 +0200
changeset 0 f5d87f1652dd
child 1 5f4c560711a5
initial import
.hgignore
LICENSE
MANIFEST.in
README.rst
logilab_sphinx_themes/__init__.py
logilab_sphinx_themes/layout.html
logilab_sphinx_themes/logilab_logo.pdf
logilab_sphinx_themes/static/contents.png
logilab_sphinx_themes/static/lglb-sphinx-doc.css
logilab_sphinx_themes/static/logilab_logo.png
logilab_sphinx_themes/static/navigation.png
logilab_sphinx_themes/theme.conf
setup.cfg
setup.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Wed May 02 15:54:49 2018 +0200
@@ -0,0 +1,5 @@
+syntax: glob
+logilab_sphinx_themes.egg-info
+*.org
+*#
+*~
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LICENSE	Wed May 02 15:54:49 2018 +0200
@@ -0,0 +1,31 @@
+Copyright (c) 2018 Logilab.
+
+Some rights reserved.
+
+Redistribution and use in source and binary forms of the theme, with or
+without modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+  notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above
+  copyright notice, this list of conditions and the following
+  disclaimer in the documentation and/or other materials provided
+  with the distribution.
+
+* The names of the contributors may not be used to endorse or
+  promote products derived from this software without specific
+  prior written permission.
+
+THIS THEME IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS THEME, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MANIFEST.in	Wed May 02 15:54:49 2018 +0200
@@ -0,0 +1,3 @@
+include LICENSE
+include README.rst
+recursive-include logilab_sphinx_themes *.*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/README.rst	Wed May 02 15:54:49 2018 +0200
@@ -0,0 +1,16 @@
+=====================================
+ Sphinx Themes for Logilab Documents
+=====================================
+
+Logilab Sphinx Themes are a set of visually (c)lean, responsive, configurable
+theme for the Sphinx_ documentation system. It is Python 2+3 compatible.
+
+For more documentation, please see https://www.logilab.org/project/logilab-sphinx-themes
+
+
+You can install the development version via::
+
+  pip install -e hg+https://hg.logilab.org/review/logilab-sphinx-themes#egg=logilab-sphinx-themes
+
+
+.. _Sphinx: http://www.sphinx-doc.org
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/logilab_sphinx_themes/__init__.py	Wed May 02 15:54:49 2018 +0200
@@ -0,0 +1,5 @@
+# ''
+from os import path
+
+def setup(app):
+    app.add_html_theme('logilab', path.abspath(path.dirname(__file__)))
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/logilab_sphinx_themes/layout.html	Wed May 02 15:54:49 2018 +0200
@@ -0,0 +1,13 @@
+{% extends "basic/layout.html" %}
+
+{% block header %}
+<div class="header">
+ <a href="http://www.logilab.fr/">
+  <img alt="Logilab logo" src="_static/logilab_logo.png"/>
+ </a>
+</div>
+{% endblock %}
+
+{# puts the sidebar into "sidebar1" block i.e. before the document body #}
+{% block sidebar1 %}{{ sidebar() }}{% endblock %}
+{% block sidebar2 %}{% endblock %}
Binary file logilab_sphinx_themes/logilab_logo.pdf has changed
Binary file logilab_sphinx_themes/static/contents.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/logilab_sphinx_themes/static/lglb-sphinx-doc.css	Wed May 02 15:54:49 2018 +0200
@@ -0,0 +1,372 @@
+/**
+ * Sphinx stylesheet -- Logilab theme
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ *
+ * Inspired from sphinxdoc original theme.
+ */
+
+@import url("basic.css");
+
+/* -- page layout ----------------------------------------------------------- */
+
+body {
+    font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva',
+                 'Verdana', sans-serif;
+    font-size: 14px;
+    letter-spacing: -0.01em;
+    line-height: 150%;
+    text-align: center;
+    background-color: #D0D0D0;
+    color: #000000;
+    padding: 0;
+    border: 1px solid #CCBCA7;
+    min-width: 640px;
+    margin: 0px 30px 0px 30px;
+}
+
+div.document {
+    background-color: #FFFFFF;
+    text-align: left;
+    background-image: url(contents.png);
+    background-repeat: repeat-x;
+}
+
+div.bodywrapper {
+    margin: 0 0 0 230px;
+    border-left: 1px solid #CCBCA7;
+}
+
+div.body {
+    margin: 0;
+    padding: 0.5em 20px 20px 20px;
+}
+
+div.header { 
+    margin: 0;
+    padding: 5px 5px 25px 5px;
+    background-color: #FFFFFF;
+    text-align: left;
+    line-height: 80%;
+ }
+
+div.related {
+    font-size: 1em;
+}
+
+div.related ul {
+    background-image: url(navigation.png);
+    height: 2em;
+    border-top: 1px solid #CCBCA7;
+    border-bottom: 1px solid #CCBCA7;
+}
+
+div.related ul li {
+    margin: 0;
+    padding: 0;
+    height: 2em;
+    float: left;
+}
+
+div.related ul li.right {
+    float: right;
+    margin-right: 5px;
+}
+
+div.related ul li a {
+    margin: 0;
+    padding: 0 5px 0 5px;
+    line-height: 1.75em;
+}
+
+div.sphinxsidebarwrapper {
+    padding: 0;
+}
+
+div.sphinxsidebar {
+    margin: 0;
+    padding: 5px 10px 5px 10px;
+    width: 210px;
+    float: left;
+    font-size: 1em;
+    text-align: left;
+}
+
+div.sphinxsidebar h3, div.sphinxsidebar h4 {
+    margin: 1em 0 0.5em 0;
+    font-size: 1em;
+    padding: 0.1em 0 0.1em 0.5em;
+    color: white;
+    border: 1px solid #CCBCA7;
+    background-color: #909090;
+}
+
+div.sphinxsidebar h3 a {
+    color: white;
+}
+
+div.sphinxsidebar ul {
+    padding-left: 1.5em;
+    margin-top: 7px;
+    padding: 0;
+    line-height: 130%;
+    font-weight: bold;
+}
+
+div.sphinxsidebar ul ul {
+    margin-left: 20px;
+    font-weight: normal;
+}
+
+div.sphinxsidebar li {
+    margin: 0;
+}
+
+div.sphinxsidebar input {
+    border: 1px solid #CCBCA7;
+    font-family: sans-serif;
+    font-size: 1em;
+}
+
+div.footer {
+    background-color: #FFFFFF;
+    color: #707070;
+    padding: 3px 8px 3px 0;
+    clear: both;
+    font-size: 0.8em;
+    text-align: right;
+}
+
+div.footer a {
+    color: #707070;
+    text-decoration: underline;
+}
+
+/* -- body styles ----------------------------------------------------------- */
+
+p {    
+    margin: 0.8em 0 0 0;
+}
+
+ul, ol {  
+    margin: 0;
+}
+
+li {  
+    margin: 0.2em 0 0 0;
+}
+
+a {
+    color: #B45300;
+    text-decoration: none;
+}
+
+a:hover {
+    color: #4BACFF;
+}
+
+div.body a {
+    text-decoration: underline;
+}
+
+h1 {
+    margin: 0;
+    padding: 0.7em 0 0.3em 0;
+    font-size: 1.5em;
+    border-bottom: 3px solid #CC8B00;
+    color: #404040;
+}
+
+h2 {
+    margin: 1.3em 0 0.2em 0;
+    font-size: 1.35em;
+    padding: 0;
+    color: #303030;
+}
+
+h3 {
+    margin: 1em 0 -0.3em 0;
+    font-size: 1.2em;
+    color: #202020;
+}
+
+div.body h1 a {
+    color: #404040!important;
+}
+
+div.body h2 a {
+    color: #303030!important;
+}
+
+div.body h3 a {
+    color: #202020!important;
+}
+
+div.body h4 a, div.body h5 a, div.body h6 a {
+    color: #000000!important;
+}
+
+h1 a.anchor, h2 a.anchor, h3 a.anchor, h4 a.anchor, h5 a.anchor, h6 a.anchor {
+    display: none;
+    margin: 0 0 0 0.3em;
+    padding: 0 0.2em 0 0.2em;
+    color: #AAA!important;
+}
+
+h1:hover a.anchor, h2:hover a.anchor, h3:hover a.anchor, h4:hover a.anchor,
+h5:hover a.anchor, h6:hover a.anchor {
+    display: inline;
+}
+
+h1 a.anchor:hover, h2 a.anchor:hover, h3 a.anchor:hover, h4 a.anchor:hover,
+h5 a.anchor:hover, h6 a.anchor:hover {
+    color: #777;
+    background-color: #EEE;
+}
+
+a.headerlink {
+    color: #C60F0F!important;
+    font-size: 1em;
+    margin-left: 6px;
+    padding: 0 4px 0 4px;
+    text-decoration: none!important;
+}
+
+a.headerlink:hover {
+    background-color: #C0C0C0;
+    color: #FFFFFF!important;
+}
+
+cite, code, tt {
+    font-family: 'Consolas', 'Deja Vu Sans Mono',
+                 'Bitstream Vera Sans Mono', monospace;
+    font-size: 0.95em;
+    letter-spacing: 0.01em;
+}
+
+tt {
+    background-color: #F0F0F0;
+    border-bottom: 1px solid #D0D0D0;
+}
+
+tt.descname, tt.descclassname, tt.xref {
+    border: 0;
+}
+
+hr {
+    border: 1px solid #CC8B00;
+    margin: 2em;
+}
+
+a tt {
+    border: 0;
+    color: #B45300;
+}
+
+a:hover tt {
+    color: #4BACFF;
+}
+
+pre {
+    font-family: 'Consolas', 'Deja Vu Sans Mono',
+                 'Bitstream Vera Sans Mono', monospace;
+    font-size: 0.95em;
+    letter-spacing: 0.015em;
+    line-height: 120%;
+    padding: 0.5em;
+    border: 1px solid #CCBCA7;
+    background-color: #F0F0F0;
+}
+
+pre a {
+    color: inherit;
+    text-decoration: underline;
+}
+
+td.linenos pre {
+    padding: 0.5em 0;
+}
+
+div.quotebar {
+    background-color: #F8F8F8;
+    max-width: 250px;
+    float: right;
+    padding: 2px 7px;
+    border: 1px solid #C0C0C0;
+}
+
+div.topic {
+    background-color: #F8F8F8;
+}
+
+table {
+    border-collapse: collapse;
+    margin: 0.8em -0.5em 0em -0.5em;
+}
+
+table td, table th {
+    padding: 0.2em 0.5em 0.2em 0.5em;
+}
+
+div.admonition, div.warning {
+    font-size: 0.9em;
+    margin: 1em 0 1em 0;
+    padding: 0;
+}
+
+div.admonition {
+    border: 1px solid #86989B;
+    background-color: #EBEBFF;
+}
+
+div.warning {
+    border: 1px solid #940000;
+    background-color: #FFEBEB;
+}
+
+div.admonition p, div.warning p {
+    margin: 0.5em 1em 0.5em 1em;
+    padding: 0;
+}
+
+div.admonition pre, div.warning pre {
+    margin: 0.4em 1em 0.4em 1em;
+}
+
+div.admonition p.admonition-title,
+div.warning p.admonition-title {
+    margin: 0;
+    padding: 0.1em 0 0.1em 0.5em;
+    color: #FFFFFF;
+    font-weight: bold;
+}
+
+div.admonition p.admonition-title {
+    border-bottom: 1px solid #86989B;
+    background-color: #8C88B5;
+}
+
+div.warning p.admonition-title {
+    background-color: #CF0000;
+    border-bottom: 1px solid #940000;
+}
+
+div.admonition ul, div.admonition ol,
+div.warning ul, div.warning ol {
+    margin: 0.1em 0.5em 0.5em 3em;
+    padding: 0;
+}
+
+div.versioninfo {
+    margin: 1em 0 0 0;
+    border: 1px solid #C0C0C0;
+    background-color: #DDEAF0;
+    padding: 8px;
+    line-height: 1.3em;
+    font-size: 0.9em;
+}
+
+/* TOC trees */
+
+li.toctree-l1 { 
+    margin-top: 0.4em;
+ }
\ No newline at end of file
Binary file logilab_sphinx_themes/static/logilab_logo.png has changed
Binary file logilab_sphinx_themes/static/navigation.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/logilab_sphinx_themes/theme.conf	Wed May 02 15:54:49 2018 +0200
@@ -0,0 +1,4 @@
+[theme]
+inherit = basic
+stylesheet = lglb-sphinx-doc.css
+pygments_style = friendly
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/setup.cfg	Wed May 02 15:54:49 2018 +0200
@@ -0,0 +1,9 @@
+[bdist_wheel]
+universal = 1
+
+[metadata]
+license_file = LICENSE
+
+[flake8]
+ignore = E124,E125,E128,E261,E301,E302,E303
+max-line-length = 79
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/setup.py	Wed May 02 15:54:49 2018 +0200
@@ -0,0 +1,46 @@
+# 'setup.py'
+from setuptools import setup
+import codecs
+
+
+# README into long description
+with codecs.open('README.rst', encoding='utf-8') as f:
+    readme = f.read()
+
+
+setup(
+    name='logilab-sphinx-themes',
+    version='0.1.0',
+    description='A Sphinx theme for Logilab docs',
+    long_description=readme,
+    author='Logilab',
+    author_email='contact@logilab.fr',
+    url='https://www.logilab.org/project/logilab-sphinx-themes',
+    packages=['logilab_sphinx_themes'],
+    include_package_data=True,
+    entry_points={
+        'sphinx.html_themes': [
+            'logilab = logilab_sphinx_themes',
+        ]
+    },
+    classifiers=[
+        'Development Status :: 5 - Production/Stable',
+        'Intended Audience :: Developers',
+        'License :: OSI Approved :: BSD License',
+        'Operating System :: OS Independent',
+        'Programming Language :: Python',
+        'Programming Language :: Python :: 2',
+        'Programming Language :: Python :: 2.6',
+        'Programming Language :: Python :: 2.7',
+        'Programming Language :: Python :: 3',
+        'Programming Language :: Python :: 3.2',
+        'Programming Language :: Python :: 3.3',
+        'Programming Language :: Python :: 3.4',
+        'Programming Language :: Python :: 3.5',
+        'Programming Language :: Python :: 3.6',
+        'Programming Language :: Python :: Implementation :: CPython',
+        'Programming Language :: Python :: Implementation :: PyPy',
+        'Topic :: Documentation',
+        'Topic :: Software Development :: Documentation',
+        ],
+)