Add The Wine Cellar Book.

This commit is contained in:
Georg Brandl 2009-08-04 23:37:48 +02:00
parent b8c7b107e3
commit 678faca6ce
4 changed files with 3 additions and 3 deletions

View File

@ -12,8 +12,7 @@
import sys
from os import path
__revision__ = '$Revision$'
__version__ = '1.0'
__version__ = '1.0pre'
__released__ = '1.0 (hg)'
package_dir = path.abspath(path.dirname(__file__))

View File

@ -55,7 +55,6 @@ class Builder(object):
self.init()
# helper methods
def init(self):
"""
Load necessary templates and perform initialization. The default

View File

@ -49,6 +49,7 @@ except ImportError:
from docutils import nodes
from docutils.parsers.rst import directives
# XXX needs to be adapted
from sphinx.roles import xfileref_role
from sphinx.ext.graphviz import render_dot_html, render_dot_latex
from sphinx.util.compat import Directive

View File

@ -54,6 +54,7 @@ def indexmarkup_role(typ, rawtext, etext, lineno, inliner,
indexnode['entries'] = [('single', text, targetid, text),
('single', _('environment variable; %s') % text,
targetid, text)]
# XXX needs to be adapted
xref_nodes = xfileref_role(typ, rawtext, etext, lineno, inliner,
options, content)[0]
return [indexnode, targetnode] + xref_nodes, []