Welcome to Scalyr's documentation source repository. The site was forked from Google's docsy theme and runs on the hugo static website tool.
We appreciate your contributions and issue submissions, as Scalyr changes quickly and we sometimes miss things. To contribute, just follow the setup instructions below to fork, clone and test locally. Once your changes are ready, just submit a pull request.
You can create issues directly from Scalyr's Online Documantation.
You need a recent version of Hugo to build the documentation locally (preferably 0.45+). If you install from the release page, make sure to get the extended Hugo version which supports SCSS. Alternatively, on macOS you can install Hugo via Brew.
If you want to do stylesheet changes, you will also need PostCSS to create the final assets. You can also
install it locally with npm install
.
-
Fork the source
-
Clone it to your dev machine
-
Add the repository as an upstream remote:
git remote add upstream [email protected]:scalyr/doc.git
`git remote set-url --push upstream no_push`
-
cd doc
-
npm install
-
hugo server
If all goes well, the documentation should be running at http://localhost:1313/. Hugo watches for changes, so edits should automatically appear.
-
Create a branch for your changes:
git checkout -b my_branch_name
-
Edit the documentation (only changes in the
/content
folder will be accepted) -
Keep your branch in sync:
git fetch upstream
git rebase upstream/master
-
Commit and push your edits:
git commit -m "Add notes to explain changes"
git push -f ${your_remote_name} myfeature
-
Push the changes:
git push -f ${your_remote_name} my_branch_name
-
Request the review from your fork of https://github.com/scalyr/doc
If any of this is new to you, the good folks over at Kubernetes have created a nice writeup on this type of Github workflow.
Thank you from the Scalyr team!