Rundeck Documentation project.
- NodeJS (lts/erbium or version 12 is currently best)
Install nvm to manage your NodeJS installations.
Run nvm install lts/erbium; nvm use lts/erbium to install and set the NodeJS version.
Run this before the first you start the docs site locally.
npm install
- Add appropriate entries to the
docs/api/rundeck-api-versions.mdfile, list all changes associated with the new API version. - Update the
docs/.vuepress/setup.jsAPI_VERSION
Steps:
-
Define the new API version as defined above.
-
Add the appropriate documentation section in the
docs/api/rundeck-api.mdfileEach API endpoint has a minimum API version requirement. Reference this in the endpoint, such as:
Request: GET /api/41/enterprise/licenseUse a capitalized
[PARAM]for any parameters in the URL itself. -
Add Reference Link Definitions to the
docs/api/api-index-links.md. This defines a link name that can be referenced elsewhere.[/api/V/execution/\[ID\]]:/api/rundeck-api.html#execution-info
- Replace the API version with the letter
V. - Escape
[and]characters with a backslash. - Use the full path to the rundeck-api.html doc
- Include the Anchor text to your specific documentation section
- Replace the API version with the letter
-
Add back links in the "Index" section in the
docs/api/rundeck-api.mdfileIn the "Index" section, add an entry for the new endpoint in alphabetical order.
-
Add back links in the
docs/api/rundeck-api-versions.mdfor the new API version.
npm run docs:dev
Compiles and hot-reloads for development. As (most) content changes are made they show up immediately. Changes to the menus will require quitting and restarting with the command above.
Compiles and minifies for production.
npm run docs:build
Rundeck welcomes documentation PRs. Please submit PRs against the default branch (currently 4.x) and we will review.
Docs will be built and published to a base matching a branch name of
/4\.[1-9]\..*/:
- Branch
4.0.x=>docs.rundeck.com/4.0.x/ - Branch
3.4.1=>docs.rundeck.com/3.4.1/
Version tag must contain the full Rundeck version with date!
Tag a commit to publish to the matching version base as well as to the latest:
- Tag
v4.13.0-20230515=>docs.rundeck.com/4.13.0/ANDdocs.rundeck.com/docs/
Example Code:
git tag -f v4.13.0-20230515
git push -f origin v4.13.0-20230515
For maintenance to docs on previous versions, simply switch to or create the branch:
# For 3.2.8
git checkout v3.2.8
git checkout -b 3.2.8
git push originRundeck Core PRs are included by default.
Core PRs can excluded by labeling them with the release-notes/exclude label.
Rundeck Enterprise PRs are excluded by default.
Enterprise PRs can be included by labeling them with the release-notes/include label.
Create the file .env in the project root and add the line GH_API_TOKEN=[TOKEN]
replacing [TOKEN] with your GitHub API token. This token needs repo scope.
Run the following with the milestone for the release. This will create/overwrite an existing entry for the release. Use wisely:
npm run notes -- --milestone=${1?milestone name}Run the following with the milestone for the release. This will create the file named draft.md to avoid overwriting any existing version:
npm run notes -- --milestone=${1?milestone name} --draft