Skip to content

Generate library documentation in plain text from the JSON generated by libdoc

License

Notifications You must be signed in to change notification settings

mardukbp/robotframework-libdoc2text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libdoc2text

Generate library documentation in plain text from the JSON generated by libdoc.

Use Cases

  • Markdown documentation to generate a static site with Mkdocs or upload it to Confluence
  • Asciidoc documentation to generate a static site with Asciidoctor

How to use it

  1. Install the package
pip install robotframework-libdoc2text
  1. Save the desired template to the current directory

For Markdown:

libdoc2text init.md

For Asciidoc:

libdoc2text init.adoc

Hint: In case your environment does not allow executing libdoc2text, call the Python module directly:

python -m Libdoc2Text init.md
  1. Modify the template

  2. Generate the library documentation with libdoc

python -m robot.libdoc Library Library.json
  1. Generate the plain text documentation with libdoc2text
libdoc2text run library.md.jinja Library.json Library.md

How it works

The template files are Jinja templates. When libdoc2text run is executed Jinja processes the template, which results in a Markdown or Asciidoc file.

About

Generate library documentation in plain text from the JSON generated by libdoc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published