You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ih...@apache.org on 2013/02/23 14:38:53 UTC
[2/4] git commit: Yet another doc theme, based on sphinx13 theme
Yet another doc theme, based on sphinx13 theme
Signed-off-by: Ivan Habunek <ih...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/logging-log4php/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4php/commit/73d0bac3
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4php/tree/73d0bac3
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4php/diff/73d0bac3
Branch: refs/heads/docs
Commit: 73d0bac34d5e82e17f1e2e6b654308dde055821a
Parents: 9d1d64a
Author: Ivan Habunek <ih...@apache.org>
Authored: Sat Feb 23 14:28:00 2013 +0100
Committer: Ivan Habunek <ih...@apache.org>
Committed: Sat Feb 23 14:28:00 2013 +0100
----------------------------------------------------------------------
docs/_theme/log4php-sphinx13/layout.html | 6 +
docs/_theme/log4php-sphinx13/static/bodybg.png | Bin 0 -> 602 bytes
docs/_theme/log4php-sphinx13/static/contents.png | Bin 0 -> 202 bytes
docs/_theme/log4php-sphinx13/static/footerbg.png | Bin 0 -> 313 bytes
docs/_theme/log4php-sphinx13/static/headerbg.png | Bin 0 -> 344 bytes
docs/_theme/log4php-sphinx13/static/listitem.png | Bin 0 -> 207 bytes
docs/_theme/log4php-sphinx13/static/log4php.css_t | 17 +
docs/_theme/log4php-sphinx13/static/log4php.js | 55 ++
docs/_theme/log4php-sphinx13/static/navigation.png | Bin 0 -> 218 bytes
docs/_theme/log4php-sphinx13/static/relbg.png | Bin 0 -> 332 bytes
docs/_theme/log4php-sphinx13/static/sphinx13.css | 396 +++++++++++++++
docs/_theme/log4php-sphinx13/theme.conf | 4 +
12 files changed, 478 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/73d0bac3/docs/_theme/log4php-sphinx13/layout.html
----------------------------------------------------------------------
diff --git a/docs/_theme/log4php-sphinx13/layout.html b/docs/_theme/log4php-sphinx13/layout.html
new file mode 100644
index 0000000..5c880d9
--- /dev/null
+++ b/docs/_theme/log4php-sphinx13/layout.html
@@ -0,0 +1,6 @@
+{% extends "basic/layout.html" %}
+{% set script_files = script_files + ['_static/log4php.js'] %}
+
+{% block sidebar1 %}{{ sidebar() }}{% endblock %}
+{% block sidebar2 %}{% endblock %}
+
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/73d0bac3/docs/_theme/log4php-sphinx13/static/bodybg.png
----------------------------------------------------------------------
diff --git a/docs/_theme/log4php-sphinx13/static/bodybg.png b/docs/_theme/log4php-sphinx13/static/bodybg.png
new file mode 100644
index 0000000..506b6f9
Binary files /dev/null and b/docs/_theme/log4php-sphinx13/static/bodybg.png differ
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/73d0bac3/docs/_theme/log4php-sphinx13/static/contents.png
----------------------------------------------------------------------
diff --git a/docs/_theme/log4php-sphinx13/static/contents.png b/docs/_theme/log4php-sphinx13/static/contents.png
new file mode 100644
index 0000000..7fb8215
Binary files /dev/null and b/docs/_theme/log4php-sphinx13/static/contents.png differ
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/73d0bac3/docs/_theme/log4php-sphinx13/static/footerbg.png
----------------------------------------------------------------------
diff --git a/docs/_theme/log4php-sphinx13/static/footerbg.png b/docs/_theme/log4php-sphinx13/static/footerbg.png
new file mode 100644
index 0000000..d1922b4
Binary files /dev/null and b/docs/_theme/log4php-sphinx13/static/footerbg.png differ
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/73d0bac3/docs/_theme/log4php-sphinx13/static/headerbg.png
----------------------------------------------------------------------
diff --git a/docs/_theme/log4php-sphinx13/static/headerbg.png b/docs/_theme/log4php-sphinx13/static/headerbg.png
new file mode 100644
index 0000000..6d3e1d5
Binary files /dev/null and b/docs/_theme/log4php-sphinx13/static/headerbg.png differ
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/73d0bac3/docs/_theme/log4php-sphinx13/static/listitem.png
----------------------------------------------------------------------
diff --git a/docs/_theme/log4php-sphinx13/static/listitem.png b/docs/_theme/log4php-sphinx13/static/listitem.png
new file mode 100644
index 0000000..e45715f
Binary files /dev/null and b/docs/_theme/log4php-sphinx13/static/listitem.png differ
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/73d0bac3/docs/_theme/log4php-sphinx13/static/log4php.css_t
----------------------------------------------------------------------
diff --git a/docs/_theme/log4php-sphinx13/static/log4php.css_t b/docs/_theme/log4php-sphinx13/static/log4php.css_t
new file mode 100644
index 0000000..9f4f3c2
--- /dev/null
+++ b/docs/_theme/log4php-sphinx13/static/log4php.css_t
@@ -0,0 +1,17 @@
+@import url("sphinx13.css");
+
+/* -- tabs ------------------------------------------------------------------ */
+
+.container.tabs { margin: inherit; width: inherit }
+.container.tabs ul { list-style: none; padding: 0; margin: 10px 0 2px 0; }
+.container.tabs li { display:inline; margin-left: 8px; padding: 5px 15px 3px 15px; border: 1px solid #CCC; border-bottom: none; margin-bottom: -1px; color: black }
+.container.tabs li a { text-decoration: none }
+
+.container.tabs li.active { border-bottom: none; background-image: url(relbg.png); }
+.container.tabs li.active a { color: white }
+
+.container.tabs pre { margin-top: 0px }
+
+.highlighttable { width: 100%; }
+.highlighttable td.linenos { width: 22px; text-align: right; padding-right: 5px }
+.highlighttable td.linenos pre { padding: 5px 0px; border: 0; background-color: transparent; color: #aaa }
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/73d0bac3/docs/_theme/log4php-sphinx13/static/log4php.js
----------------------------------------------------------------------
diff --git a/docs/_theme/log4php-sphinx13/static/log4php.js b/docs/_theme/log4php-sphinx13/static/log4php.js
new file mode 100644
index 0000000..4f9b92c
--- /dev/null
+++ b/docs/_theme/log4php-sphinx13/static/log4php.js
@@ -0,0 +1,55 @@
+$(function() {
+ reformatTabs();
+ activateTabs();
+});
+
+function reformatTabs()
+{
+ $('.container.tabs').each(function(tabs_id, container) {
+ var i, count, title, tabID;
+ var $menu, $tabs, $tab, $titles;
+
+ $tabs = $(container).children('div');
+ $titles = $(container).children('p.rubric');
+
+ if ($tabs.size() < 1) {
+ console.warn("Tab init failed. Not enough <div>s. Required at least 1.");
+ }
+
+ if ($tabs.size() !== $titles.size()) {
+ console.warn("Tab init failed. Number of <div>s does not match number of <p.rubric>s.");
+ return;
+ }
+
+ count = $tabs.size();
+ $menu = $('<ul>');
+
+ for (i = 0; i < count; i++) {
+ $tab = $($tabs[i]);
+ title = $titles[i].innerHTML;
+ tabID = 'tab-' + tabs_id + '-' + i;
+
+ $($titles[i]).remove();
+ $menu.append('<li><a href="#' + tabID + '">' + title + '</a></li>');
+ $tab.attr('id', tabID);
+ }
+
+ $(container).prepend($menu);
+ })
+}
+
+function activateTabs()
+{
+ $('.container.tabs > div').hide();
+ $('.container.tabs > div:first').show();
+ $('.container.tabs ul li:first').addClass('active');
+
+ $('.container.tabs ul li a').click(function(){
+ $('.container.tabs ul li').removeClass('active');
+ $(this).parent().addClass('active');
+ var currentTab = $(this).attr('href');
+ $('.container.tabs > div').hide();
+ $(currentTab).show();
+ return false;
+ });
+}
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/73d0bac3/docs/_theme/log4php-sphinx13/static/navigation.png
----------------------------------------------------------------------
diff --git a/docs/_theme/log4php-sphinx13/static/navigation.png b/docs/_theme/log4php-sphinx13/static/navigation.png
new file mode 100644
index 0000000..1081dc1
Binary files /dev/null and b/docs/_theme/log4php-sphinx13/static/navigation.png differ
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/73d0bac3/docs/_theme/log4php-sphinx13/static/relbg.png
----------------------------------------------------------------------
diff --git a/docs/_theme/log4php-sphinx13/static/relbg.png b/docs/_theme/log4php-sphinx13/static/relbg.png
new file mode 100644
index 0000000..4722585
Binary files /dev/null and b/docs/_theme/log4php-sphinx13/static/relbg.png differ
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/73d0bac3/docs/_theme/log4php-sphinx13/static/sphinx13.css
----------------------------------------------------------------------
diff --git a/docs/_theme/log4php-sphinx13/static/sphinx13.css b/docs/_theme/log4php-sphinx13/static/sphinx13.css
new file mode 100644
index 0000000..bb81b67
--- /dev/null
+++ b/docs/_theme/log4php-sphinx13/static/sphinx13.css
@@ -0,0 +1,396 @@
+/*
+ * sphinx13.css
+ * ~~~~~~~~~~~~
+ *
+ * Sphinx stylesheet -- sphinx13 theme.
+ *
+ * :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS.
+ * :license: BSD, see LICENSE for details.
+ *
+ */
+
+@import url("basic.css");
+
+/* -- page layout ----------------------------------------------------------- */
+
+body {
+ font-family: 'Open Sans', 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva',
+ 'Verdana', sans-serif;
+ font-size: 14px;
+ text-align: center;
+ background-image: url(bodybg.png);
+ color: black;
+ padding: 0;
+ border-right: 1px solid #0a507a;
+ border-left: 1px solid #0a507a;
+
+ margin: 0 auto;
+ min-width: 780px;
+ max-width: 1080px;
+}
+
+.pageheader {
+ background-image: url(headerbg.png);
+ text-align: left;
+ padding: 10px 15px;
+}
+
+.pageheader ul {
+ float: right;
+ color: white;
+ list-style-type: none;
+ padding-left: 0;
+ margin-top: 30px;
+ margin-right: 10px;
+}
+
+.pageheader li {
+ float: left;
+ margin: 0 0 0 10px;
+}
+
+.pageheader li a {
+ border-radius: 1px;
+ padding: 8px 12px;
+ color: #f9f9f0;
+ text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
+}
+
+.pageheader li a:hover {
+ background-color: #f9f9f0;
+ color: #0a507a;
+ text-shadow: none;
+}
+
+div.document {
+ background-color: white;
+ text-align: left;
+}
+
+div.bodywrapper {
+ margin: 0 240px 0 0;
+ border-right: 1px solid #0a507a;
+}
+
+div.body {
+ margin: 0;
+ padding: 0.5em 20px 20px 20px;
+}
+
+div.related {
+ font-size: 1em;
+ color: white;
+}
+
+div.related ul {
+ background-image: url(relbg.png);
+ height: 1.9em;
+ border-top: 1px solid #002e50;
+ border-bottom: 1px solid #002e50;
+}
+
+div.related ul li {
+ margin: 0 5px 0 0;
+ padding: 0;
+ 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: #f9f9f0;
+ text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.5);
+}
+
+div.related ul li a:hover {
+ color: white;
+ /*text-decoration: underline;*/
+ text-shadow: 0px 0px 1px rgba(255, 255, 255, 0.5);
+}
+
+div.sphinxsidebarwrapper {
+ position: relative;
+ top: 0px;
+ padding: 0;
+}
+
+div.sphinxsidebar {
+ margin: 0;
+ padding: 0 15px 15px 0;
+ width: 210px;
+ float: right;
+ font-size: 1em;
+ text-align: left;
+}
+
+div.sphinxsidebar .logo {
+ font-size: 1.8em;
+ color: #0A507A;
+ font-weight: 300;
+ text-align: center;
+}
+
+div.sphinxsidebar .logo img {
+ vertical-align: middle;
+}
+
+div.sphinxsidebar input {
+ border: 1px solid #aaa;
+ font-family: 'Open Sans', 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva',
+ 'Verdana', sans-serif;
+ font-size: 1em;
+}
+
+div.sphinxsidebar h3 {
+ font-size: 1.5em;
+ border-top: 1px solid #0a507a;
+ margin-top: 1em;
+ margin-bottom: 0.5em;
+ padding-top: 0.5em;
+}
+
+div.sphinxsidebar h4 {
+ font-size: 1.2em;
+ margin-bottom: 0;
+}
+
+div.sphinxsidebar h3, div.sphinxsidebar h4 {
+ margin-right: -15px;
+ margin-left: -15px;
+ padding-right: 14px;
+ padding-left: 14px;
+ color: #333;
+ font-weight: 300;
+ /*text-shadow: 0px 0px 0.5px rgba(0, 0, 0, 0.4);*/
+}
+
+div.sphinxsidebarwrapper > h3:first-child {
+ margin-top: 0.5em;
+ border: none;
+}
+
+div.sphinxsidebar h3 a {
+ color: #333;
+}
+
+div.sphinxsidebar ul {
+ color: #444;
+ margin-top: 7px;
+ padding: 0;
+ line-height: 130%;
+}
+
+div.sphinxsidebar ul ul {
+ margin-left: 20px;
+ list-style-image: url(listitem.png);
+}
+
+div.footer {
+ background-image: url(footerbg.png);
+ color: #ccc;
+ text-shadow: 0 0 .2px rgba(255, 255, 255, 0.8);
+ padding: 3px 8px 3px 0;
+ clear: both;
+ font-size: 0.8em;
+ text-align: right;
+}
+
+/* no need to make a visible link to Sphinx on the Sphinx page */
+div.footer a {
+ color: #ccc;
+}
+
+/* -- body styles ----------------------------------------------------------- */
+
+p {
+ margin: 0.8em 0 0.5em 0;
+}
+
+a {
+ color: #A2881D;
+ text-decoration: none;
+}
+
+a:hover {
+ color: #E1C13F;
+}
+
+div.body a {
+ text-decoration: underline;
+}
+
+h1 {
+ margin: 10px 0 0 0;
+ font-size: 2.4em;
+ color: #0A507A;
+ font-weight: 300;
+}
+
+h2 {
+ margin: 1.em 0 0.2em 0;
+ font-size: 1.5em;
+ font-weight: 300;
+ padding: 0;
+ color: #174967;
+}
+
+h3 {
+ margin: 1em 0 -0.3em 0;
+ font-size: 1.3em;
+ font-weight: 300;
+}
+
+div.body h1 a, div.body h2 a, div.body h3 a, div.body h4 a, div.body h5 a, div.body h6 a {
+ text-decoration: none;
+}
+
+div.body h1 a tt, div.body h2 a tt, div.body h3 a tt, div.body h4 a tt, div.body h5 a tt, div.body h6 a tt {
+ color: #0A507A !important;
+ font-size: inherit !important;
+}
+
+a.headerlink {
+ color: #0A507A !important;
+ font-size: 12px;
+ margin-left: 6px;
+ padding: 0 4px 0 4px;
+ text-decoration: none !important;
+ float: right;
+}
+
+a.headerlink:hover {
+ background-color: #ccc;
+ color: white!important;
+}
+
+cite, code, tt {
+ font-family: 'Consolas', 'DejaVu Sans Mono',
+ 'Bitstream Vera Sans Mono', monospace;
+ font-size: 14px;
+ letter-spacing: -0.02em;
+}
+
+tt {
+ background-color: #f2f2f2;
+ border: 1px solid #ddd;
+ border-radius: 2px;
+ color: #333;
+ padding: 1px;
+}
+
+tt.descname, tt.descclassname, tt.xref {
+ border: 0;
+}
+
+hr {
+ border: 1px solid #abc;
+ margin: 2em;
+}
+
+a tt {
+ border: 0;
+ color: #a2881d;
+}
+
+a tt:hover {
+ color: #e1c13f;
+}
+
+pre {
+ font-family: 'Consolas', 'DejaVu Sans Mono',
+ 'Bitstream Vera Sans Mono', monospace;
+ font-size: 13px;
+ letter-spacing: 0.015em;
+ line-height: 120%;
+ padding: 0.5em;
+ border: 1px solid #ccc;
+ border-radius: 2px;
+ 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: 0px 7px;
+ border: 1px solid #ccc;
+ margin-left: 1em;
+}
+
+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;
+ border-radius: 2px;
+ 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-top: 1em;
+ padding-top: 0.5em;
+ font-weight: bold;
+}
+
+div.warning {
+ border: 1px solid #940000;
+/* background-color: #FFCCCF;*/
+}
+
+div.warning p.admonition-title {
+}
+
+div.admonition ul, div.admonition ol,
+div.warning ul, div.warning ol {
+ margin: 0.1em 0.5em 0.5em 3em;
+ padding: 0;
+}
+
+.viewcode-back {
+ font-family: 'Open Sans', '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;
+}
http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/73d0bac3/docs/_theme/log4php-sphinx13/theme.conf
----------------------------------------------------------------------
diff --git a/docs/_theme/log4php-sphinx13/theme.conf b/docs/_theme/log4php-sphinx13/theme.conf
new file mode 100644
index 0000000..69f0db3
--- /dev/null
+++ b/docs/_theme/log4php-sphinx13/theme.conf
@@ -0,0 +1,4 @@
+[theme]
+inherit = basic
+stylesheet = log4php.css
+pygments_style = friendly