mirror of
https://git.rtems.org/rtems-docs/
synced 2025-07-23 06:52:36 +08:00
waf: Fix the sphinx verbose option.
This commit is contained in:
parent
c29f5bcbcf
commit
8f2a4f3959
@ -62,7 +62,7 @@ def check_sphinx_version(ctx, minver):
|
|||||||
return ver
|
return ver
|
||||||
|
|
||||||
def sphinx_verbose(ctx):
|
def sphinx_verbose(ctx):
|
||||||
return ctx.options.sphinx_verbose
|
return ' '.join(ctx.env.SPHINX_VERBOSE)
|
||||||
|
|
||||||
def cmd_configure(ctx):
|
def cmd_configure(ctx):
|
||||||
ctx.load('tex')
|
ctx.load('tex')
|
||||||
@ -75,9 +75,15 @@ def cmd_configure(ctx):
|
|||||||
|
|
||||||
ctx.start_msg("Checking if Sphinx is at least %s.%s" % sphinx_min_version)
|
ctx.start_msg("Checking if Sphinx is at least %s.%s" % sphinx_min_version)
|
||||||
ver = check_sphinx_version(ctx, sphinx_min_version)
|
ver = check_sphinx_version(ctx, sphinx_min_version)
|
||||||
|
|
||||||
ctx.end_msg("yes (%s)" % ".".join(map(str, ver)))
|
ctx.end_msg("yes (%s)" % ".".join(map(str, ver)))
|
||||||
|
|
||||||
|
ctx.start_msg("Sphinx Verbose: ")
|
||||||
|
if 'SPHINX_VERBOSE' not in ctx.env:
|
||||||
|
ctx.env.append_value('SPHINX_VERBOSE', ctx.options.sphinx_verbose)
|
||||||
|
level = sphinx_verbose(ctx)
|
||||||
|
if level == '-Q':
|
||||||
|
level = 'quiet'
|
||||||
|
ctx.end_msg(level)
|
||||||
|
|
||||||
def html_resources(ctx):
|
def html_resources(ctx):
|
||||||
for dir_name in ["_static", "_templates"]:
|
for dir_name in ["_static", "_templates"]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user