robotframework-libtoc 1.4.0__tar.gz → 1.4.2__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.
- {robotframework_libtoc-1.4.0 → robotframework_libtoc-1.4.2}/PKG-INFO +18 -11
- {robotframework_libtoc-1.4.0 → robotframework_libtoc-1.4.2}/README.md +17 -10
- {robotframework_libtoc-1.4.0 → robotframework_libtoc-1.4.2}/pyproject.toml +1 -1
- {robotframework_libtoc-1.4.0 → robotframework_libtoc-1.4.2}/robotframework_libtoc/toc_template.html +1 -0
- {robotframework_libtoc-1.4.0 → robotframework_libtoc-1.4.2}/LICENSE +0 -0
- {robotframework_libtoc-1.4.0 → robotframework_libtoc-1.4.2}/robotframework_libtoc/__init__.py +0 -0
- {robotframework_libtoc-1.4.0 → robotframework_libtoc-1.4.2}/robotframework_libtoc/homepage_template.html +0 -0
- {robotframework_libtoc-1.4.0 → robotframework_libtoc-1.4.2}/robotframework_libtoc/libtoc.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: robotframework-libtoc
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.2
|
|
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
|
|
@@ -25,7 +25,7 @@ This tool generates docs using Robot Framework [Libdoc](https://robotframework.o
|
|
|
25
25
|
|
|
26
26
|
## Why use it
|
|
27
27
|
The Robot Framework Libdoc tool normally generates a HTML file for a single keyword library or a resource file.
|
|
28
|
-
If you have several keyword libraries, you just get several separate HTML files.
|
|
28
|
+
If you have several keyword libraries or resources, you just get several separate HTML files.
|
|
29
29
|
|
|
30
30
|
This tool collects separate keyword documentation files in one place and creates a TOC (table of contents) page
|
|
31
31
|
with links to these files.
|
|
@@ -38,10 +38,13 @@ in the intranet or uploaded as CI artifact - so everybody can easily access the
|
|
|
38
38
|
## How it works
|
|
39
39
|
- The tool goes through the specified folders with RF resources and it's **direct** subfolders
|
|
40
40
|
- It looks for the **config files** named `.libtoc` which contain items you would like to create docs for:
|
|
41
|
-
1. Paths to resource files in [glob format](https://en.wikipedia.org/wiki/Glob_(programming))
|
|
42
|
-
2.
|
|
43
|
-
|
|
41
|
+
1. Paths to resource/lib files in [glob format](https://en.wikipedia.org/wiki/Glob_(programming))
|
|
42
|
+
2. RF libraries, installed or available in PYTHONPATH using the provided fully qualified name
|
|
43
|
+
> Librariy import params (if necessary) like described in [libdoc user guide](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#general-usage)
|
|
44
44
|
> Other libdoc CLI options (e.g. version or name of the output file) are not supported
|
|
45
|
+
3. Paths to resource/lib files in [glob format](https://en.wikipedia.org/wiki/Glob_(programming)) inside Python packages, loaded from the PYTHONPATH
|
|
46
|
+
> See more about bundling RF resources in Python packages in [RF User Guide](http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#taking-resource-files-into-use)
|
|
47
|
+
|
|
45
48
|
- Then it generates the docs using `libdoc` - both for files paths, resolved from the glob patterns, and for the installed libraries. The created HTML files are placed in the **libtoc output_dir** - keeping the original subfolder structure of resources
|
|
46
49
|
- Finally it generates a **TOC (Table of Contents)** HTML page with links to all the generated HTML files.
|
|
47
50
|
The navigation tree structure in the TOC repeats the folder tree structure.
|
|
@@ -49,19 +52,23 @@ in the intranet or uploaded as CI artifact - so everybody can easily access the
|
|
|
49
52
|
```
|
|
50
53
|
[paths]
|
|
51
54
|
# Use glob patterns
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
[packages]
|
|
57
|
-
example_package:resources/**/*.resource
|
|
55
|
+
some-resources/**/*.robot
|
|
56
|
+
some-resources/**/*.resource
|
|
57
|
+
some-resources/**/*.py
|
|
58
58
|
|
|
59
59
|
[libs]
|
|
60
60
|
# Use RF library names with params - like for libdoc
|
|
61
61
|
SeleniumLibrary
|
|
62
62
|
Remote::http://10.0.0.42:8270
|
|
63
|
+
# Import a library from PYTHONPATH using fully qualified name
|
|
64
|
+
some-libs.mylib.mypy
|
|
63
65
|
# You can use environment variables in lib params
|
|
64
66
|
SomeLib::$some_env_var/somepath
|
|
67
|
+
|
|
68
|
+
[packages]
|
|
69
|
+
# Use package name in python path and glob patterns separated by :
|
|
70
|
+
some-package:resources/**/*.resource
|
|
71
|
+
some-package:libs/**/*.py
|
|
65
72
|
```
|
|
66
73
|
> The config file must contain at least one of the sections - `[paths]`, `[libs]`, `[packages]`
|
|
67
74
|
## How to install it
|
|
@@ -5,7 +5,7 @@ This tool generates docs using Robot Framework [Libdoc](https://robotframework.o
|
|
|
5
5
|
|
|
6
6
|
## Why use it
|
|
7
7
|
The Robot Framework Libdoc tool normally generates a HTML file for a single keyword library or a resource file.
|
|
8
|
-
If you have several keyword libraries, you just get several separate HTML files.
|
|
8
|
+
If you have several keyword libraries or resources, you just get several separate HTML files.
|
|
9
9
|
|
|
10
10
|
This tool collects separate keyword documentation files in one place and creates a TOC (table of contents) page
|
|
11
11
|
with links to these files.
|
|
@@ -18,10 +18,13 @@ in the intranet or uploaded as CI artifact - so everybody can easily access the
|
|
|
18
18
|
## How it works
|
|
19
19
|
- The tool goes through the specified folders with RF resources and it's **direct** subfolders
|
|
20
20
|
- It looks for the **config files** named `.libtoc` which contain items you would like to create docs for:
|
|
21
|
-
1. Paths to resource files in [glob format](https://en.wikipedia.org/wiki/Glob_(programming))
|
|
22
|
-
2.
|
|
23
|
-
|
|
21
|
+
1. Paths to resource/lib files in [glob format](https://en.wikipedia.org/wiki/Glob_(programming))
|
|
22
|
+
2. RF libraries, installed or available in PYTHONPATH using the provided fully qualified name
|
|
23
|
+
> Librariy import params (if necessary) like described in [libdoc user guide](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#general-usage)
|
|
24
24
|
> Other libdoc CLI options (e.g. version or name of the output file) are not supported
|
|
25
|
+
3. Paths to resource/lib files in [glob format](https://en.wikipedia.org/wiki/Glob_(programming)) inside Python packages, loaded from the PYTHONPATH
|
|
26
|
+
> See more about bundling RF resources in Python packages in [RF User Guide](http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#taking-resource-files-into-use)
|
|
27
|
+
|
|
25
28
|
- Then it generates the docs using `libdoc` - both for files paths, resolved from the glob patterns, and for the installed libraries. The created HTML files are placed in the **libtoc output_dir** - keeping the original subfolder structure of resources
|
|
26
29
|
- Finally it generates a **TOC (Table of Contents)** HTML page with links to all the generated HTML files.
|
|
27
30
|
The navigation tree structure in the TOC repeats the folder tree structure.
|
|
@@ -29,19 +32,23 @@ in the intranet or uploaded as CI artifact - so everybody can easily access the
|
|
|
29
32
|
```
|
|
30
33
|
[paths]
|
|
31
34
|
# Use glob patterns
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
[packages]
|
|
37
|
-
example_package:resources/**/*.resource
|
|
35
|
+
some-resources/**/*.robot
|
|
36
|
+
some-resources/**/*.resource
|
|
37
|
+
some-resources/**/*.py
|
|
38
38
|
|
|
39
39
|
[libs]
|
|
40
40
|
# Use RF library names with params - like for libdoc
|
|
41
41
|
SeleniumLibrary
|
|
42
42
|
Remote::http://10.0.0.42:8270
|
|
43
|
+
# Import a library from PYTHONPATH using fully qualified name
|
|
44
|
+
some-libs.mylib.mypy
|
|
43
45
|
# You can use environment variables in lib params
|
|
44
46
|
SomeLib::$some_env_var/somepath
|
|
47
|
+
|
|
48
|
+
[packages]
|
|
49
|
+
# Use package name in python path and glob patterns separated by :
|
|
50
|
+
some-package:resources/**/*.resource
|
|
51
|
+
some-package:libs/**/*.py
|
|
45
52
|
```
|
|
46
53
|
> The config file must contain at least one of the sections - `[paths]`, `[libs]`, `[packages]`
|
|
47
54
|
## How to install it
|
|
File without changes
|
{robotframework_libtoc-1.4.0 → robotframework_libtoc-1.4.2}/robotframework_libtoc/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|