merge with 0.6

This commit is contained in:
Georg Brandl
2010-01-02 00:49:51 +01:00
11 changed files with 66 additions and 8 deletions

View File

@@ -49,6 +49,10 @@ Release 1.0 (in development)
Release 0.6.4 (in development) Release 0.6.4 (in development)
============================== ==============================
* #293: line blocks are styled properly in HTML output.
* #285: make the ``locale_dirs`` config value work again.
* #303: ``html_context`` values given on the command line via ``-A`` * #303: ``html_context`` values given on the command line via ``-A``
should not override other values given in conf.py. should not override other values given in conf.py.

View File

@@ -6,9 +6,11 @@ experimenting with using it for their documentation. If you like to be
included, please mail to `the Google group included, please mail to `the Google group
<http://groups.google.com/group/sphinx-dev>`_. <http://groups.google.com/group/sphinx-dev>`_.
* Advanced Generic Widgets: http://xoomer.virgilio.it/infinity77/AGW_Docs/index.html
* Applied Mathematics at the Stellenbosch University: http://dip.sun.ac.za/ * Applied Mathematics at the Stellenbosch University: http://dip.sun.ac.za/
* APSW: http://apsw.googlecode.com/svn/publish/index.html * APSW: http://apsw.googlecode.com/svn/publish/index.html
* ASE: https://wiki.fysik.dtu.dk/ase/ * ASE: https://wiki.fysik.dtu.dk/ase/
* Blender: http://www.blender.org/documentation/250PythonDoc/
* boostmpi: http://documen.tician.de/boostmpi/ * boostmpi: http://documen.tician.de/boostmpi/
* Calibre: http://calibre.kovidgoyal.net/user_manual/ * Calibre: http://calibre.kovidgoyal.net/user_manual/
* Chaco: http://code.enthought.com/projects/chaco/docs/html/ * Chaco: http://code.enthought.com/projects/chaco/docs/html/
@@ -86,6 +88,7 @@ included, please mail to `the Google group
* SymPy: http://docs.sympy.org/ * SymPy: http://docs.sympy.org/
* tinyTiM: http://tinytim.sourceforge.net/docs/2.0/ * tinyTiM: http://tinytim.sourceforge.net/docs/2.0/
* The Wine Cellar Book: http://www.thewinecellarbook.com/doc/en/ * The Wine Cellar Book: http://www.thewinecellarbook.com/doc/en/
* Total Open Station: http://tops.berlios.de/
* TurboGears: http://turbogears.org/2.0/docs/ * TurboGears: http://turbogears.org/2.0/docs/
* VOR: http://www.vor-cycling.be/ * VOR: http://www.vor-cycling.be/
* WebFaction: http://docs.webfaction.com/ * WebFaction: http://docs.webfaction.com/
@@ -94,3 +97,5 @@ included, please mail to `the Google group
* WTForms: http://wtforms.simplecodes.com/docs/ * WTForms: http://wtforms.simplecodes.com/docs/
* Zope 3: e.g. http://docs.carduner.net/z3c-tutorial/ * Zope 3: e.g. http://docs.carduner.net/z3c-tutorial/
* zc.async: http://packages.python.org/zc.async/1.5.0/ * zc.async: http://packages.python.org/zc.async/1.5.0/
.. XXX maybe regroup by interesting features used?

View File

@@ -191,10 +191,10 @@ value:
JSMath. There is no default. JSMath. There is no default.
The path can be absolute or relative; if it is relative, it is relative to The path can be absolute or relative; if it is relative, it is relative to
the root of the built docs. the ``_static`` directory of the built docs.
For example, if you put JSMath into the static path of the Sphinx docs, this For example, if you put JSMath into the static path of the Sphinx docs, this
value would be ``_static/jsMath/easy/load.js``. If you host more than one value would be ``jsMath/easy/load.js``. If you host more than one
Sphinx documentation set on one server, it is advisable to install jsMath in Sphinx documentation set on one server, it is advisable to install jsMath in
a shared location. a shared location.

View File

