mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
scripts: check-html-references: Rename --prefix to --webroot and make it mandatory
Force users to pass the path to the root of the webpage the script should check. The script lives in a different subdirectory so the default of the current directory doesn't make much sense. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
65edcfd68f
commit
70211d7368
@ -359,7 +359,7 @@ test(
|
||||
python3_prog,
|
||||
args: [
|
||||
check_html_references_prog.full_path(),
|
||||
'--prefix',
|
||||
'--webroot',
|
||||
meson.project_build_root() / 'docs'
|
||||
],
|
||||
env: runutf8,
|
||||
|
@ -127,14 +127,14 @@ def check_targets(targets, anchors):
|
||||
|
||||
|
||||
parser = argparse.ArgumentParser(description='HTML reference checker')
|
||||
parser.add_argument('--prefix', default='.',
|
||||
help='build tree prefix')
|
||||
parser.add_argument('--webroot', required=True,
|
||||
help='path to the web root')
|
||||
parser.add_argument('--external', action="store_true",
|
||||
help='print external references instead')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
files = get_file_list(args.prefix)
|
||||
files = get_file_list(args.webroot)
|
||||
|
||||
targets, anchors = process_all(files)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user