robotframework-libtoc 1.2.6__tar.gz → 1.2.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: robotframework-libtoc
3
- Version: 1.2.6
3
+ Version: 1.2.8
4
4
  Summary: Docs and TOC generator for Robot Framework resources and libs
5
5
  Home-page: https://github.com/amochin/robotframework-libtoc
6
6
  License: Apache-2.0
@@ -75,6 +75,7 @@ pip install robotframework-libtoc
75
75
  - `--toc_file`
76
76
  - `--toc_template`
77
77
  - `--homepage_template`
78
+ - `-P, --pythonpath`
78
79
 
79
80
  Examples:
80
81
  ```shell
@@ -91,6 +92,9 @@ The default HTML template files are located in the python installation directory
91
92
  It's also possible to provide custom HTML template files using the `--toc_template` and `--homepage_template` options.
92
93
 
93
94
  ## How to set the Python Path
94
- In case you need to extend the list of paths where the libraries are searched during the docs generation,
95
- you can set the **PYTHONPATH environment variable** - see more in [Robot Framework User Guide](http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#pythonpath).
95
+ There are two ways to extend the list of paths where the libraries are searched for:
96
+ 1. Using the `--pythonpath` option
97
+ 2. Set the **PYTHONPATH** environment variable
98
+
99
+ See more in [Robot Framework User Guide](http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#pythonpath).
96
100
 
@@ -57,6 +57,7 @@ pip install robotframework-libtoc
57
57
  - `--toc_file`
58
58
  - `--toc_template`
59
59
  - `--homepage_template`
60
+ - `-P, --pythonpath`
60
61
 
61
62
  Examples:
62
63
  ```shell
@@ -73,5 +74,8 @@ The default HTML template files are located in the python installation directory
73
74
  It's also possible to provide custom HTML template files using the `--toc_template` and `--homepage_template` options.
74
75
 
75
76
  ## How to set the Python Path
76
- In case you need to extend the list of paths where the libraries are searched during the docs generation,
77
- you can set the **PYTHONPATH environment variable** - see more in [Robot Framework User Guide](http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#pythonpath).
77
+ There are two ways to extend the list of paths where the libraries are searched for:
78
+ 1. Using the `--pythonpath` option
79
+ 2. Set the **PYTHONPATH** environment variable
80
+
81
+ See more in [Robot Framework User Guide](http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#pythonpath).
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "robotframework-libtoc"
3
- version = "1.2.6"
3
+ version = "1.2.8"
4
4
  description = "Docs and TOC generator for Robot Framework resources and libs"
5
5
  authors = ["Andre Mochinin"]
6
6
  license = "Apache-2.0"
@@ -99,7 +99,7 @@ def add_files_from_folder(folder, base_dir_path, root=True):
99
99
  for item in os.listdir(folder):
100
100
  item_path = os.path.abspath(os.path.join(folder, item))
101
101
  if item.endswith(".html"):
102
- name_without_ext = item.split('.')[0]
102
+ name_without_ext = os.path.splitext(item)[0]
103
103
  result_str += """<a class="link_not_selected" href="{}" target="targetFrame">{}</a>
104
104
  """.format(os.path.relpath(item_path, base_dir_path), name_without_ext)
105
105
  else:
@@ -248,4 +248,4 @@ def main():
248
248
  print("")
249
249
 
250
250
  if __name__ == "__main__":
251
- main()
251
+ main()