From 658c74dd7e41c46cfa969558fce701bcf6ea13f9 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sun, 20 Dec 2015 20:54:32 +0100 Subject: [PATCH] [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 --- autogenerate_config_docs/autohelp.py | 2 +- autogenerate_config_docs/extract_swift_flags.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autogenerate_config_docs/autohelp.py b/autogenerate_config_docs/autohelp.py index 008ac565..89a79488 100755 --- a/autogenerate_config_docs/autohelp.py +++ b/autogenerate_config_docs/autohelp.py @@ -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) diff --git a/autogenerate_config_docs/extract_swift_flags.py b/autogenerate_config_docs/extract_swift_flags.py index 9c4f1245..2a8c87b7 100644 --- a/autogenerate_config_docs/extract_swift_flags.py +++ b/autogenerate_config_docs/extract_swift_flags.py @@ -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'))