dabodoc Commit
Revision 81
Date: 2011-04-09 08:54:44 -0700 (Sat, 09 Apr 2011)
Author: Werner
Trac: http://trac.dabodev.com/changeset/81
Changed:
U trunk/api/sphinx/_rst_basefiles/index_htmlhelp.rst
U trunk/api/sphinx/_rst_basefiles/index_latex.rst
U trunk/api/sphinx/_rst_basefiles/index_normal.rst
D trunk/api/sphinx/_rst_basefiles/tree_module_list.rst
U trunk/api/sphinx/makeRST.py
D trunk/api/sphinx/source/_static/AGW.css
D trunk/api/sphinx/source/_templates/layout.html
U trunk/api/sphinx/source/conf.py
U trunk/api/sphinx/source/dabo_theme/layout.html
A trunk/api/sphinx/source/dabo_theme/static/dabo.css_t
D trunk/api/sphinx/source/dabo_theme/static/default.css_t
A trunk/api/sphinx/source/dabo_theme/static/header.js
U trunk/api/sphinx/source/dabo_theme/static/sidebar.js
U trunk/api/sphinx/source/dabo_theme/theme.conf
Log:
- clean up
- make better use of the Sphinx theming support
- based things on a theme originally developed by Christoph Z. for Turbogears
2.1 doc
- reorganized the initial page
- access the gallery pages is now from the initial/index page
Diff:
Modified: trunk/api/sphinx/_rst_basefiles/index_htmlhelp.rst
===================================================================
--- trunk/api/sphinx/_rst_basefiles/index_htmlhelp.rst 2011-04-08 10:48:25 UTC
(rev 80)
+++ trunk/api/sphinx/_rst_basefiles/index_htmlhelp.rst 2011-04-09 15:54:44 UTC
(rev 81)
@@ -1,8 +1,8 @@
.. include:: _static/headings.txt
-========================================================
-|doc_title| **Dabo - The desktop application framework**
-========================================================
+====================
+|doc_title| **Dabo**
+====================
Desktop applications. That's what Dabo does. It's not YAWF (yet another web
framework).
There are plenty of excellent web frameworks out there, so if that's what you
are looking
@@ -11,20 +11,57 @@
|
-.. figure:: _static/dabo_horizontal_sidebar.png
- :alt: dabo screenshots
- :figclass: floatcenter
- :align: center
- :target: gallery.html
+.. tabularcolumns:: |C|C|C|
- **Dabo** sample screenshots
+.. list-table::
+ :header-rows: 1
+ * - **Apple Mac**
+ - **Windows**
+ - **Linux**
+
+
+
+ * - .. image:: _static/macWidgets/dGrid.png
+ :scale: 75 %
+ :target: gallery_mac.html
+ :alt: dGrid on Mac
+
+
+
+ - .. image:: _static/winWidgets/dGrid.png
+ :scale: 75 %
+ :target: gallery_win.html
+ :alt: dGrid on Windows
+
+
+
+ - .. image:: _static/nixWidgets/dGrid.png
+ :scale: 75 %
+ :target: gallery_nix.html
+ :alt: dGrid on Linux
+
|
-:Version: |version|
-:Date: |today|
+|table_contents| Table of Contents
+==================================
+
+|
+
++-----------------------------------+-----------------------------------+
+| Main modules | Databases supported |
++===================================+===================================+
+| * :ref:`dabo.dabo` | * :ref:`dabo.db.dbFirebird` |
+| * :ref:`dabo.biz` | * :ref:`dabo.db.dbMSSQL` |
+| * :ref:`dabo.db` | * :ref:`dabo.db.dbMySQL` |
+| * :ref:`dabo.ui` | * :ref:`dabo.db.dbPostgreSQL` |
+| | * :ref:`dabo.db.dbSQLite` |
++-----------------------------------+-----------------------------------+
+
+|
+
=========================
|description| Description
=========================
@@ -130,44 +167,6 @@
---------------
-**Dabo** version: |version|
-
-Last updated: |today|, 10.00 GMT
-
----------------
-
-
-|table_contents| Table of Contents
-==================================
-
-|
-
-+-----------------------------------+-----------------------------------+
-| Dabo | Databases supported |
-+===================================+===================================+
-| * :ref:`dabo.dApp` | * :ref:`dabo.db.dbFirebird` |
-| * :ref:`dabo.dObject` | * :ref:`dabo.db.dbMSSQL` |
-| * :ref:`dabo.dReportWriter` | * :ref:`dabo.db.dbMySQL` |
-| * :ref:`dabo.dSecurityManager` | * :ref:`dabo.db.dbPostgreSQL` |
-| * :ref:`dabo.dUserSettingProvider`| * :ref:`dabo.db.dbSQLite` |
-+-----------------------------------+-----------------------------------+
-| db module | biz module |
-+-----------------------------------+-----------------------------------+
-| * :ref:`dabo.db.dBackend` | * :ref:`dabo.biz.dBizobj` |
-| * :ref:`dabo.db.dConnectInfo` | * :ref:`dabo.biz.dAutoBizobj` |
-| * :ref:`dabo.db.dConnection` | * :ref:`dabo.biz.RemoteBizObj` |
-| * :ref:`dabo.db.dCursorMixin` | |
-| * :ref:`dabo.db.dNoEscQuoteStr` | |
-| * :ref:`dabo.db.dTable` | |
-| | |
-+-----------------------------------+-----------------------------------+
-| ui module | |
-+-----------------------------------+-----------------------------------+
-| * :ref:`dabo.ui` | |
-+-----------------------------------+-----------------------------------+
-
-
-
|indices| Indices and tables
============================
@@ -176,6 +175,13 @@
* :ref:`modindex`
* :ref:`search`
+Build information:
+==================
+
+:Version: |version|
+:Date: |today|
+
+
.. toctree::
:hidden:
Modified: trunk/api/sphinx/_rst_basefiles/index_latex.rst
===================================================================
--- trunk/api/sphinx/_rst_basefiles/index_latex.rst 2011-04-08 10:48:25 UTC
(rev 80)
+++ trunk/api/sphinx/_rst_basefiles/index_latex.rst 2011-04-09 15:54:44 UTC
(rev 81)
@@ -1,8 +1,8 @@
.. include:: _static/headings.txt
-========================================================
-|doc_title| **Dabo - The desktop application framework**
-========================================================
+====================
+|doc_title| **Dabo**
+====================
Desktop applications. That's what Dabo does. It's not YAWF (yet another web
framework).
There are plenty of excellent web frameworks out there, so if that's what you
are looking
@@ -11,20 +11,57 @@
|
-.. figure:: _static/dabo_horizontal_sidebar.png
- :alt: dabo screenshots
- :figclass: floatcenter
- :align: center
- :target: gallery.html
+.. tabularcolumns:: |C|C|C|
- **Dabo** sample screenshots
+.. list-table::
+ :header-rows: 1
+ * - **Apple Mac**
+ - **Windows**
+ - **Linux**
+
+
+
+ * - .. image:: _static/macWidgets/dGrid.png
+ :scale: 75 %
+ :target: gallery_mac.html
+ :alt: dGrid on Mac
+
+
+
+ - .. image:: _static/winWidgets/dGrid.png
+ :scale: 75 %
+ :target: gallery_win.html
+ :alt: dGrid on Windows
+
+
+
+ - .. image:: _static/nixWidgets/dGrid.png
+ :scale: 75 %
+ :target: gallery_nix.html
+ :alt: dGrid on Linux
+
|
-:Version: |version|
-:Date: |today|
+|table_contents| Table of Contents
+==================================
+
+|
+
++-----------------------------------+-----------------------------------+
+| Main modules | Databases supported |
++===================================+===================================+
+| * :ref:`dabo.dabo` | * :ref:`dabo.db.dbFirebird` |
+| * :ref:`dabo.biz` | * :ref:`dabo.db.dbMSSQL` |
+| * :ref:`dabo.db` | * :ref:`dabo.db.dbMySQL` |
+| * :ref:`dabo.ui` | * :ref:`dabo.db.dbPostgreSQL` |
+| | * :ref:`dabo.db.dbSQLite` |
++-----------------------------------+-----------------------------------+
+
+|
+
=========================
|description| Description
=========================
@@ -130,44 +167,6 @@
---------------
-**Dabo** version: |version|
-
-Last updated: |today|, 10.00 GMT
-
----------------
-
-
-|table_contents| Table of Contents
-==================================
-
-|
-
-+-----------------------------------+-----------------------------------+
-| Dabo | Databases supported |
-+===================================+===================================+
-| * :ref:`dabo.dApp` | * :ref:`dabo.db.dbFirebird` |
-| * :ref:`dabo.dObject` | * :ref:`dabo.db.dbMSSQL` |
-| * :ref:`dabo.dReportWriter` | * :ref:`dabo.db.dbMySQL` |
-| * :ref:`dabo.dSecurityManager` | * :ref:`dabo.db.dbPostgreSQL` |
-| * :ref:`dabo.dUserSettingProvider`| * :ref:`dabo.db.dbSQLite` |
-+-----------------------------------+-----------------------------------+
-| db module | biz module |
-+-----------------------------------+-----------------------------------+
-| * :ref:`dabo.db.dBackend` | * :ref:`dabo.biz.dBizobj` |
-| * :ref:`dabo.db.dConnectInfo` | * :ref:`dabo.biz.dAutoBizobj` |
-| * :ref:`dabo.db.dConnection` | * :ref:`dabo.biz.RemoteBizObj` |
-| * :ref:`dabo.db.dCursorMixin` | |
-| * :ref:`dabo.db.dNoEscQuoteStr` | |
-| * :ref:`dabo.db.dTable` | |
-| | |
-+-----------------------------------+-----------------------------------+
-| ui module | |
-+-----------------------------------+-----------------------------------+
-| * :ref:`dabo.ui` | |
-+-----------------------------------+-----------------------------------+
-
-
-
|indices| Indices and tables
============================
@@ -176,6 +175,13 @@
* :ref:`modindex`
* :ref:`search`
+Build information:
+==================
+
+:Version: |version|
+:Date: |today|
+
+
.. toctree::
:hidden:
Modified: trunk/api/sphinx/_rst_basefiles/index_normal.rst
===================================================================
--- trunk/api/sphinx/_rst_basefiles/index_normal.rst 2011-04-08 10:48:25 UTC
(rev 80)
+++ trunk/api/sphinx/_rst_basefiles/index_normal.rst 2011-04-09 15:54:44 UTC
(rev 81)
@@ -1,8 +1,8 @@
.. include:: _static/headings.txt
-========================================================
-|doc_title| **Dabo - The desktop application framework**
-========================================================
+====================
+|doc_title| **Dabo**
+====================
Desktop applications. That's what Dabo does. It's not YAWF (yet another web
framework).
There are plenty of excellent web frameworks out there, so if that's what you
are looking
@@ -11,20 +11,57 @@
|
-.. figure:: _static/dabo_horizontal_sidebar.png
- :alt: dabo screenshots
- :figclass: floatcenter
- :align: center
- :target: gallery.html
+.. tabularcolumns:: |C|C|C|
- **Dabo** sample screenshots
+.. list-table::
+ :header-rows: 1
+ * - **Apple Mac**
+ - **Windows**
+ - **Linux**
+
+
+
+ * - .. image:: _static/macWidgets/dGrid.png
+ :scale: 75 %
+ :target: gallery_mac.html
+ :alt: dGrid on Mac
+
+
+
+ - .. image:: _static/winWidgets/dGrid.png
+ :scale: 75 %
+ :target: gallery_win.html
+ :alt: dGrid on Windows
+
+
+
+ - .. image:: _static/nixWidgets/dGrid.png
+ :scale: 75 %
+ :target: gallery_nix.html
+ :alt: dGrid on Linux
+
|
-:Version: |version|
-:Date: |today|
+|table_contents| Table of Contents
+==================================
+
+|
+
++-----------------------------------+-----------------------------------+
+| Main modules | Databases supported |
++===================================+===================================+
+| * :ref:`dabo.dabo` | * :ref:`dabo.db.dbFirebird` |
+| * :ref:`dabo.biz` | * :ref:`dabo.db.dbMSSQL` |
+| * :ref:`dabo.db` | * :ref:`dabo.db.dbMySQL` |
+| * :ref:`dabo.ui` | * :ref:`dabo.db.dbPostgreSQL` |
+| | * :ref:`dabo.db.dbSQLite` |
++-----------------------------------+-----------------------------------+
+
+|
+
=========================
|description| Description
=========================
@@ -130,44 +167,6 @@
---------------
-**Dabo** version: |version|
-
-Last updated: |today|, 10.00 GMT
-
----------------
-
-
-|table_contents| Table of Contents
-==================================
-
-|
-
-+-----------------------------------+-----------------------------------+
-| Dabo | Databases supported |
-+===================================+===================================+
-| * :ref:`dabo.dApp` | * :ref:`dabo.db.dbFirebird` |
-| * :ref:`dabo.dObject` | * :ref:`dabo.db.dbMSSQL` |
-| * :ref:`dabo.dReportWriter` | * :ref:`dabo.db.dbMySQL` |
-| * :ref:`dabo.dSecurityManager` | * :ref:`dabo.db.dbPostgreSQL` |
-| * :ref:`dabo.dUserSettingProvider`| * :ref:`dabo.db.dbSQLite` |
-+-----------------------------------+-----------------------------------+
-| db module | biz module |
-+-----------------------------------+-----------------------------------+
-| * :ref:`dabo.db.dBackend` | * :ref:`dabo.biz.dBizobj` |
-| * :ref:`dabo.db.dConnectInfo` | * :ref:`dabo.biz.dAutoBizobj` |
-| * :ref:`dabo.db.dConnection` | * :ref:`dabo.biz.RemoteBizObj` |
-| * :ref:`dabo.db.dCursorMixin` | |
-| * :ref:`dabo.db.dNoEscQuoteStr` | |
-| * :ref:`dabo.db.dTable` | |
-| | |
-+-----------------------------------+-----------------------------------+
-| ui module | |
-+-----------------------------------+-----------------------------------+
-| * :ref:`dabo.ui` | |
-+-----------------------------------+-----------------------------------+
-
-
-
|indices| Indices and tables
============================
@@ -176,6 +175,13 @@
* :ref:`modindex`
* :ref:`search`
+Build information:
+==================
+
+:Version: |version|
+:Date: |today|
+
+
.. toctree::
:hidden:
Deleted: trunk/api/sphinx/_rst_basefiles/tree_module_list.rst
Modified: trunk/api/sphinx/makeRST.py
===================================================================
--- trunk/api/sphinx/makeRST.py 2011-04-08 10:48:25 UTC (rev 80)
+++ trunk/api/sphinx/makeRST.py 2011-04-09 15:54:44 UTC (rev 81)
@@ -407,74 +407,6 @@
"""
-# this one is with a big logo on the top
-htmlLayout = """
-{% extends "!layout.html" %}
-
-{%- block relbaritems %}
- <li>{{ title }}</li>
-{% endblock %}
-
-{% block rootrellink %}
- <li><img src="_static/dabo_small.png" alt=""
style="vertical-align: middle; margin-top: 7px"/></li>
- <li><a href="index.html" style="color: rgb(238,
152, 22); hover: rgb(53, 95, 124);">Introduction</a> | </li>
- <li><a href="search.html" style="color:
rgb(238, 152, 22); hover: rgb(53, 95, 124);">Search</a> | </li>
- <li><a href="gallery_mac.html" style="color:
rgb(238, 152, 22); hover: rgb(53, 95, 124);">Apple Mac</a> | </li>
- <li><a href="gallery_win.html" style="color:
rgb(238, 152, 22); hover: rgb(53, 95, 124);">Ms Windows</a> | </li>
- <li><a href="gallery_nix.html" style="color:
rgb(238, 152, 22); hover: rgb(53, 95, 124);">Linux</a> | </li>
- <li><a href="general_index.html" style="color:
rgb(238, 152, 22); hover: rgb(53, 95, 124);">Contents</a>»</li>
-{% endblock %}
-
-{% block header %}
-<div style="background-color: white; text-align: left; padding: 10px 10px 15px
15px">
-<img src="{{ pathto("_static/dabo_logo.png", 1) }}" alt="Dabo Logo" />
-</div>
-{% endblock %}
-"""
-
-# this one has no logo at the top
-htmlLayout = """
-{% extends "!layout.html" %}
-
-{%- block relbaritems %}
- <li>{{ title }}</li>
-{% endblock %}
-
-{% block rootrellink %}
- <li><img src="_static/dabo_small.png" alt=""
style="vertical-align: middle; margin-top: 7px"/></li>
- <li><a href="index.html" style="color: rgb(238,
152, 22); hover: rgb(53, 95, 124);">Introduction</a> | </li>
- <li><a href="search.html" style="color:
rgb(238, 152, 22); hover: rgb(53, 95, 124);">Search</a> | </li>
- <li><a href="gallery_mac.html" style="color:
rgb(238, 152, 22); hover: rgb(53, 95, 124);">Apple Mac</a> | </li>
- <li><a href="gallery_win.html" style="color:
rgb(238, 152, 22); hover: rgb(53, 95, 124);">Ms Windows</a> | </li>
- <li><a href="gallery_nix.html" style="color:
rgb(238, 152, 22); hover: rgb(53, 95, 124);">Linux</a> | </li>
- <li><a href="general_index.html" style="color:
rgb(238, 152, 22); hover: rgb(53, 95, 124);">Contents</a>»</li>
-{% endblock %}
-
-{% block header %}
-{% endblock %}
-"""
-
-otherLayout = """
-{% extends "!layout.html" %}
-
-{%- block relbaritems %}
- <li>{{ title }}</li>
-{% endblock %}
-
-{% block rootrellink %}
- <li><img src="_static/dabo_small.png" alt=""
style="vertical-align: middle; margin-top: 7px"/></li>
- <li><a href="index.html" style="color: rgb(238,
152, 22); hover: rgb(53, 95, 124);">Home</a> | </li>
- <li><a href="gallery.html" style="color:
rgb(238, 152, 22); hover: rgb(53, 95, 124);">Gallery</a> | </li>
- <li><a href="general_index.html" style="color:
rgb(238, 152, 22); hover: rgb(53, 95, 124);">Contents</a>»</li>
-{% endblock %}
-
-{% block header %}
-<div style="background-color: white; text-align: left; padding: 10px 10px 15px
15px">
-<img src="{{ pathto("_static/dabo_logo.png", 1) }}" alt="Dabo Logo" />
-</div>
-{% endblock %}
-"""
-
rawhtmlfull = """
.. raw:: html
@@ -1624,37 +1556,6 @@
uiIndexText = WriteUiPackageIndex(dUix, dUid, dLibD)
fid.write(uiIndexText)
-## fid.write("Dabo - ui\n")
-## fid.write("=========\n\n")
-## fid.write(".. tocTree::\n")
-## fid.write(" :maxdepth: 1\n\n")
-## for item in dUi:
-## fid.write(" %s\n" % os.path.split(item)[1].replace(".rst",
""))
-## fid.write("\n\n")
-##
-## fid.write("Dabo - ui dialogs\n")
-## fid.write("=================\n\n")
-## fid.write(".. tocTree::\n")
-## fid.write(" :maxdepth: 1\n\n")
-## for item in dUid:
-## fid.write(" %s\n" % os.path.split(item)[1].replace(".rst",
""))
-## fid.write("\n\n")
-##
-## fid.write("Dabo - ui other\n")
-## fid.write("=================\n\n")
-## fid.write(".. tocTree::\n")
-## fid.write(" :maxdepth: 1\n\n")
-## for item in dUix:
-## fid.write(" %s\n" % os.path.split(item)[1].replace(".rst",
""))
-## fid.write("\n\n")
-##
-## fid.write("Dabo - ui datanav\n")
-## fid.write("=================\n\n")
-## fid.write(".. tocTree::\n")
-## fid.write(" :maxdepth: 1\n\n")
-## for item in dLibD:
-## fid.write(" %s\n" % os.path.split(item)[1].replace(".rst",
""))
-## fid.write("\n\n")
fid.write("Dabo - lib\n")
fid.write("==========\n\n")
@@ -1688,6 +1589,7 @@
fid.write("=================================\n")
fid.write("|doc_title| **dabo - ui package**\n")
fid.write("=================================\n\n")
+
fid.write(uiIndexText)
fid.close()
@@ -1779,18 +1681,6 @@
return controlClasses, formClasses, sizerClasses
-def WriteLayout(folder):
-
- if folder in [sc.normalHtml]:
- layout = htmlLayout
- else:
- layout = otherLayout
-
- fid = open("source/_templates/layout.html", "wt")
- fid.write(layout)
- fid.close()
-
-
def WriteIndex(folder):
if folder in [sc.normalHtml]:
@@ -1809,32 +1699,12 @@
fid.write(text)
fid.close()
- # do the magic for the "Tree" button
- if folder in [sc.normalHtml]:
- raw = FindRawModules()
- else:
- # need the | otherwise we might have transitions "--------" at
the end of a file, which is not allowed
- raw = "\n|\n"
+ # need the | otherwise we might have transitions "--------" at the end
of a file, which is not allowed
+ raw = "\n|\n"
+
return raw
-def FindRawModules():
-
- fid = open("_rst_basefiles/tree_module_list.rst", "rt")
- found = False
- moduleList = ""
- for tline in fid:
-
- tline = tline.strip()
- mod, name = tline.split(',')
-
- moduleList += rawhtmlsingle % (mod+".html", name) + "\n"
-
- fid.close()
-
- return rawhtmlfull % moduleList
-
def MakeRst(builder):
- WriteLayout(builder)
raw = WriteIndex(builder)
# create the *_module.rst for top layer and packages
Deleted: trunk/api/sphinx/source/_static/AGW.css
Deleted: trunk/api/sphinx/source/_templates/layout.html
Modified: trunk/api/sphinx/source/conf.py
===================================================================
--- trunk/api/sphinx/source/conf.py 2011-04-08 10:48:25 UTC (rev 80)
+++ trunk/api/sphinx/source/conf.py 2011-04-09 15:54:44 UTC (rev 81)
@@ -70,8 +70,9 @@
master_doc = 'index'
# General information about the project.
-project = u'Dabo - The desktop application framework'
-copyright = u'2011, Ed Leafe and Paul McNett'
+project = u'Dabo'
+copyright_year = '2011'
+copyright = copyright_year + u' by Ed Leafe and Paul McNett'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
@@ -129,8 +130,7 @@
# 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
# documentation.
-html_theme_options = {"stickysidebar": False, "rightsidebar": False,
- "collapsiblesidebar": True}
+#html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory.
html_theme_path = ["."]
@@ -156,9 +156,7 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
-html_style = "AGW.css"
-
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
#html_last_updated_fmt = '%b %d, %Y'
@@ -217,7 +215,7 @@
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass
[howto/manual]).
latex_documents = [
- ('index', 'Dabo-Thedesktopapplicationframework.tex', u'Dabo - The desktop
application framework Documentation',
+ ('index', 'Dabo-Thedesktopapplicationframework.tex', u'Dabo',
u'Ed Leafe and Paul McNett', 'manual'),
]
Modified: trunk/api/sphinx/source/dabo_theme/layout.html
===================================================================
--- trunk/api/sphinx/source/dabo_theme/layout.html 2011-04-08 10:48:25 UTC
(rev 80)
+++ trunk/api/sphinx/source/dabo_theme/layout.html 2011-04-09 15:54:44 UTC
(rev 81)
@@ -1,14 +1,107 @@
-{#
- default/layout.html
- ~~~~~~~~~~~~~~~~~~~
+{% extends "!basic/layout.html" %}
- Sphinx layout template for the default theme.
+{%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool)
+ and (sidebars != []) and (pagename != 'index') %}
- :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
- :license: BSD, see LICENSE for details.
-#}
-{% extends "basic/layout.html" %}
+{% macro tgsidebar() %}
+ {%- if render_sidebar %}{{ sidebar() }}{%- endif %}
+{% endmacro %}
-{% if theme_collapsiblesidebar|tobool %}
+{% macro sidebarcss() %}
+ {%- if not render_sidebar %}
+ <style type="text/css">
+ div.document, div.footer { margin-left:0; margin-right: 0; }
+ </style>
+ {%- endif %}
+{% endmacro %}
+
+{% block extrahead %}{{ sidebarcss() }}{% endblock %}
+
+{% block sidebar1 %}{{ tgsidebar() }}{% endblock %}
+{% block sidebar2 %}{% endblock %}
+
+{% block relbar2 %}{% endblock %}
+
+{% block rootrellink %}
+<li><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>{{ reldelim1
}}</li>
+{%- if pagename != 'search' %}
+<li id="searchbox" style="display: none; margin: 0 20px;" class="right">
+ <form class="search" action="{{ pathto('search') }}" method="get">
+ <span>{{ _('Search:') }}</span>
+ <input type="text" name="q" size="18" />
+ <input type="submit" value="{{ _('Go') }}" />
+ <input type="hidden" name="check_keywords" value="yes" />
+ <input type="hidden" name="area" value="default" />
+ </form>
+</li>
+<script type="text/javascript">$('#searchbox').show(0);</script>
+{%- endif %}
+{% endblock %}
+
+{% block document %}
+ <div class="documentwrapper">
+ <div class="body headerfix">
+ {% block body %} {% endblock %}
+ {%- if theme_disqus_comments|tobool %}
+ <div id="disqus_thread"></div>
+ <script type="text/javascript"
src="http://disqus.com/forums/tg-site/embed.js"></script>
+ <noscript><a href="http://tg-site.disqus.com/?url=ref">View the
discussion thread.</a></noscript>
+ {%- endif %}
+ </div>
+ </div>
+{%- endblock %}
+
+{%- block footer %}
+ <div class="footer"><span>
+ {%- if show_copyright %}
+ {%- if hasdoc('copyright') %}
+ {% trans path=pathto('copyright'), copyright=copyright|e %}©
+ <a href="{{ path }}">Copyright</a> {{ copyright_year }}
+ by the <a href="http://www.dabodev.com/">{{ project }}</a>.{% endtrans %}
+ {%- else %}
+ {% trans copyright=copyright|e %}© Copyright {{ copyright }} -
+ <a href="http://www.dabodev.com/">{{ project }}</a>.{% endtrans %}
+ {%- endif %}
+ {%- endif %}
+ {%- if last_updated %}
+ {% trans last_updated=last_updated|e %}Last updated on {{ last_updated
}}.{% endtrans %}
+ {%- endif %}
+ {%- if show_sphinx %}
+ {% trans sphinx_version=sphinx_version|e %}Created using <a
href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
+ {%- endif %}
+ </span></div>
+ {%- if render_sidebar and (theme_disqus_comments|tobool) %}
+ <script type="text/javascript">
+ //<![CDATA[
+ (function() {
+ var links = document.getElementsByTagName('a');
+ var query = '?';
+ for (var i = 0; i < links.length; i++)
+ if (links[i].href.indexOf('#disqus_thread') >= 0)
+ query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
+ document.write('<script type="text/javascript"
src="http://disqus.com/forums/tg-site/get_num_replies.js' + query + '"></' +
'script>');
+ })();
+ //]]>
+ </script>
+ {%- endif %}
+ {%- if theme_google_analytics|tobool %}
+ <script type="text/javascript">
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." :
"http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost +
"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script type="text/javascript">
+ try {
+ var pageTracker = _gat._getTracker("UA-7088080-2");
+ pageTracker._trackPageview();
+ } catch(err) {}</script>
+ {%- endif %}
+{%- endblock %}
+
+{% if render_sidebar and (theme_collapsiblesidebar|tobool) %}
{% set script_files = script_files + ['_static/sidebar.js'] %}
{% endif %}
+
+{% if theme_headerheight %}
+{% set script_files = script_files + ['_static/header.js'] %}
+{% endif %}
+
Added: trunk/api/sphinx/source/dabo_theme/static/dabo.css_t
===================================================================
--- trunk/api/sphinx/source/dabo_theme/static/dabo.css_t
(rev 0)
+++ trunk/api/sphinx/source/dabo_theme/static/dabo.css_t 2011-04-09
15:54:44 UTC (rev 81)
@@ -0,0 +1,476 @@
+/*
+ * dabo.css_t
+ * ~~~~~~~~
+ *
+ * Dado docs stylesheet, based on the TG 2.1 doc stylesheet with some mods
+ *
+ * TurboGears docs stylesheet -- based on the Sphinx default theme.
+ * Modifications and improvements made 2010 by Christoph Zwerschke.
+ *
+ * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
+ * :license: BSD, see LICENSE for details.
+ *
+ */
+
+@import url("basic.css");
+
+/**
+ * Dabo modifications
+ */
+
+/**
+ * Inheritance diagrams with scroll bars to make them more lisible
+ */
+p.graphviz {
+ overflow: auto
+}
+
+ * /**
+ * control appearance with scroll bars to make them more lisible
+ * "auto" still shows the bars all the time
+ */
+div.appearance-control-appearance {
+ overflow: auto
+}
+
+ * /**
+ * widget gallery pages
+ */
+ .gallery_class table { float: left;
+ margin: 0 5px 20px 0; }
+ .gallery_class table { border-collapse: collapse; }
+ .gallery_class table td {
+ padding: 0;
+ width: 150px;
+ height: 128px;}
+
+ .gallery_class table caption { font-size: 80%; }
+ .gallery .caption { height: 4em; vertical-align: top; }
+ .gallery table { width: 225px; }
+
+
+/* Modified default styles from Sphinx */
+
+body {
+ font-family: {{ theme_bodyfont }};
+ font-size: 100%;
+ color: {{ theme_textcolor }};
+ background-color: {{ theme_bgcolor }};
+ margin: 0;
+ padding: 0;
+}
+
+div.related {
+ color: {{ theme_relbartextcolor }};
+ background-color: {{ theme_relbarbgcolor }};
+ line-height: {{ theme_headerheight }};
+ position: fixed;
+ height: {{ theme_headerheight }};
+ z-index: 1;
+ left: 0;
+ right: 0;
+ top: 0;
+}
+
+div.sphinxsidebar {
+ color: {{ theme_sidebartextcolor }};
+ background-color: {{ theme_sidebarbgcolor }};
+ margin-left: 0;
+ float: none;
+ position: fixed;
+ overflow: auto;
+ width: 240px;
+ max-width: 240px;
+ height: auto;
+ z-index: 1;
+ {%- if theme_rightsidebar|tobool %}
+ right: 0;
+ {%- else %}
+ left: 0;
+ {%- endif %}
+ top: {{ theme_headerheight }};
+ bottom: 0;
+}
+
+div.document {
+ position: relative;
+ z-index: 0;
+ {%- if theme_rightsidebar|tobool %}
+ margin-right: 240px;
+ {%- else %}
+ margin-left: 240px;
+ {%- endif %}
+ top: {{ theme_headerheight }};
+}
+
+div.footer {
+ {%- if theme_footertextcolor != theme_textcolor %}
+ color: {{ theme_footertextcolor }};
+ {%- endif %}
+ {%- if theme_footerbgcolor != theme_bgcolor %}
+ background-color: {{ theme_footerbgcolor }};
+ {%- endif %}
+ font-size: 90%;
+ line-height: {{ theme_headerheight }};
+ text-align: center;
+ margin-top: 20px;
+ position: relative;
+ height: {{ theme_headerheight }};
+ z-index: 0;
+ {%- if theme_rightsidebar|tobool %}
+ margin-right: 240px;
+ {%- else %}
+ margin-left: 240px;
+ {%- endif %}
+}
+
+div.footer span {
+ padding-top: 5px;
+ border-top: 1px solid {{ theme_footerlinecolor }};
+}
+
+div.bodywrapper {
+ margin: 0;
+}
+
+div.body {
+ padding: 0 20px 30px 20px;
+}
+
+{%- if theme_footerbgcolor != theme_bgcolor %}
+div.footer a {
+ color: {{ theme_footertextcolor }};
+ text-decoration: underline;
+}
+{%- endif %}
+
+div.related a {
+ color: {{ theme_relbarlinkcolor }};
+}
+
+div.sphinxsidebar h3 {
+ font-family: {{ theme_headfont }};
+ color: {{ theme_sidebartextcolor }};
+ font-size: 1.4em;
+ font-weight: normal;
+ margin: 0;
+ padding: 0;
+}
+
+div.sphinxsidebar h3 a {
+ color: {{ theme_sidebartextcolor }};
+}
+
+div.sphinxsidebar h4 {
+ font-family: {{ theme_headfont }};
+ color: {{ theme_sidebartextcolor }};
+ font-size: 1.3em;
+ font-weight: normal;
+ margin: 5px 0 0 0;
+ padding: 0;
+}
+
+div.sphinxsidebar p {
+ color: {{ theme_sidebartextcolor }};
+}
+
+div.sphinxsidebar p.topless {
+ margin: 5px 10px 10px 10px;
+}
+
+div.sphinxsidebar ul {
+ margin: 10px;
+ padding: 0;
+ color: {{ theme_sidebartextcolor }};
+}
+
+div.sphinxsidebar a {
+ color: {{ theme_sidebarlinkcolor }};
+}
+
+div.sphinxsidebar input {
+ border: 1px solid {{ theme_sidebarlinkcolor }};
+ font-family: sans-serif;
+ font-size: 1em;
+}
+
+{%- if theme_collapsiblesidebar|tobool %}
+/* for collapsible sidebar */
+div#sidebarbutton {
+ background-color: {{ theme_sidebarbtncolor }};
+}
+{%- endif %}
+
+div.headerfix :target {
+ /* compensate fixed header in link anchors */
+ padding-top: {{ theme_headerheight }};
+ margin-top: -{{ theme_headerheight }};
+}
+
+a {
+ color: {{ theme_linkcolor }};
+ text-decoration: none;
+}
+
+a:visited {
+ color: {{ theme_visitedlinkcolor }};
+ text-decoration: none;
+}
+
+a:hover {
+ text-decoration: underline;
+}
+
+{%- if theme_externalrefs|tobool %}
+a.external {
+ text-decoration: none;
+ border-bottom: 1px dashed {{ theme_linkcolor }};
+}
+
+a.external:hover {
+ text-decoration: none;
+ border-bottom: none;
+}
+
+a.external:visited {
+ text-decoration: none;
+ border-bottom: 1px dashed {{ theme_visitedlinkcolor }};
+}
+{%- endif %}
+
+div.body h1,
+div.body h2,
+div.body h3,
+div.body h4,
+div.body h5,
+div.body h6 {
+ font-family: {{ theme_headfont }};
+ background-color: {{ theme_headbgcolor }};
+ font-weight: normal;
+ color: {{ theme_headtextcolor }};
+ border-bottom: 1px solid #ccc;
+ margin: 20px -20px 10px -20px;
+ padding: 3px 0 3px 10px;
+}
+
+div.body h1 { margin-top: 0; font-size: 200%; }
+div.body h2 { font-size: 160%; }
+div.body h3 { font-size: 140%; }
+div.body h4 { font-size: 120%; }
+div.body h5 { font-size: 110%; }
+div.body h6 { font-size: 100%; }
+
+a.headerlink {
+ color: {{ theme_headlinkcolor }};
+ font-size: 0.8em;
+ padding: 0 4px 0 4px;
+ text-decoration: none;
+}
+
+a.headerlink:hover {
+ background-color: {{ theme_headlinkcolor }};
+ color: white;
+}
+
+div.body p, div.body dd, div.body li {
+ text-align: justify;
+ line-height: 130%;
+}
+
+div.admonition p.admonition-title + p {
+ display: inline;
+}
+
+div.admonition p {
+ margin-bottom: 5px;
+}
+
+div.admonition pre {
+ margin-bottom: 5px;
+}
+
+div.admonition ul, div.admonition ol {
+ margin-bottom: 5px;
+}
+
+div.note {
+ background-color: #eee;
+ border: 1px solid #ccc;
+}
+
+div.seealso {
+ background-color: #ffc;
+ border: 1px solid #ff6;
+}
+
+div.topic {
+ background-color: #eee;
+}
+
+div.warning {
+ background-color: #ffe4e4;
+ border: 1px solid #f66;
+}
+
+p.admonition-title {
+ display: inline;
+}
+
+p.admonition-title:after {
+ content: ":";
+}
+
+pre {
+ padding: 5px;
+ background-color: {{ theme_codebgcolor }};
+ color: {{ theme_codetextcolor }};
+ line-height: 120%;
+ border: 1px solid #ac9;
+ border-left: none;
+ border-right: none;
+}
+
+tt {
+ background-color: #ecf0f3;
+ padding: 0 1px 0 1px;
+ font-size: 0.95em;
+}
+
+th {
+ background-color: #ede;
+}
+
+.warning tt {
+ background: #efc2c2;
+}
+
+.note tt {
+ background: #d6d6d6;
+}
+
+.viewcode-back {
+ font-family: {{ theme_bodyfont }};
+}
+
+div.viewcode-block:target {
+ background-color: #f4debf;
+ border-top: 1px solid #ac9;
+ border-bottom: 1px solid #ac9;
+}
+
+/* Added styles for TurboGears */
+
+div#the-turbogears-documentation h1 {
+ text-align: center;
+}
+
+div#the-turbogears-documentation h1 {
+ text-align: center;
+}
+
+div#the-turbogears-documentation table.docutils {
+ margin: 30px auto;
+ border: none !important;
+ border-collapse: separate;
+ width: 720;
+}
+
+div#the-turbogears-documentation table.docutils td {
+ border: none !important;
+ width: 33%;
+}
+
+div.part-beginner a, div.part-tutorials a, div.part-extending a,
+div.part-gears a, div.part-recipes a, div.part-reference a {
+ display: block;
+ font-size: 125%;
+ width: 112px;
+ height: 128px;
+ padding: 20px 4px 4px 140px;
+ margin: 4px auto;
+ background-repeat: no-repeat;
+}
+
+div.part-beginner a {
+ background-image: url(icons/beginner.png);
+}
+
+div.part-tutorials a {
+ background-image: url(icons/tutorials.png);
+}
+
+div.part-extending a {
+ background-image: url(icons/extending.png);
+}
+
+div.part-gears a {
+ background-image: url(icons/gears.png);
+}
+
+div.part-recipes a {
+ background-image: url(icons/recipes.png);
+}
+
+div.part-reference a {
+ background-image: url(icons/reference.png);
+}
+
+div.admonition {
+ margin: 5px;
+ padding: 0;
+}
+
+div.admonition p {
+ margin: 1em .5em 1em .5em;
+}
+
+div.admonition p.admonition-title {
+ margin: 0;
+ padding: .25em;
+}
+
+div.warning {
+ border: thin #ffc0c0 solid;
+}
+
+div.warning p.admonition-title {
+ color: red;
+ background-color: #fff0f0;
+}
+
+div.tip {
+ border: thin #c0ffc0 solid;
+}
+
+div.tip p.admonition-title {
+ color: green;
+ background-color: #f0fff0;
+}
+
+div.note {
+ border: thin #c0c0ff solid;
+}
+
+div.note p.admonition-title {
+ color: blue;
+ background-color: #f0f0ff;
+}
+
+div.hint {
+ border: thin #c0c0c0 solid;
+}
+
+div.hint p.admonition-title {
+ color: black;
+ background-color: #f0f0f0;
+}
+
+div.admonition-todo {
+ margin: 5px;
+ border: thin #f8f860 solid;
+}
+
+div.admonition-todo p.admonition-title {
+ color: black;
+ background-color: #f8f8c0;
+}
Deleted: trunk/api/sphinx/source/dabo_theme/static/default.css_t
Added: trunk/api/sphinx/source/dabo_theme/static/header.js
===================================================================
--- trunk/api/sphinx/source/dabo_theme/static/header.js
(rev 0)
+++ trunk/api/sphinx/source/dabo_theme/static/header.js 2011-04-09 15:54:44 UTC
(rev 81)
@@ -0,0 +1,50 @@
+/*
+ * header.js
+ * ~~~~~~~~~
+ *
+ * This script fixes a problem with internal links caused by a fixed header.
+ *
+ * Contributed for the TurboGears docs theme by Christoph Zwerschke.
+ *
+ * :copyright: Copyright 2010 by by Christoph Zwerschke.
+ * :license: BSD, see LICENSE for details.
+ *
+ */
+
+$(function() {
+ if ($('div.related').css('position') != 'fixed')
+ return;
+ var header_height = $('div.related').height();
+ if (!header_height)
+ return;
+ var current_hash = null;
+
+ function on_hash_change() {
+ if (current_hash.length < 2 || current_hash.substr(0, 1) != '#')
+ return;
+ hash_element = $(document.getElementById && 0 ?
+ document.getElementById(current_hash.substr(1)) :
+ current_hash.replace(/[;&,.+*~':"!\^$\[\]()=>|\/@\\]/g,'\\$&'));
+ if (!hash_element.length)
+ return;
+ if (hash_element.offset().top - $(window).scrollTop() < header_height)
+ window.scrollBy(0, -header_height);
+ }
+
+ function check_hash_change() {
+ if (document.location.hash != current_hash) {
+ current_hash = document.location.hash;
+ if (current_hash)
+ window.setTimeout(on_hash_change, 100);
+ }
+ }
+
+ check_hash_change();
+ if ('onhashchange' in window)
+ $(window).bind('hashchange', check_hash_change);
+ else
+ $(window).scroll(check_hash_change);
+
+ /* remove CSS trick for fixing the header problem */
+ $('div.headerfix').removeClass('headerfix');
+});
Modified: trunk/api/sphinx/source/dabo_theme/static/sidebar.js
===================================================================
--- trunk/api/sphinx/source/dabo_theme/static/sidebar.js 2011-04-08
10:48:25 UTC (rev 80)
+++ trunk/api/sphinx/source/dabo_theme/static/sidebar.js 2011-04-09
15:54:44 UTC (rev 81)
@@ -2,147 +2,212 @@
* sidebar.js
* ~~~~~~~~~~
*
- * This script makes the Sphinx sidebar collapsible.
+ * This script makes the Sphinx sidebar collapsible and moveable.
*
- * .sphinxsidebar contains .sphi
(11018 bytes were truncated as it was too long for the email (max 40000 bytes.)
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]