Template for Grasshopper project documentation
This project contains documentation and examples for working with Rhinoceros Grasshopper using IronPython 2.7.
GHDoc-temp/
├── Doc/ # Project documentation
│ ├── ConduitRunsHeight.md
│ ├── Suspension.md
│ └── ...
├── Gh/ # Grasshopper files
│ ├── ConduitRunsHeight.gh
│ ├── git_help.gh
│ ├── Suspension.gh
│ └── ...
├── Help/ # Reference information
│ ├── Markdown.md
│ └── ...
├── Py/ # Python scripts
│ ├── git_help.py
│ └── ...
└── README.md # README
.gh
file in the ./Gh
directory (without using “_001”, “v0.001”, etc. in the name)./Gh/git_help.gh
fileThe imported script has the following parameters:
Inputs:
OPEN_MAIN_BRANCH
: Boolean - opens the main repository branch on GitHubOPEN_HELP_IN_GITHUB
: Boolean - opens the current file’s documentation on GitHubOPEN_LOCAL_HELP
: Boolean - opens the local .md documentation file in the editorOutput:
md
: String - content of the local .md documentation file[!important]
OPEN_HELP_IN_GITHUB
opens documentation on the current active repository branch, whileOPEN_MAIN_BRANCH
always opens documentation on the mainmain
branch. This allows you to view both the current version of documentation and the stable version from the main branch.
OPEN_HELP_IN_GITHUB
or OPEN_LOCAL_HELP
and there is no file with such a name in the ./Doc
directory, it will be created automatically[!important] The Grasshopper file name and Markdown file name must match!