Skip to content

Commit feec001

Browse files
authored
docs: wording improvements (#2913)
docs: wording and readability improvements Signed-off-by: Attila Mészáros <[email protected]>
1 parent 2bd9c35 commit feec001

File tree

15 files changed

+570
-666
lines changed

15 files changed

+570
-666
lines changed

docs/CONTRIBUTING.md

Lines changed: 48 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,57 @@
1-
# How to Contribute
1+
# Contributing to Java Operator SDK Documentation
22

3-
We'd love to accept your patches and contributions to this project. There are
4-
just a few small guidelines you need to follow.
3+
Thank you for your interest in improving the Java Operator SDK documentation! We welcome contributions from the community and appreciate your help in making our documentation better.
54

6-
## Contributor License Agreement
5+
## How to Contribute
76

8-
Contributions to this project must be accompanied by a Contributor License
9-
Agreement. You (or your employer) retain the copyright to your contribution;
10-
this simply gives us permission to use and redistribute your contributions as
11-
part of the project. Head over to <https://cla.developers.google.com/> to see
12-
your current agreements on file or to sign a new one.
7+
### Getting Started
138

14-
You generally only need to submit a CLA once, so if you've already submitted one
15-
(even if it was for a different project), you probably don't need to do it
16-
again.
9+
1. **Fork the repository** and clone your fork locally
10+
2. **Create a new branch** for your changes
11+
3. **Make your improvements** to the documentation
12+
4. **Test your changes** locally using `hugo server`
13+
5. **Submit a pull request** with a clear description of your changes
1714

18-
## Code reviews
15+
### Types of Contributions
1916

20-
All submissions, including submissions by project members, require review. We
21-
use GitHub pull requests for this purpose. Consult
22-
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
23-
information on using pull requests.
17+
We welcome various types of contributions:
18+
19+
- **Content improvements**: Fix typos, clarify explanations, add examples
20+
- **New documentation**: Add missing sections or entirely new guides
21+
- **Structural improvements**: Better organization, navigation, or formatting
22+
- **Translation**: Help translate documentation to other languages
23+
24+
## Guidelines
25+
26+
### Writing Style
27+
28+
- Use clear, concise language
29+
- Write in active voice when possible
30+
- Define technical terms when first used
31+
- Include practical examples where helpful
32+
- Keep sentences and paragraphs reasonably short
33+
34+
### Technical Requirements
35+
36+
- Test all code examples to ensure they work
37+
- Use proper markdown formatting
38+
- Follow existing documentation structure and conventions
39+
- Ensure links work and point to current resources
40+
41+
## Legal Requirements
42+
43+
### Contributor License Agreement
44+
45+
All contributions must be accompanied by a Contributor License Agreement (CLA). You (or your employer) retain the copyright to your contribution; the CLA simply gives us permission to use and redistribute your contributions as part of the project.
46+
47+
Visit <https://cla.developers.google.com/> to see your current agreements on file or to sign a new one.
48+
49+
You generally only need to submit a CLA once, so if you've already submitted one (even for a different project), you probably don't need to do it again.
50+
51+
### Code Review Process
52+
53+
All submissions, including those by project members, require review. We use GitHub pull requests for this purpose. Please consult [GitHub Help](https://help.github.com/articles/about-pull-requests/) for more information on using pull requests.
2454

2555
## Community Guidelines
2656

27-
This project follows
28-
[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/).
57+
This project follows [Google's Open Source Community Guidelines](https://opensource.google.com/conduct/).

docs/README.md

Lines changed: 44 additions & 152 deletions
Original file line numberDiff line numberDiff line change
@@ -1,190 +1,82 @@
1-
# JOSDK comments:
1+
# Java Operator SDK Documentation
22

3-
see: sample github action: https://gohugo.io/hosting-and-deployment/hosting-on-github/
3+
This repository contains the documentation website for the Java Operator SDK (JOSDK), built using Hugo and the Docsy theme.
44

5-
currently use hugo version v0.125.7
5+
## About Java Operator SDK
66

7-
# Docsy Example
7+
Java Operator SDK is a framework that makes it easy to build Kubernetes operators in Java. It provides APIs designed to feel natural to Java developers and handles common operator challenges automatically, allowing you to focus on your business logic.
88

9-
[Docsy][] is a [Hugo theme module][] for technical documentation sites, providing easy
10-
site navigation, structure, and more. This **Docsy Example Project** uses the Docsy
11-
theme component as a hugo module and provides a skeleton documentation structure for you to use.
12-
You can clone/copy this project and edit it with your own content, or use it as an example.
9+
## Development Setup
1310

14-
In this project, the Docsy theme is pulled in as a Hugo module, together with
15-
its dependencies:
11+
This documentation site uses Hugo v0.125.7 with the Docsy theme.
1612

17-
```console
18-
$ hugo mod graph
19-
...
20-
```
21-
22-
For Docsy documentation, see [Docsy user guide][].
23-
24-
This Docsy Example Project is hosted on [Netlify][] at [example.docsy.dev][].
25-
You can view deploy logs from the [deploy section of the project's Netlify
26-
dashboard][deploys], or this [alternate dashboard][].
27-
28-
This is not an officially supported Google product. This project is currently maintained.
29-
30-
## Using the Docsy Example Project as a template
31-
32-
A simple way to get started is to use this project as a template, which gives you a site project that is set up and ready to use. To do this:
33-
34-
1. Use the dropdown for switching branches/tags to change to the **latest** released tag.
35-
36-
2. Click **Use this template**.
37-
38-
3. Select a name for your new project and click **Create repository from template**.
39-
40-
4. Make your own local working copy of your new repo using git clone, replacing https://github.com/me/example.git with your repo’s web URL:
41-
42-
```bash
43-
git clone --depth 1 https://github.com/me/example.git
44-
```
13+
## Prerequisites
4514

46-
You can now edit your own versions of the site’s source files.
15+
- Hugo v0.125.7 or later (extended version required)
16+
- Node.js and npm (for PostCSS processing)
17+
- Git
4718

48-
If you want to do SCSS edits and want to publish these, you need to install `PostCSS`
19+
## Local Development
4920

50-
```bash
51-
npm install
52-
```
53-
54-
## Running the website locally
55-
56-
Building and running the site locally requires a recent `extended` version of [Hugo](https://gohugo.io).
57-
You can find out more about how to install Hugo for your environment in our
58-
[Getting started](https://www.docsy.dev/docs/getting-started/#prerequisites-and-installation) guide.
59-
60-
Once you've made your working copy of the site repo, from the repo root folder, run:
61-
62-
```bash
63-
hugo server
64-
```
21+
### Quick Start
6522

66-
## Running a container locally
23+
1. Clone this repository
24+
2. Install dependencies:
25+
```bash
26+
npm install
27+
```
28+
3. Start the development server:
29+
```bash
30+
hugo server
31+
```
32+
4. Open your browser to `http://localhost:1313`
6733

68-
You can run docsy-example inside a [Docker](https://docs.docker.com/)
69-
container, the container runs with a volume bound to the `docsy-example`
70-
folder. This approach doesn't require you to install any dependencies other
71-
than [Docker Desktop](https://www.docker.com/products/docker-desktop) on
72-
Windows and Mac, and [Docker Compose](https://docs.docker.com/compose/install/)
73-
on Linux.
34+
### Using Docker
7435

75-
1. Build the docker image
36+
You can also run the documentation site using Docker:
7637

38+
1. Build the container:
7739
```bash
7840
docker-compose build
7941
```
80-
81-
1. Run the built image
82-
42+
2. Run the container:
8343
```bash
8444
docker-compose up
8545
```
46+
> **Note**: You can combine both commands with `docker-compose up --build`
8647
87-
> NOTE: You can run both commands at once with `docker-compose up --build`.
48+
3. Access the site at `http://localhost:1313`
8849

89-
1. Verify that the service is working.
90-
91-
Open your web browser and type `http://localhost:1313` in your navigation bar,
92-
This opens a local instance of the docsy-example homepage. You can now make
93-
changes to the docsy example and those changes will immediately show up in your
94-
browser after you save.
95-
96-
### Cleanup
97-
98-
To stop Docker Compose, on your terminal window, press **Ctrl + C**.
99-
100-
To remove the produced images run:
50+
To stop the container, press **Ctrl + C** in your terminal.
10151

52+
To clean up Docker resources:
10253
```bash
10354
docker-compose rm
10455
```
105-
For more information see the [Docker Compose documentation][].
106-
107-
## Using a local Docsy clone
108-
109-
Make sure your installed go version is `1.18` or higher.
110-
111-
Clone the latest version of the docsy theme into the parent folder of your project. The newly created repo should now reside in a sibling folder of your site's root folder.
112-
113-
```shell
114-
cd root-of-your-site
115-
git clone --branch v0.7.2 https://github.com/google/docsy.git ../docsy
116-
```
117-
118-
Now run:
119-
120-
```shell
121-
HUGO_MODULE_WORKSPACE=docsy.work hugo server --ignoreVendorPaths "**"
122-
```
123-
124-
or, when using npm, prepend `local` to the script you want to invoke, e.g.:
125-
126-
```shell
127-
npm run local serve
128-
```
129-
130-
By using the `HUGO_MODULE_WORKSPACE` directive (either directly or via prefix `local` when using npm), the server now watches all files and directories inside the sibling directory `../docsy` , too. Any changes inside the local `docsy` theme clone are now immediately picked up (hot reload), you can instantly see the effect of your local edits.
13156

132-
In the command above, we used the environment variable `HUGO_MODULE_WORKSPACE` to tell hugo about the local workspace file `docsy.work`. Alternatively, you can declare the workspace file inside your settings file `hugo.toml`:
133-
134-
```toml
135-
[module]
136-
workspace = "docsy.work"
137-
```
57+
## Contributing
13858

139-
Your project's `hugo.toml` file already contains these lines, the directive for workspace assignment is commented out, however. Remove the two trailing comment characters '//' so that this line takes effect.
59+
We welcome contributions to improve the documentation! Please see our [contribution guidelines](CONTRIBUTING.md) for details on how to get started.
14060

14161
## Troubleshooting
14262

143-
As you run the website locally, you may run into the following error:
144-
145-
```console
146-
$ hugo server
147-
WARN 2023/06/27 16:59:06 Module "project" is not compatible with this Hugo version; run "hugo mod graph" for more information.
148-
Start building sites …
149-
hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended windows/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio
150-
Error: Error building site: "C:\Users\foo\path\to\docsy-example\content\en\_index.md:5:1": failed to extract shortcode: template for shortcode "blocks/cover" not found
151-
Built in 27 ms
152-
```
153-
154-
This error occurs if you are running an outdated version of Hugo. As of docsy theme version `v0.7.0`, hugo version `0.110.0` or higher is required.
155-
See this [section](https://www.docsy.dev/docs/get-started/docsy-as-module/installation-prerequisites/#install-hugo) of the user guide for instructions on how to install Hugo.
156-
157-
Or you may be confronted with the following error:
158-
63+
### Module Compatibility Error
64+
If you see an error about module compatibility, ensure you're using Hugo v0.110.0 or higher:
15965
```console
160-
$ hugo server
161-
162-
INFO 2021/01/21 21:07:55 Using config file:
163-
Building sites … INFO 2021/01/21 21:07:55 syncing static files to /
164-
Built in 288 ms
165-
Error: Error building site: TOCSS: failed to transform "scss/main.scss" (text/x-scss): resource "scss/scss/main.scss_9fadf33d895a46083cdd64396b57ef68" not found in file cache
66+
Error: Error building site: failed to extract shortcode: template for shortcode "blocks/cover" not found
16667
```
16768

168-
This error occurs if you have not installed the extended version of Hugo.
169-
See this [section](https://www.docsy.dev/docs/get-started/docsy-as-module/installation-prerequisites/#install-hugo) of the user guide for instructions on how to install Hugo.
170-
171-
Or you may encounter the following error:
172-
69+
### SCSS Processing Error
70+
If you encounter SCSS-related errors, make sure you have the extended version of Hugo installed:
17371
```console
174-
$ hugo server
175-
176-
Error: failed to download modules: binary with name "go" not found
72+
Error: TOCSS: failed to transform "scss/main.scss"
17773
```
17874

179-
This error occurs if you have not installed the `go` programming language on your system.
180-
See this [section](https://www.docsy.dev/docs/get-started/docsy-as-module/installation-prerequisites/#install-go-language) of the user guide for instructions on how to install `go`.
75+
### Go Binary Not Found
76+
If you see "binary with name 'go' not found", install the Go programming language from [golang.org](https://golang.org).
18177

78+
## Links
18279

183-
[alternate dashboard]: https://app.netlify.com/sites/goldydocs/deploys
184-
[deploys]: https://app.netlify.com/sites/docsy-example/deploys
185-
[Docsy user guide]: https://docsy.dev/docs
186-
[Docsy]: https://github.com/google/docsy
187-
[example.docsy.dev]: https://example.docsy.dev
188-
[Hugo theme module]: https://gohugo.io/hugo-modules/use-modules/#use-a-module-for-a-theme
189-
[Netlify]: https://netlify.com
190-
[Docker Compose documentation]: https://docs.docker.com/compose/gettingstarted/
80+
- [Hugo Documentation](https://gohugo.io/documentation/)
81+
- [Docsy Theme Documentation](https://www.docsy.dev/docs/)
82+
- [Java Operator SDK GitHub Repository](https://github.com/operator-framework/java-operator-sdk)

docs/content/en/docs/_index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@ linkTitle: Docs
44
menu: {main: {weight: 1}}
55
weight: 1
66
---
7-
8-

0 commit comments

Comments
 (0)