Style guide
Writing guidelines for contributions to this site.
We use Hugo to format and generate our website, the Docsy theme for styling and site structure, and Netlify to manage the deployment of the site. Hugo is an open-source static site generator that provides us with templates, content organization in a standard directory structure, and a website generation engine. You write the pages in Markdown (or HTML if you want), and Hugo wraps them up into a website.
All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose. Consult GitHub Help for more information on using pull requests.
If you’d like to contribute an article to the [Community][/community] section of this site, the implementations in the article should exemplify the best practices described in the Learn documentation. Members of the Best Practices SIG review your PR to determine if the content is a good fit for adding to the Community section.
You can also create pull requests to suggest improvements to other parts of the site.
We expect contributors to read and observe the CD Foundation Code of Conduct.
See the style guide for writing style guidance.
You can use the included Dockerfile to run the site locally.
On Mac and Windows, download and install Docker Desktop. On Linux, install Docker engine and Docker compose.
The installation might require you to reboot your computer for the changes to take effect.
Build the docker image:
docker-compose build
Run the built image:
docker-compose up
Open the address http://localhost:1313
in your web browser to load the
docsy-example homepage. You can now make changes to the source files, those
changes will be live-reloaded in your browser.
To clean up your system and delete the container image:
Stop Docker Compose with Ctrl + C.
Remove the produced images
docker-compose rm
Here’s a quick guide to updating the docs. It assumes you’re familiar with the GitHub workflow and you’re happy to use the automated preview of your doc updates:
If you’ve just spotted something you’d like to change while using the docs, Docsy has a shortcut for you:
If you’ve found a problem in the best practices content, but you’re not sure how to fix it yourself, please create an issue in the Best Practices repo. You can also create an issue about a specific page by clicking the Create Issue button in the top right hand corner of the page.
Writing guidelines for contributions to this site.