Welcome to Sensu Docs! This repository is the new home of all Sensu-related documentation and we appreciate your help in maintaining it. You can view the live site at docs.sensu.io.
Contribution was too complicated when working with the now-deprecated sensu-docs-legacy project. Building it depended on proprietary website code. In addition to making the build independent of our marketing website, this new project gives us:
- Much faster rendering times
- Versioned documentation per project all in one place
- Easier contribution experience running Hugo locally
- Full-text search 😍
- There is no Extensions documentation at this time
This README is focused on helping you get started with the sensu-docs project as a whole. For detail on formatting, layouts and other aspects of adding to or modifying content, please see our project wiki.
Unlike the old sensu-docs project, this site can be run locally with Hugo. There are some new steps to learn, but don't worry, we've documented how to do so (and some common troubleshooting if you need it):
To view the Sensu docs locally, clone this repository with:
git clone https://github.com/sensu/sensu-docs.git
This project uses Yarn to manage dependencies and the build process. For information on installing yarn, view their documentation.
After installing yarn we suggest that you test the build of the site in your local environment:
yarn
Yarn will install and run Hugo to render the site into the public directory.
This is the same build process used by TravisCI to test changes. If this command produces any errors, please open an issue.
If the site builds successfully, you can run the Hugo server and view the site in a local web browser:
yarn run server
Then visit http://localhost:1313/ in the browser of your choice.
Here are some things you might try if you encounter an issue working with the site:
- Run
yarn hugo-versionto print the running version of Hugo. Version 0.34 or newer is required. - If you are seeing stale page content, try using
yarn server --disableFastRenderto ensure all pages are rebuilt as you make changes. - If you're still having trouble viewing the site, open an issue, and we'll be happy to help!
This project uses the hugo-material-docs theme with some local modifications. Should you choose to update the theme, please take care to ensure leading slashes are not removed from links to Javascript, CSS and other assets.
This is the same as any other project. Follow GitHub's instructions if you're unsure. No additional steps are needed.
Any time changes are merged to master branch, this project is automatically deployed to https://docs.sensu.io using Heroku's own Github integration. For additional details on Heroku configuration and deployment, see our wiki page.