Merge "[Docs] Fix doc building idempotency"

This commit is contained in:
Zuul 2018-03-17 05:27:09 +00:00 committed by Gerrit Code Review
commit 916a98b69c
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ stg = imp.load_source(
'scenario_table_gen',
os.path.join(CONF_PATH, 'scenario_table_gen.py')
)
with open(TABLE_FILE, 'a+') as f:
with open(TABLE_FILE, 'w') as f:
f.write(stg.main())
# If extensions (or modules to document with autodoc) are in another directory,

View File

@ -41,7 +41,7 @@ def main():
for items in scenario_meta_data.values():
for item in items:
config_items.add(item['name'].split('.')[0])
config_items = list(config_items)
config_items = list(sorted(config_items))
for item in config_items:
HTML_TABLE += '<tr>'