Hop Doc
Hop Doc generates documentation for Hop projects in Markdown format with optional HTML output.
Usage
Generate documentation for a Hop project:
./hop.bat doc -s /path/to/project -t /path/to/docs [--generate-html] [--remove-markdown]
Or using Hop project variables:
./hop.bat run -j my-project doc -t /path/to/docs --generate-html
Options
| Option | Description | Default |
|---|---|---|
-s, --source-folder |
Source project folder to document |
Required (or use project) |
-t, --target-folder |
Target documentation folder |
Required |
-ip, --include-parameters |
Include pipeline/workflow parameters |
true |
-in, --include-notes |
Include notes text |
false |
-im, --include-metadata |
Include metadata overview |
true |
-n, --project-name |
Project name |
"Hop" (or HOP_PROJECT_NAME) |
-gh, --generate-html |
Generate HTML versions of all docs |
false |
-rmmd, --remove-markdown |
Remove .md files after HTML generation |
false |
Examples
Basic Documentation
Generate Markdown documentation only:
- Windows
-
shell
./hop.bat doc -s "C:\Projects\my-hop-project" -t "C:\yourLocation\docs"- Linux/macOS
./hop doc -s ~/projects/my-hop-project -t ~/docs
HTML Documentation
Generate HTML + remove Markdown source:
- Windows
-
shell
./hop.bat doc -s "C:\Projects\my-hop-project" -t "C:\yourLocation\docs" --generate-html --remove-markdownGenerates:
C:\docs\ ├── index.html (project TOC) ├── pipelines\ │ └── my-pipeline.html ├── workflows\ │ └── my-workflow.html └── assets\ ├── styles.css └── images\- Linux/macOS
./hop doc -s ~/projects/my-hop-project -t ~/docs --generate-html --remove-markdown
Using Hop Project Context
./hop.bat run -j IT-mongo doc -t "C:\yourLocation\docs" --generate-html
Uses HOP_PROJECT_HOME and HOP_PROJECT_NAME automatically.
Workflow Action Usage
Add "Documentation" action to any Hop workflow:
-
Drag Documentation action from Utility category
-
Set Target folder (
C:\yourLocation\docs) -
Optional: Check Generate HTML
-
Optional: Check Remove markdown (only when Generate HTML enabled)
-
Configure content options:
-
☑ Include parameters (optional)
-
☑ Include metadata (optional)
-
☐ Include notes (optional)
-
Generated Structure
docs/ ├── index.html (Table of Contents) ├── pipelines/ (all .hpl files) │ ├── pipeline1.html │ └── subfolder/ │ └── pipeline2.html ├── workflows/ (all .hwf files) │ └── workflow1.html ├── metadata/ (metadata overview) └── assets/ ├── styles.css └── images/
Notes
-
--remove-markdownis automatically disabled if--generate-htmlis false -
HTML output includes custom CSS styling and responsive images
-
All links in
index.htmlautomatically point to.htmlfiles -
Supports nested folders and metadata documentation
-
Uses CommonMark for Markdown → HTML conversion