@@ -61,8 +61,8 @@ There are several extensions that are not (yet) maintained in the Sphinx
distribution. The `Wiki at BitBucket`_ maintains a list of those. distribution. The `Wiki at BitBucket`_ maintains a list of those.
If you write an extension that you think others will find useful, please write If you write an extension that you think others will find useful, please write
to the project mailing list (sphinx-dev@googlegroups.com) and we'll find the to the project mailing list (`join here <http://groups.google.com/group/sphinx-dev>`_)
proper way of including or hosting it for the public. and we'll find the proper way of including or hosting it for the public.
.. _Wiki at BitBucket: http://www.bitbucket.org/birkenfeld/sphinx/wiki/Home .. _Wiki at BitBucket: http://www.bitbucket.org/birkenfeld/sphinx/wiki/Home

View File

@@ -186,7 +186,7 @@ class Builder(object):
if self.translator is None: if self.translator is None:
self.translator = trans self.translator = trans
else: else:
self.translator._catalog.update(trans.catalog) self.translator._catalog.update(trans._catalog)
except Exception: except Exception:
# Language couldn't be found in the specified path # Language couldn't be found in the specified path
pass pass

View File

@@ -664,7 +664,8 @@ class StandaloneHTMLBuilder(Builder):
baseuri=self.get_target_uri(pagename)): baseuri=self.get_target_uri(pagename)):
if not resource: if not resource:
otheruri = self.get_target_uri(otheruri) otheruri = self.get_target_uri(otheruri)
return relative_uri(baseuri, otheruri) uri = relative_uri(baseuri, otheruri) or '#'
return uri
ctx['pathto'] = pathto ctx['pathto'] = pathto
ctx['hasdoc'] = lambda name: name in self.env.all_docs ctx['hasdoc'] = lambda name: name in self.env.all_docs
ctx['customsidebar'] = self.config.html_sidebars.get(pagename) ctx['customsidebar'] = self.config.html_sidebars.get(pagename)

View File

@@ -931,7 +931,7 @@ class BuildEnvironment:
"""Return a TOC nodetree -- for use on the same page only!""" """Return a TOC nodetree -- for use on the same page only!"""
toc = self.tocs[docname].deepcopy() toc = self.tocs[docname].deepcopy()
for node in toc.traverse(nodes.reference): for node in toc.traverse(nodes.reference):
node['refuri'] = node['anchorname'] node['refuri'] = node['anchorname'] or '#'
return toc return toc
def get_toctree_for(self, docname, builder, collapse): def get_toctree_for(self, docname, builder, collapse):

View File

@@ -44,6 +44,18 @@ a {
float: right; float: right;
} }
.line-block {
display: block;
margin-top: 1em;
margin-bottom: 1em;
}
.line-block .line-block {
margin-top: 0;
margin-bottom: 0;
margin-left: 1.5em;
}
h1, h2, h3, h4 { h1, h2, h3, h4 {
font-family: {{ theme_headerfont }}; font-family: {{ theme_headerfont }};
font-weight: normal; font-weight: normal;
@@ -257,7 +269,7 @@ div.footer .left {
} }
/* Styles copied form basic theme */ /* Styles copied from basic theme */
/* -- search page ----------------------------------------------------------- */ /* -- search page ----------------------------------------------------------- */

View File

@@ -332,6 +332,18 @@ dl.glossary dt {
background-color: #ffa background-color: #ffa
} }
.line-block {
display: block;
margin-top: 1em;
margin-bottom: 1em;
}
.line-block .line-block {
margin-top: 0;
margin-bottom: 0;
margin-left: 1.5em;
}
/* -- code displays --------------------------------------------------------- */ /* -- code displays --------------------------------------------------------- */
pre { pre {

View File

@@ -396,3 +396,15 @@ span.highlight {
#toc ul li { #toc ul li {
margin: 2px 0 0 0; margin: 2px 0 0 0;
} }
.line-block {
display: block;
margin-top: 1em;
margin-bottom: 1em;
}
.line-block .line-block {
margin-top: 0;
margin-bottom: 0;
margin-left: 1.5em;
}

View File

@@ -636,6 +636,18 @@ tt.xref, a tt {
.footnote:target { background-color: #ffa } .footnote:target { background-color: #ffa }
.line-block {
display: block;
margin-top: 1em;
margin-bottom: 1em;
}
.line-block .line-block {
margin-top: 0;
margin-bottom: 0;
margin-left: 1.5em;
}
h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt { h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
background-color: transparent; background-color: transparent;
} }