devopsspiral / KubeLibrary

Kubernetes library for Robot Framework
MIT License
138 stars 37 forks source link

Generate keyword documentation without a kubernetes cluster #103

Closed bli74 closed 2 years ago

bli74 commented 2 years ago

For a Docker image with Robotframework and additional libraries we generate the keyword documentation for all included Robot libraries with robotframework-hub-static and robotframework-hub-bli.

For this a generic way to run libdoc is necessary and library specific initialization would break the generic approach.

So far robotframework-kubelibrary was the only library where the generation of keyword documentation failed and required access to a Kubernetes cluster.

This patch evaluates environment variable INIT_FOR_LIBDOC_ONLY. When this variable is set to 1, the keyword documentation can be created without the need to access a cluster.

m-wcislo commented 2 years ago

Do you need PYPI release for the fix, or is it based on github branch?

frale98 commented 2 years ago

@m-wcislo we need a PYPI release please.