mirror of
https://git.rtems.org/rtems-docs/
synced 2025-05-15 02:57:55 +08:00
parent
a60c5b4b3e
commit
4563bb6a8b
@ -12,6 +12,8 @@ extensions = [
|
|||||||
"rtemsdomain",
|
"rtemsdomain",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
bibtex_bibfiles = ['../common/refs.bib']
|
||||||
|
|
||||||
extlinks = {'release_path': ('https://ftp.rtems.org/pub/rtems/releases', None) }
|
extlinks = {'release_path': ('https://ftp.rtems.org/pub/rtems/releases', None) }
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
|
@ -182,12 +182,15 @@ def check_sphinx_extension(ctx, extension):
|
|||||||
rst_node = bld.srcnode.make_node('testbuild/contents.rst')
|
rst_node = bld.srcnode.make_node('testbuild/contents.rst')
|
||||||
rst_node.parent.mkdir()
|
rst_node.parent.mkdir()
|
||||||
rst_node.write('.. COMMENT test sphinx\n')
|
rst_node.write('.. COMMENT test sphinx\n')
|
||||||
|
bib_node = bld.srcnode.make_node('testbuild/refs.bib')
|
||||||
|
conf_node = bld.srcnode.make_node('testbuild/conf.py')
|
||||||
|
conf_node.write("bibtex_bibfiles = ['refs.bib']\n")
|
||||||
bld(rule = bld.kw['rule'], source = rst_node)
|
bld(rule = bld.kw['rule'], source = rst_node)
|
||||||
|
|
||||||
ctx.start_msg("Checking for '%s'" % (extension))
|
ctx.start_msg("Checking for '%s'" % (extension))
|
||||||
try:
|
try:
|
||||||
ctx.run_build(fragment = 'xx',
|
ctx.run_build(fragment = 'xx',
|
||||||
rule = "${BIN_SPHINX_BUILD} -b html -D extensions=%s -C . out" % (extension),
|
rule = "${BIN_SPHINX_BUILD} -b html -D extensions=%s -c . . out" % (extension),
|
||||||
build_fun = run_sphinx,
|
build_fun = run_sphinx,
|
||||||
env = ctx.env)
|
env = ctx.env)
|
||||||
except ctx.errors.ConfigurationError:
|
except ctx.errors.ConfigurationError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user