Welcome! We're glad you're interested in contributing to Tugboat's documentation.
To get started, you'll need to set up Hugo to preview your changes locally:
-
Install Hugo: Follow the installation instructions on the Hugo website.
-
Install Yarn 1.x: You'll need Yarn 1.x to run scripts and the local server. Install Yarn 1.x from the classic Yarn documentation.
-
Running the Local Environment: Once Hugo and Yarn are installed, you can start the local environment by running
hugo serve
oryarn serve
.
Visit http://localhost:1313
in your browser to see the site.
Feel free to make updates from fixing typos to adding new content. Before submitting your changes, please run the linting script to ensure your updates adhere to our style guidelines:
yarn lint
or, to automatically fix issues,
yarn lint-fix
The Environment Variables page is unique because it is generated from a script. Here’s how to update it:
- Uncomment the
aliases
section in.tugboat/config.yml
. - Modify the
.tugboat/env-vars.yml
file as needed. - Push to GitHub and create a pull request.
- Have Tugboat build the preview with a base preview.
- Go to
https://[preview-subdomain].tugboatqa.com/vars.md
and copy the markdown. - Paste it into
/content/reference/environment-variables.md
. - Comment out the
aliases
section in.tugboat/config.yml
. - Commit and push your changes.
Thank you for contributing to our docs site! Your efforts help us keep our resources helpful and up-to-date.