We'd love to accept your patches and contributions to this project. There are just a few small guidelines you need to follow.
Contributions to this project must be accompanied by a Contributor License Agreement. You (or your employer) retain the copyright to your contribution; this simply gives us permission to use and redistribute your contributions as part of the project. Head over to https://cla.developers.google.com/ to see your current agreements on file or to sign a new one.
You generally only need to submit a CLA once, so if you've already submitted one (even if it was for a different project), you probably don't need to do it again.
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.
This project follows Google's Open Source Community Guidelines.
Use the GitHub issue tracker to search existing bugs and feature request. If you want to report a new bug or suggest new features, create a new issue and include the following information:
- High-level description of the issue.
- Version of the code and platform that are used.
- Steps to reproduce (if applicable).
- Detailed description of a bug or a feature with all necessary materials.
This repository is based on kubeflow/website repository. To see prior contributions, see the corresponding commit history.
Contributions are very welcome! Please, follow these simple steps:
-
Fork this repository on GitHub.
-
Make your changes and send a pull request (PR) with a few sentences describing your changes. Merge into:
main
branch, if the changes are related to the latest released Kubeflow on Google Cloud.dev
branch if the changes are related to the unreleased (master branch) version of Kubeflow on Google Cloud.v*-release
if the changes are related tov*
release of Kubeflow on Google Cloud.
-
Assign one of the reviewers to the PR.
The theme holds its styles in the assets/scss
directory.
Do not change these files, they are not actually inside this repo, but are part of the google/docsy repo. To update referenced docsy commit, run the following command at the root of the repo:
git submodule update --remote
The site's front page:
-
See the page source.
-
The CSS styles are in the project variables file.
-
The page uses the cover block defined by the theme.
-
The page also uses the linkdown block.
Sometimes it's useful to define a snippet of information in one place and reuse it wherever we need it. For example, we want to be able to refer to the minimum version of various frameworks/libraries throughout the docs, without causing a maintenance nightmare.
For this purpose, we use Hugo's "shortcodes". Shortcodes are similar to Django variables. You define a shortcode in a file, then use a specific markup to invoke the shortcode in the docs. That markup is replaced by the content of the shortcode file when the page is built.
To create a shortcode:
-
Add an HTML file in the
layouts/shortcodes/
directory. The file name must be short and meaningful, as it determines the shortcode you and others use in the docs. -
For the file content, add the text and HTML markup that should replace the shortcode markup when the web page is built.
To use a shortcode in a document, wrap the name of the shortcode in braces and percent signs like this:
{{% shortcode-name %}}
The shortcode name is the file name minus the .html
file extension.
Example: The following shortcode defines the minimum required version of Kubernetes:
-
File name of the shortcode:
kubernetes-min-version.html
-
Content of the shortcode:
1.8
-
Usage in a document:
You need Kubernetes version {{% kubernetes-min-version %}} or later.