First off, thanks for taking the time to contribute!
The following are guidelines for contributing to the Knative documentation. These are just guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
Knative follows the Knative Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected].
Knative documentation follows the Google Developer Documentation Style Guide; use it as a reference for writing style questions.
Knative uses Github issues to track documentation issues and requests. If you see a problem with the documentation, submit an issue using the following steps:
- Check the Knative docs issues list before creating an issue to avoid making a duplicate.
- Use the correct template for
your new issue. There are two templates available:
- Bug report: If you're reporting an error in the existing documentation, use this template. This could be anything from broken samples to typos. When you create a bug report, include as many details as possible and include suggested fixes to the issue. If you know which Knative component your bug is related to, you can assign the appropriate Working Group Lead.
- Feature request: For upcoming changes to the documentation or requests for more information on a particular subject.
Note that code issues should be filed against the
individual Knative repositories, while
documentation issues should go in the docs
repository.
The Knative Documentation Working Group meets weekly on Tuesdays and alternates between a 9am PT and a 4:30pm PT time to accommodate contributors in both the EMEA and APAC timezones. Click here to see the exact dates on the Knative working group calendar. If you're interested in becoming more involved in Knative's documentation, start attending the working group meetings. You'll meet the writers currently steering our documentation efforts, who are happy to help you get started.
There are a couple different ways to jump in to the Knative doc set:
- Look at issues in the Docs repo labled Good First Issue.
- Run through the install guide for the platform of your choice, as well as the Getting Started with Knative App Deployment guide, and keep a friction log of the experience. What was hard for you? Then open a PR with a few improvements you could make from the friction log you kept. How can you make the documentation better so that others don't run into the same issues you did?
Here's what will happen after you open a PR in the Docs repo:
- One of the Docs approvers will triage the PR and provide an initial
documentation review as soon as possible.
- If the PR involves significant changes or additions to sample code, we'll flag it for engineer review.
- Once we're satisfied with the quality of the writing and the accuracy of the content, we'll approve the change.
If you're making a change to the documentation, you should submit a PR against the master branch.
Knative uses the docs repository for all
general documentation for Knative components. However, formal specifications or
documentation most relevant to contributors of a component should be placed in
the docs
folder in a given component's repository. An example of this is the
spec folder in the
Serving component.
Code samples follow a similar strategy, where most code samples should be
located in the docs
repository. If there are code samples used for testing
that are only expected to be used by contributors, those samples are put in the
samples
folder within the component repo.