Start Building for Free
CircleCI.comAcademyBlogCommunitySupport

Using code samples

1+ year ago1 min read
  • Provide code examples to help with clarity, and to help the reader reproduce the subject matter.

  • CircleCI config should always be tested as valid before adding it to docs.

  • A reader should be able to copy and paste code snippets, and have them work with only minimal changes.

  • When using example code snippets, be mindful that people are likely to copy paste them. Always point out if any items or values need to be replaced with the reader’s own data, including whether they should replace the surrounding < > or “ “.

  • When a reader needs to substitute some of their own data into a snippet or command, use < > , for example, <my-data>.


Suggest an edit to this page

Make a contribution
Learn how to contribute