Skip to content

Commit 341f856

Browse files
lander2k2scottd018
andauthored
docs: publish user docs using github pages (#80)
* docs: publish user docs using github pages Signed-off-by: Rich Lander <[email protected]> * docs: correct outdated version and bad list Also remove snap install since we do not support it. Signed-off-by: Dustin Scott <[email protected]> * docs: use repo README as docs index Signed-off-by: Rich Lander <[email protected]> * docs: remove repeated content from README Signed-off-by: Rich Lander <[email protected]> --------- Signed-off-by: Rich Lander <[email protected]> Signed-off-by: Dustin Scott <[email protected]> Co-authored-by: Dustin Scott <[email protected]>
1 parent 4d2cc72 commit 341f856

File tree

10 files changed

+138
-51
lines changed

10 files changed

+138
-51
lines changed

.github/workflows/docs.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Docs
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/[email protected]
13+
- uses: actions/[email protected]
14+
with:
15+
python-version: 3.x
16+
- run: pip install mkdocs-material mkdocs-material-extensions mike
17+
- run: mkdocs gh-deploy --force
18+

README.md

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212

1313
**Accelerate the development of Kubernetes operators.**
1414

15+
## Documentation
16+
17+
User documentation can be found at
18+
[operator-builder.io](https://operator-builder.io).
19+
20+
Developer documentation can be found [here](https://github.com/nukleros/operator-builder/tree/main/docs/dev).
21+
1522
## What is a Kubernetes Operator?
1623

1724
A Kubernetes operator takes human operational knowledge for managing workloads
@@ -73,8 +80,8 @@ building an app stack management operator with Operator Builder:
7380
test them in a Kubernetes cluster. You can also use Helm and the `helm template`
7481
command to create these resources if a helm chart exists.
7582
* Determine which fields in the manifests need to be mutable and managed by the
76-
operator, then add [markers](docs/markers.md) to the manifests.
77-
* Create a [workload configuration](docs/workloads.md) to give it some details,
83+
operator, then add [markers](https://operator-builder.io/markers) to the manifests.
84+
* Create a [workload configuration](https://operator-builder.io/workloads) to give it some details,
7885
such as what you would like to call your custom resource.
7986
* Run the Operator Builder CLI in a new repository and provide to it the marked
8087
up manifests and workload config.
@@ -85,16 +92,16 @@ updating or deleting a custom resource instance.
8592

8693
An operator built with Operator Builder has the following features:
8794

88-
* A defined API for a custom resource based on [markers](docs/markers.md) in
95+
* A defined API for a custom resource based on [markers](https://operator-builder.io/markers) in
8996
static Kubernetes manifests.
9097
* A functioning controller that will create, update and delete child resources
9198
to reconcile the state for the custom resource/s.
92-
* A [companion CLI](docs/companion-cli.md) that helps end users with common
99+
* A [companion CLI](https://operator-builder.io/companion-cli) that helps end users with common
93100
operations.
94101

95102
The custom resource defined in the source code can be cluster-scoped or
96103
namespace-scoped based on the requirements of the project. More info
97-
[here](docs/resource-scope.md).
104+
[here](https://operator-builder.io/resource-scope).
98105

99106
## Advanced Functionality
100107

@@ -113,34 +120,18 @@ in Go, not to mention the logic for creating, updating and deleting those resour
113120
Operator Builder adds those resource definitions and other code to get you up
114121
and running in short order.
115122

116-
## Documentation
117-
118-
### User Docs
123+
## Roadmap
119124

120-
* [Installation](docs/installation.md)
121-
* [Getting Started](docs/getting-started.md)
122-
* [Workloads](docs/workloads.md)
123-
* [Standalone Workloads](docs/standalone-workloads.md)
124-
* [Workload Collections](docs/workload-collections.md)
125-
* [Markers](docs/markers.md)
126-
* [Resource Scope](docs/resource-scope.md)
127-
* [Companion CLI](docs/companion-cli.md)
128-
* [API Updates & Upgrades](docs/api-updates-upgrades.md)
129-
* [License Management](docs/license.md)
125+
Please view our [roadmap documentation](https://github.com/nukleros/operator-builder/blob/main/ROADMAP.md)
126+
to learn more about where we are headed and please open a new [issue](
127+
https://github.com/nukleros/operator-builder/issues) on GitHub if you have an
128+
idea or want to see something added to the roadmap.
130129

131-
### Developer Docs
130+
## License
132131

133-
* [Testing](docs/testing.md)
134-
135-
### Roadmap Docs
136-
137-
Please view our [roadmap documentation](ROADMAP.md) to learn more about where we are headed and please open
138-
a new [issue](https://github.com/nukleros/operator-builder/issues) on GitHub if you have an idea or want to see
139-
something added to the roadmap.
140-
141-
### License
142-
143-
Copyright 2024 [Nukleros](https://github.com/nukleros) and [Third-party Authors](THIRD-PARTY.md) and maintained
144-
by a [core group of maintainers](MAINTAINERS.md).
132+
Copyright 2024 [Nukleros](https://github.com/nukleros) and [Third-party Authors](
133+
https://github.com/nukleros/operator-builder/tree/main/THIRD-PARTY.md) and maintained
134+
by a [core group of maintainers](https://github.com/nukleros/operator-builder/tree/main/MAINTAINERS.md).
145135

146136
The software is available under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
137+

docs/contact.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Contact
2+
3+
If you find a bug or issue, please [open an issue on
4+
Github](https://github.com/nukleros/operator-builder/issues)
5+
6+
If you would like to contribute to Operator Builder:
7+
8+
* Check out the [Contributing
9+
Guide](https://github.com/nukleros/operator-builder/blob/main/CONTRIBUTING.md)
10+
* For simple bug fixes or documentation updates, please [open a
11+
PR](https://github.com/nukleros/operator-builder/pulls)
12+
* For new feature additions or involved changes, please [open an
13+
issue](https://github.com/nukleros/operator-builder/issues) before you
14+
start work.
15+
16+
For general help or questions, hit us up in the [operator-builder channel on
17+
Kubernetes Slack](https://kubernetes.slack.com/archives/C02HQCN3NUB)
18+

docs/dev/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Developer Docs
2+
3+
The documentation here is for developers of Operator Builder.
4+
5+
If you're developing operators using Operator Builder see our [user
6+
documentation](https://opeator-builder.io/).
7+
File renamed without changes.

docs/docs/images

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../images

docs/images/operator-builder-logo.ico

222 KB
Binary file not shown.

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README.md

docs/installation.md

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Installation
22

33
You have the following options to install the operator-builder CLI:
4-
* [Download the latest binary with your browser](https://github.com/nukleros/operator-builder/releases/latest)
5-
* [Download with wget](#wget)
6-
* [Homebrew](#homebrew)
7-
* [Docker Image](#docker-image)
8-
* [Go Install](#go-install)
9-
* [Snap](#snap)
4+
5+
- [Download the latest binary with your browser](https://github.com/nukleros/operator-builder/releases/latest)
6+
- [Download with wget](#wget)
7+
- [Homebrew](#homebrew)
8+
- [Docker Image](#docker-image)
9+
- [Go Install](#go-install)
1010

1111
### wget
1212
Use wget to download the pre-compiled binaries:
1313

1414
```bash
15-
VERSION=v0.7.0
15+
VERSION=v0.11.0
1616
OS=Linux
1717
ARCH=x86_64
1818
wget https://github.com/nukleros/operator-builder/releases/download/${VERSION}/operator-builder_${VERSION}_${OS}_${ARCH}.tar.gz -O - |\
@@ -61,16 +61,3 @@ operator-builder() {
6161
```bash
6262
go install github.com/nukleros/operator-builder/cmd/operator-builder@latest
6363
```
64-
65-
### Snap
66-
67-
**NOTE:** support for Snaps has been removed due to, what we feel, is increasingly unstable developer experience in publishing snaps. We can readdress
68-
this at such a time where stability to the project has returned. As of now, the latest available snap for operator-builder is v0.5.0.
69-
70-
Available for Linux only.
71-
72-
```bash
73-
snap install operator-builder
74-
```
75-
76-
>**NOTE**: `operator-builder` installs with [_strict confinement_](https://docs.snapcraft.io/snap-confinement/6233) in snap, this means it doesn't have direct access to root files.

mkdocs.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
site_name: Operator Builder
2+
site_author: Operator Builder developers
3+
site_description: Documentation for Operator Builder
4+
repo_url: https://github.com/nukleros/operator-builder
5+
repo_name: nukleros/operator-builder
6+
edit_uri: blob/main/docs/
7+
8+
nav:
9+
- Home: 'index.md'
10+
- Install: 'installation.md'
11+
- Getting Started: 'getting-started.md'
12+
- Workloads:
13+
- Workloads: 'workloads.md'
14+
- Standalone Workloads: 'standalone-workloads.md'
15+
- Workload Collections: 'workload-collections.md'
16+
- Workload Collection Tutorial: 'workload-collection-tutorial/workload-collection-tutorial.md'
17+
- Markers: 'markers.md'
18+
- Resource Scope: 'resource-scope.md'
19+
- Companion CLI: 'companion-cli.md'
20+
- License Management: 'license.md'
21+
- API Updates & Upgrades: 'api-updates-upgrades.md'
22+
- Contact: 'contact.md'
23+
24+
theme:
25+
name: material
26+
favicon: images/operator-builder-logo.ico
27+
logo: images/operator-builder-logo.png
28+
features:
29+
- content.code.copy
30+
palette:
31+
- scheme: default
32+
primary: blue
33+
accent: blue
34+
toggle:
35+
icon: material/brightness-7
36+
name: Switch to dark mode
37+
- scheme: slate
38+
primary: blue
39+
accent: blue
40+
toggle:
41+
icon: material/brightness-4
42+
name: Switch to light mode
43+
44+
plugins:
45+
- search
46+
47+
extra:
48+
social:
49+
- icon: fontawesome/brands/github
50+
link: https://github.com/threeport/threeport
51+
52+
markdown_extensions:
53+
- admonition
54+
- attr_list
55+
- pymdownx.details
56+
- pymdownx.highlight:
57+
linenums: true
58+
- pymdownx.superfences
59+
- pymdownx.tabbed
60+
- toc:
61+
permalink: true
62+
63+
copyright: Copyright &copy; 2022-2024 Operator Builder
64+

0 commit comments

Comments
 (0)