[autohelp] config-ref-rst moves to config-reference
Update the default paths to make the scripts work after the config-ref publication. Implements: blueprint config-ref-rst Change-Id: I55534d08b10af4fb44a7dd22718ae22e44708559
This commit is contained in:
parent
ffa5109510
commit
658c74dd7e
@ -397,7 +397,7 @@ def write_files(package_name, options, target, output_format):
|
|||||||
"""
|
"""
|
||||||
if not target:
|
if not target:
|
||||||
if output_format == 'rst':
|
if output_format == 'rst':
|
||||||
target = '../../doc/config-ref-rst/source/tables'
|
target = '../../doc/config-reference/source/tables'
|
||||||
else:
|
else:
|
||||||
target = '../../doc/common/tables/'
|
target = '../../doc/common/tables/'
|
||||||
options_by_cat = _get_options_by_cat(package_name)
|
options_by_cat = _get_options_by_cat(package_name)
|
||||||
|
@ -202,7 +202,7 @@ def write_files(options, manuals_repo, output_format):
|
|||||||
tgt = (manuals_repo + '/doc/common/tables/' + 'swift-' +
|
tgt = (manuals_repo + '/doc/common/tables/' + 'swift-' +
|
||||||
sample_filename + '-' + section + '.xml')
|
sample_filename + '-' + section + '.xml')
|
||||||
else:
|
else:
|
||||||
tgt = (manuals_repo + '/doc/config-ref-rst/source/tables/' +
|
tgt = (manuals_repo + '/doc/config-reference/source/tables/' +
|
||||||
'swift-' + sample_filename + '-' + section + '.rst')
|
'swift-' + sample_filename + '-' + section + '.rst')
|
||||||
|
|
||||||
with open(tgt, 'w') as fd:
|
with open(tgt, 'w') as fd:
|
||||||
@ -219,7 +219,7 @@ def read_options(swift_repo, manuals_repo, read_from, verbose):
|
|||||||
if read_from == 'rst':
|
if read_from == 'rst':
|
||||||
options = get_existing_options_from_rst(
|
options = get_existing_options_from_rst(
|
||||||
glob.glob(manuals_repo +
|
glob.glob(manuals_repo +
|
||||||
'/doc/config-ref-rst/source/tables/swift*rst'))
|
'/doc/config-reference/source/tables/swift*rst'))
|
||||||
else:
|
else:
|
||||||
options = get_existing_options(
|
options = get_existing_options(
|
||||||
glob.glob(manuals_repo + '/doc/common/tables/swift*xml'))
|
glob.glob(manuals_repo + '/doc/common/tables/swift*xml'))
|
||||||
|
Loading…
Reference in New Issue
Block a user