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
|
import sys
|
||||||
from os import path
|
from os import path
|
||||||
|
|
||||||
__revision__ = '$Revision$'
|
__version__ = '1.0pre'
|
||||||
__version__ = '1.0'
|
|
||||||
__released__ = '1.0 (hg)'
|
__released__ = '1.0 (hg)'
|
||||||
|
|
||||||
package_dir = path.abspath(path.dirname(__file__))
|
package_dir = path.abspath(path.dirname(__file__))
|
||||||
|
@ -55,7 +55,6 @@ class Builder(object):
|
|||||||
self.init()
|
self.init()
|
||||||
|
|
||||||
# helper methods
|
# helper methods
|
||||||
|
|
||||||
def init(self):
|
def init(self):
|
||||||
"""
|
"""
|
||||||
Load necessary templates and perform initialization. The default
|
Load necessary templates and perform initialization. The default
|
||||||
|
@ -49,6 +49,7 @@ except ImportError:
|
|||||||
from docutils import nodes
|
from docutils import nodes
|
||||||
from docutils.parsers.rst import directives
|
from docutils.parsers.rst import directives
|
||||||
|
|
||||||
|
# XXX needs to be adapted
|
||||||
from sphinx.roles import xfileref_role
|
from sphinx.roles import xfileref_role
|
||||||
from sphinx.ext.graphviz import render_dot_html, render_dot_latex
|
from sphinx.ext.graphviz import render_dot_html, render_dot_latex
|
||||||
from sphinx.util.compat import Directive
|
from sphinx.util.compat import Directive
|
||||||
|
@ -54,6 +54,7 @@ def indexmarkup_role(typ, rawtext, etext, lineno, inliner,
|
|||||||
indexnode['entries'] = [('single', text, targetid, text),
|
indexnode['entries'] = [('single', text, targetid, text),
|
||||||
('single', _('environment variable; %s') % text,
|
('single', _('environment variable; %s') % text,
|
||||||
targetid, text)]
|
targetid, text)]
|
||||||
|
# XXX needs to be adapted
|
||||||
xref_nodes = xfileref_role(typ, rawtext, etext, lineno, inliner,
|
xref_nodes = xfileref_role(typ, rawtext, etext, lineno, inliner,
|
||||||
options, content)[0]
|
options, content)[0]
|
||||||
return [indexnode, targetnode] + xref_nodes, []
|
return [indexnode, targetnode] + xref_nodes, []
|
||||||
|
Loading…
Reference in New Issue
Block a user