mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add The Wine Cellar Book.
This commit is contained in:
parent
b8c7b107e3
commit
678faca6ce
@ -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__))
|
||||
|
@ -55,7 +55,6 @@ class Builder(object):
|
||||
self.init()
|
||||
|
||||
# helper methods
|
||||
|
||||
def init(self):
|
||||
"""
|
||||
Load necessary templates and perform initialization. The default
|
||||
|
@ -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
|
||||
|
@ -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, []
|
||||
|
Loading…
Reference in New Issue
Block a user