Diff of /source/conf.py [2fe52c] .. [2fb3c2]  Maximize  Restore

  Switch to unified view

a/source/conf.py b/source/conf.py
...
...
49
# The full version, including alpha/beta/rc tags.
49
# The full version, including alpha/beta/rc tags.
50
release = version
50
release = version
51
51
52
# The language for content autogenerated by Sphinx. Refer to documentation
52
# The language for content autogenerated by Sphinx. Refer to documentation
53
# for a list of supported languages.
53
# for a list of supported languages.
54
#language = None
54
language = 'en'
55
55
56
# There are two options for replacing |today|: either, you set today to some
56
# There are two options for replacing |today|: either, you set today to some
57
# non-false value, then it is used:
57
# non-false value, then it is used:
58
#today = ''
58
#today = ''
59
# Else, today_fmt is used as the format for a strftime call.
59
# Else, today_fmt is used as the format for a strftime call.
...
...
203
#latex_appendices = []
203
#latex_appendices = []
204
204
205
# If false, no module index is generated.
205
# If false, no module index is generated.
206
latex_use_modindex = False
206
latex_use_modindex = False
207
207
208
sys.path.append('.')
209
208
from sphinx import addnodes
210
from sphinx import addnodes
211
from docutils.parsers import rst
212
from docutils.parsers.rst import roles
209
import docutils.nodes
213
import docutils.nodes
214
from util import setup as util
210
215
211
def parse_placeholder(env, sig, signode):
216
def parse_placeholder(env, sig, signode):
212
  first = sig[0]
217
  first = sig[0]
213
  arg = sig
218
  arg = sig
214
  
219
  
...
...
239
    sig = option
244
    sig = option
240
  else:
245
  else:
241
    signode += docutils.nodes.emphasis(sig, sig)
246
    signode += docutils.nodes.emphasis(sig, sig)
242
247
243
  return sig
248
  return sig
249
244
250
245
def setup(app):
251
def setup(app):
246
  app.add_crossref_type('tab', 'tab',
252
  app.add_crossref_type('tab', 'tab',
247
      ref_nodeclass = docutils.nodes.emphasis)
253
      ref_nodeclass = docutils.nodes.emphasis)
248
  app.add_crossref_type('dialog', 'dialog', 
254
  app.add_crossref_type('dialog', 'dialog', 
...
...
251
  app.add_generic_role('control', docutils.nodes.emphasis)
257
  app.add_generic_role('control', docutils.nodes.emphasis)
252
  app.add_object_type('cmd', 'cmd', 'pair: %s; command-line argument',
258
  app.add_object_type('cmd', 'cmd', 'pair: %s; command-line argument',
253
      parse_cmd)
259
      parse_cmd)
254
  app.add_object_type('placeholder', 'placeholder', 'pair: %s; placeholder',
260
  app.add_object_type('placeholder', 'placeholder', 'pair: %s; placeholder',
255
      parse_placeholder)
261
      parse_placeholder)
256
262
  util.setup(app)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks