Skip to content

Commit

Permalink
Update gitbook docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pwittrock committed May 10, 2018
1 parent 9836a2c commit 1354610
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion docs/book/basics/generating_documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ directly in a web browser.

{% panel style="info", title="Non-Kubebuilder Projects" %}
Kubebuilder can also be used to generate API reference documentation for non-kubebuilder projects, as long as the
resources are annotated with `// +kubebuilder:resource` the same as they are in kubebuilder projects.
resources are annotated with `// +kubebuilder:resource:path=<resource-name>` the same as they are in kubebuilder
projects.

**Important**: The `// +kubebuilder:resource` annotation *must* appear directly above the go struct
defining the resource. No blank lines may appear between the annotation and the go struct.
{% endpanel %}

## Creating Examples
Expand Down
12 changes: 6 additions & 6 deletions docs/book/getting_started/installation_and_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ Kubebuilder can then setup a project in the user's `GOPATH`.
{% sample lang="mac" %}
```bash
# download the release
curl -L -O https://github.com/kubernetes-sigs/kubebuilder/releases/download/v0.1.7/kubebuilder_0.1.7_darwin_amd64.tar.gz
curl -L -O https://github.com/kubernetes-sigs/kubebuilder/releases/download/v0.1.8/kubebuilder_0.1.8_darwin_amd64.tar.gz

# extract the archive
tar -zxvf kubebuilder_0.1.7_darwin_amd64.tar.gz
sudo mv kubebuilder_0.1.7_darwin_amd64 /usr/local/kubebuilder
tar -zxvf kubebuilder_0.1.8_darwin_amd64.tar.gz
sudo mv kubebuilder_0.1.8_darwin_amd64 /usr/local/kubebuilder

# update your PATH to include /usr/local/kubebuilder/bin
export PATH=$PATH:/usr/local/kubebuilder/bin
Expand All @@ -36,11 +36,11 @@ export PATH=$PATH:/usr/local/kubebuilder/bin
{% sample lang="linux" %}
```bash
# download the release
wget https://github.com/kubernetes-sigs/kubebuilder/releases/download/v0.1.7/kubebuilder_0.1.7_linux_amd64.tar.gz
wget https://github.com/kubernetes-sigs/kubebuilder/releases/download/v0.1.8/kubebuilder_0.1.8_linux_amd64.tar.gz

# extract the archive
tar -zxvf kubebuilder_0.1.7_linux_amd64.tar.gz
sudo mv kubebuilder_0.1.7_linux_amd64 /usr/local/kubebuilder
tar -zxvf kubebuilder_0.1.8_linux_amd64.tar.gz
sudo mv kubebuilder_0.1.8_linux_amd64 /usr/local/kubebuilder

# update your PATH to include /usr/local/kubebuilder/bin
export PATH=$PATH:/usr/local/kubebuilder/bin
Expand Down

0 comments on commit 1354610

Please sign in to comment.