aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2017-01-25 12:20:31 +0100
committerPeter Mikus <pmikus@cisco.com>2017-01-26 07:27:58 +0000
commita9da1b4ca1e8cccef22a6e2b8bfa859a9ed04555 (patch)
tree25b8a3f11af43f57ecb8eaaf10d37dc602e9579e /resources
parented58151554f9dafd7bb54ad54ef4062c27ec433c (diff)
CSIT doc gen: remove "package" and change "module" to "suite"
Change-Id: I36664eb4c1ade7c2c96df457ed939f8681ba2dce Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources')
-rwxr-xr-xresources/tools/doc_gen/gen_rst.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/resources/tools/doc_gen/gen_rst.py b/resources/tools/doc_gen/gen_rst.py
index e3356f5b73..c79ffc07bb 100755
--- a/resources/tools/doc_gen/gen_rst.py
+++ b/resources/tools/doc_gen/gen_rst.py
@@ -163,7 +163,7 @@ def write_module_title(fh, module_name):
:type fh: file
:type module_name: str
"""
- title = "{} module".format(module_name)
+ title = "{} suite".format(module_name)
fh.write("\n{}\n{}\n".format(title, '-' * len(title)))
@@ -190,8 +190,8 @@ def generate_py_rst_files():
with open(full_path, mode='a') as fh:
if getsize(full_path) == 0:
package = file_name.split('.')[-2]
- fh.write("{} package\n".format(package))
- fh.write('=' * len("{} package".format(package)))
+ fh.write("{}\n".format(package))
+ fh.write('=' * len("{}".format(package)))
module_path = file_name.split('.')[:-1]
if dirs:
write_toc(fh, module_path, dirs)
@@ -222,8 +222,8 @@ def generate_rf_rst_files(file_names, incl_tests=True, incl_keywords=True):
with open(full_path, mode='a') as fh:
if getsize(full_path) == 0:
package = file_name.split('.')[-2]
- fh.write("{} package\n".format(package))
- fh.write('=' * len("{} package".format(package)) + '\n')
+ fh.write("{}\n".format(package))
+ fh.write('=' * len("{}".format(package)) + '\n')
module_path = file_name.split('.')[:-1]
if dirs:
write_toc(fh, module_path, dirs)