A simple and configurable generator for RobotFramework documentation
Project description
RF Documentations Indexer
Rfdocsindexer is a simple Python3 module to generate RobotFramework 4+ libraries documentation.
One can configure the tool from a simple TOML configuration file and run it from a console.
The tool then uses the RobotFramework Libdoc module to generate an HTML, XML, JSON or Libspec documentation for any RobotFramework keyword library.
An HTML index is also generated to centralize the generated documentations.
Installing the tool
Install from Pypi:
pip install rfdocsindexer
Configuring the tool
The tool can be configured with a config file in TOML format.
Example configuration file:
[rfdocsindexer]
library_paths = ["**/libraries/*.robot", "my_library.resource"]
library_names = ["MyLibrary", "MyOtherLibary.MyOtherLibrary"]
extra_modules_searchpaths = ["./library_dir"]
external_resources = ["RF homepage | https://robotframework.org/", "http://example.org"]
build_machine_readable_libdoc = true
include_robotframework_resources = true
The configuration file must contain the section [rfdocindexer]
and any or none of the following options:
library_paths
: a list of paths (glob format accepted) to RF resource files (can be*.resource
,*.robot
,*.spec
...)library_names
: a list of RF library modulesextra_modules_searchpaths
: a list of paths to append toPYTHONPATH
external_resources
: a list of URLs which will be added to the HTML index file, or<name> | <URL>
. Useful to include frequently used external resources when developing tests.build_machine_readable_libdoc
: whether to generate documentation in XML, JSON and Libspec format. If set toFalse
, only the HTML documenation will be generated. Default isFalse
.include_robotframework_resources
: whether to generate documentation for default RobotFramework libraries (BuiltIn
,Collection
, ...). Default isTrue
.
Running the tool
In a standard shell, run the following:
# To generate documentation for default RobotFramework libraries
indexrfdocs
# To specify the configuration file to use
indexrfdocs -c path/to/configfile.toml
# To specify the output directory (content will not be erased if already existing), default is "rfdocs"
indexrfdocs -o path/to/outdir
Generated index file example
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for rfdocsindexer-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71f218bdf543c719c56cb626ffbe7d30a53fb9d8af5afcc801987c20d7c269e8 |
|
MD5 | e60159c03bfa894312f3b34a5dbd5fba |
|
BLAKE2b-256 | 7a2bda956329ddf6b3f0c16748dea4222ba63a6e7593ee1172813c11eea55947 |