Skip to content

rndmit/pipedoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pipedoc

Generate docs from pipeline libraries. Tested with Gitlab CI but other yaml-based CIs should also work

How to

  1. Install pipedoc pip install git+https://github.com/rndmit/pipedoc.git@master

  2. Separate your templates into "modules" where one file contains only one template and it's variables (e.g. golang.yaml)

  3. Group modules into separate directories (e.g. build) and move them to library dir (e.g. lib)

  4. Write your doc in comment at the beginning of the module's file and insert yaml document separator (---) after it. It's your module docstring which will be inlined into documentation.

  5. Add comments like #!opt: Some awesome option before variables should be documented

  6. mkdir -p docs/{raw,modules}

  7. python -m pipedoc generate -l lib -d docs -g build

  8. Enjoy!

About

Tool for generating docs from pipeline docstrings

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages