summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2021-02-03 10:24:09 -0700
committerGedare Bloom <gedare@rtems.org>2021-02-18 13:03:34 -0700
commit4563bb6a8b5622b8502437929f6fde223d483c0c (patch)
tree8b073511a5c40638f2c37e221a46d3e125475066 /common
parentc-user: Generate clock manager documentation (diff)
downloadrtems-docs-4563bb6a8b5622b8502437929f6fde223d483c0c.tar.bz2
common: use bibtex_bibfiles for newer bibtex
Closes #4229.
Diffstat (limited to 'common')
-rw-r--r--common/conf.py2
-rw-r--r--common/waf.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/common/conf.py b/common/conf.py
index 8fb06db..a652e2a 100644
--- a/common/conf.py
+++ b/common/conf.py
@@ -12,6 +12,8 @@ extensions = [
"rtemsdomain",
]
+bibtex_bibfiles = ['../common/refs.bib']
+
extlinks = {'release_path': ('https://ftp.rtems.org/pub/rtems/releases', None) }
# Add any paths that contain templates here, relative to this directory.
diff --git a/common/waf.py b/common/waf.py
index 7027eb6..2610235 100644
--- a/common/waf.py
+++ b/common/waf.py
@@ -182,12 +182,15 @@ def check_sphinx_extension(ctx, extension):
rst_node = bld.srcnode.make_node('testbuild/contents.rst')
rst_node.parent.mkdir()
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)
ctx.start_msg("Checking for '%s'" % (extension))
try:
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,
env = ctx.env)
except ctx.errors.ConfigurationError: