[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:
Gauvain Pocentek 2015-12-20 20:54:32 +01:00
parent ffa5109510
commit 658c74dd7e
2 changed files with 3 additions and 3 deletions

View File

@ -397,7 +397,7 @@ def write_files(package_name, options, target, output_format):
"""
if not target:
if output_format == 'rst':
target = '../../doc/config-ref-rst/source/tables'
target = '../../doc/config-reference/source/tables'
else:
target = '../../doc/common/tables/'
options_by_cat = _get_options_by_cat(package_name)

View File

@ -202,7 +202,7 @@ def write_files(options, manuals_repo, output_format):
tgt = (manuals_repo + '/doc/common/tables/' + 'swift-' +
sample_filename + '-' + section + '.xml')
else:
tgt = (manuals_repo + '/doc/config-ref-rst/source/tables/' +
tgt = (manuals_repo + '/doc/config-reference/source/tables/' +
'swift-' + sample_filename + '-' + section + '.rst')
with open(tgt, 'w') as fd:
@ -219,7 +219,7 @@ def read_options(swift_repo, manuals_repo, read_from, verbose):
if read_from == 'rst':
options = get_existing_options_from_rst(
glob.glob(manuals_repo +
'/doc/config-ref-rst/source/tables/swift*rst'))
'/doc/config-reference/source/tables/swift*rst'))
else:
options = get_existing_options(
glob.glob(manuals_repo + '/doc/common/tables/swift*xml'))