davemds pushed a commit to branch master.
commit 23d388732f6802e512e8c7c227e2c025596efd9a
Author: davemds <[email protected]>
Date: Thu Apr 4 20:22:56 2013 +0200
Python-EFL: new sphinx theme that match (more or less) the e.org site
This is not enabled by default, to enable just uncomment the
appropriate line in doc/conf.py
NOTE: This is a work in progress, the global style is there but needs
more love (it's not well readable atm)
---
doc/conf.py | 9 +-
doc/efldoc/static/b5.png | Bin 0 -> 580 bytes
doc/efldoc/static/efl.css | 354 +++++++++++++++++++++++++++++++
doc/efldoc/static/footer_background.png | Bin 0 -> 4294 bytes
doc/efldoc/static/related_background.png | Bin 0 -> 1420 bytes
doc/efldoc/theme.conf | 7 +
doc/images/logo.png | Bin 0 -> 16602 bytes
7 files changed, 367 insertions(+), 3 deletions(-)
diff --git a/doc/conf.py b/doc/conf.py
index f0213eb..df05481 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -120,7 +120,10 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-html_theme = 'sphinxdoc'
+#
+# html_theme = 'default' # Classic python style
+html_theme = 'sphinxdoc' # Much modern sphinx style
+# html_theme = 'efldoc' # EFL dark style
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
@@ -128,7 +131,7 @@ html_theme = 'sphinxdoc'
#html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory.
-#html_theme_path = []
+html_theme_path = ['.']
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
@@ -139,7 +142,7 @@ html_short_title = "Python Bindings for EFL"
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
-#html_logo = None
+html_logo = "images/logo.png"
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
diff --git a/doc/efldoc/static/b5.png b/doc/efldoc/static/b5.png
new file mode 100644
index 0000000..907641a
Binary files /dev/null and b/doc/efldoc/static/b5.png differ
diff --git a/doc/efldoc/static/efl.css b/doc/efldoc/static/efl.css
new file mode 100644
index 0000000..b29ef8c
--- /dev/null
+++ b/doc/efldoc/static/efl.css
@@ -0,0 +1,354 @@
+/*
+ * efl.css
+ * ~~~~~~~~~~~~~~~
+ *
+ * EFL stylesheet
+ *
+ * base on:
+ *
+ * Sphinx stylesheet -- sphinxdoc theme. Originally created by
+ * Armin Ronacher for Werkzeug.
+ *
+ * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
+ * :license: BSD, see LICENSE for details.
+ *
+ */
+
+@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: rgb(64,64,64); /* #BFD1D4 */
+ color: white; /* black */
+ padding: 0;
+ border: 1px solid rgb(111,111,111); /* #aaa */
+
+ margin: 0px 80px 0px 80px;
+ min-width: 740px;
+}
+
+div.document {
+/* background-color: white; */
+ text-align: left;
+/* background-image: url(contents.png);
+ background-repeat: repeat-x; */
+}
+
+div.bodywrapper {
+ margin: 0 240px 0 0;
+ border-right: 1px solid rgb(111,111,111); /* #ccc */
+}
+
+div.body {
+ margin: 0;
+ padding: 0.5em 20px 20px 20px;
+}
+
+div.related {
+ font-size: 1em;
+
+}
+
+div.related ul {
+ background-image: url(related_background.png); /* url(navigation.png) */
+ height: 2em;
+/* border-top: 1px solid #ddd;
+ border-bottom: 1px solid #ddd; */
+}
+
+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;
+/* color: #EE9816; */
+}
+
+div.related ul li a:hover {
+/* color: #3CA8E7; */
+}
+
+div.sphinxsidebarwrapper {
+ padding: 0;
+}
+
+div.sphinxsidebar {
+ margin: 0;
+ padding: 0.5em 15px 15px 0;
+ width: 210px;
+ float: right;
+ 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 #86989B;
+ background-color: #AFC1C4; */
+ border-bottom: 1px solid rgb(32, 32, 32);
+ border-right: 1px solid rgb(50, 50, 50);
+ border-left: 1px solid rgb(50, 50, 50);
+ border-top: 1px solid rgb(128, 128, 128);
+ background-image: url("b5.png");
+}
+
+div.sphinxsidebar h3 a {
+ color: white;
+}
+
+div.sphinxsidebar ul {
+ padding-left: 1.5em;
+ margin-top: 7px;
+ padding: 0;
+ line-height: 130%;
+}
+
+div.sphinxsidebar ul ul {
+ margin-left: 20px;
+}
+
+div.footer {
+ background-color: transparent; /* #E3EFF1; */
+ background-image: url("footer_background.png"); /* */
+ color: white; /* #86989B */
+ padding: 3px 8px 3px 0;
+ clear: both;
+ font-size: 0.8em;
+ text-align: center; /* right */
+}
+
+div.footer a {
+ color: #86989B;
+ text-decoration: underline;
+}
+
+/* -- body styles -----------------------------------------------------------
*/
+
+p {
+ margin: 0.8em 0 0.5em 0;
+}
+
+a {
+ color: rgb(51, 153, 255); /* #CA7900 */
+ text-decoration: none;
+}
+
+a:hover {
+ /* color: #2491CF; */
+ text-shadow: rgb(51, 153, 255) 0px 0px 10px; /* */
+}
+
+div.body a {
+ text-decoration: underline;
+}
+
+h1 {
+ margin: 0;
+ padding: 0.7em 0 0.3em 0;
+ font-size: 1.5em;
+ color: rgb(51, 153, 255); /* #11557C */
+ text-shadow: rgb(51, 153, 255) 0px 0px 10px; /* */
+}
+
+h2 {
+ margin: 1.3em 0 0.2em 0;
+ font-size: 1.35em;
+ color: rgb(51, 153, 255); /* */
+ text-shadow: rgb(51, 153, 255) 0px 0px 10px; /* */
+ padding: 0;
+}
+
+h3 {
+ margin: 1em 0 -0.3em 0;
+ font-size: 1.2em;
+}
+
+div.body h1 a, div.body h2 a, div.body h3 a, div.body h4 a, div.body h5 a,
div.body h6 a {
+/* color: black!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: #ccc;
+ color: white!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: #f2f2f2;
+ border-bottom: 1px solid #ddd;
+/* color: #333; */
+}
+
+tt.descname, tt.descclassname, tt.xref {
+ border: 0;
+}
+
+hr {
+ border: 1px solid #abc;
+ margin: 2em;
+}
+
+a tt {
+ border: 0;
+/* color: #CA7900; */
+}
+
+a tt:hover {
+ color: #2491CF;
+}
+
+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 #ccc;
+ background-color: #f8f8f8;
+}
+
+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 #ccc;
+}
+
+div.topic {
+ background-color: #f8f8f8;
+}
+
+table {
+ border-collapse: collapse;
+ margin: 0 -0.5em 0 -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;
+ border: 1px solid #86989B;
+ background-color: #f7f7f7;
+ padding: 0;
+}
+
+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: white;
+ border-bottom: 1px solid #86989B;
+ font-weight: bold;
+ background-color: #AFC1C4;
+}
+
+div.warning {
+ border: 1px solid #940000;
+}
+
+div.warning p.admonition-title {
+ background-color: #CF0000;
+ border-bottom-color: #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 #ccc;
+ background-color: #DDEAF0;
+ padding: 8px;
+ line-height: 1.3em;
+ font-size: 0.9em;
+}
+
+.viewcode-back {
+ font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva',
+ 'Verdana', sans-serif;
+}
+
+div.viewcode-block:target {
+ background-color: #f4debf;
+ border-top: 1px solid #ac9;
+ border-bottom: 1px solid #ac9;
+}
diff --git a/doc/efldoc/static/footer_background.png
b/doc/efldoc/static/footer_background.png
new file mode 100644
index 0000000..c4d5254
Binary files /dev/null and b/doc/efldoc/static/footer_background.png differ
diff --git a/doc/efldoc/static/related_background.png
b/doc/efldoc/static/related_background.png
new file mode 100644
index 0000000..2575f90
Binary files /dev/null and b/doc/efldoc/static/related_background.png differ
diff --git a/doc/efldoc/theme.conf b/doc/efldoc/theme.conf
new file mode 100644
index 0000000..3c9a63e
--- /dev/null
+++ b/doc/efldoc/theme.conf
@@ -0,0 +1,7 @@
+[theme]
+inherit = sphinxdoc
+stylesheet = efl.css
+pygments_style = sphinx
+
+# [options]
+# variable = default value
diff --git a/doc/images/logo.png b/doc/images/logo.png
new file mode 100644
index 0000000..8a86bc5
Binary files /dev/null and b/doc/images/logo.png differ
--
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html