Skip to content

Commit 9d35a11

Browse files
authored
Merge pull request #210 from spinkube/revamp-contributing-docs
Revamp contributing documentation
2 parents 2619b2d + 6d754bf commit 9d35a11

13 files changed

+376
-475
lines changed

content/en/docs/contrib/_index.md

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,10 @@
11
---
2-
title: Contributing
2+
title: How to get involved
33
description: How to contribute to the SpinKube project.
44
weight: 99
55
aliases:
66
- /docs/contribution-guidelines
77
---
88

9-
## Contributing to SpinKube documentation
10-
11-
If you've just spotted something you'd like to change while using the docs, Docsy has a shortcut for you:
12-
13-
1. Click **Edit this page** in the top right-hand corner of the page.
14-
2. If you don't already have an up-to-date fork of the project repo, you are prompted to get one - click **Fork this repository and propose changes** or **Update your Fork** to get an up-to-date version of the project to edit.
15-
16-
### Previewing your changes locally
17-
18-
If you want to run your own local Hugo server to preview your changes as you work:
19-
20-
1. Install [Go](https://go.dev/doc/install)
21-
2. Install [Hugo](https://gohugo.io/installation/)
22-
3. Clone this documentation repository (`git clone [email protected]:spinkube/documentation.git`)
23-
4. Run `hugo server` in this site's root (`developer`) directory. By default, the documentation will be available to view at http://localhost:1313/
24-
5. Continue with the usual GitHub workflow to edit files, commit them, push the
25-
changes up to your fork, and create a pull request
26-
27-
### Creating a documentation-related issue
28-
29-
If you've found a problem in the docs, but you're not sure how to fix it yourself, please create an issue in the [documentation repository](https://github.com/spinkube/documentation/issues). You can also create an issue about a specific page by clicking the **Create Issue** button in the top right-hand corner of the page.
30-
31-
## Contributing to the Containerd Shim Spin project
32-
33-
For information about contributing to the Containerd Shim Spin project visit the [containerd-shim-spin GitHub repository](https://github.com/spinkube/containerd-shim-spin).
34-
35-
## Contributing to the Runtime Class Manager project
36-
37-
For information about contributing to the Spin Operator project visit the [runtime-class-manager GitHub repository](https://github.com/spinkube/runtime-class-manager).
38-
39-
## Contributing to the Spin Operator project
40-
41-
For information about contributing to the Spin Operator project visit the [spin-operator GitHub repository](https://github.com/spinkube/spin-operator).
42-
43-
## Contributing to the spin kube Plugin project
44-
45-
For information about contributing to the spin kube Plugin project visit the [spin-plugin-kube GitHub repository](https://github.com/spinkube/spin-plugin-kube).
9+
SpinKube is an open source community-driven project. You can contribute in many ways, either to the
10+
project or to the wider community.

content/en/docs/contrib/feedback.md

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
---
2+
title: Advice for new contributors
3+
description: Are you a contributor and not sure what to do? Want to help but just don't know how to get started? This is the section for you.
4+
weight: 1
5+
aliases:
6+
- /docs/contrib/feedback
7+
- /docs/spin-operator/support/feedback
8+
---
9+
10+
This page contains more general advice on ways you can contribute to SpinKube, and how to approach
11+
that.
12+
13+
If you are looking for a reference on the details of making code contributions, see the [Writing
14+
code]({{< ref "writing-code" >}}) documentation.
15+
16+
## First steps
17+
18+
Start with these steps to be successful as a contributor to SpinKube.
19+
20+
### Join the conversation
21+
22+
It can be argued that collaboration and communication are the most crucial aspects of open source
23+
development. Gaining consensus on the direction of the project, and that your work is aligned with
24+
that direction, is key to getting your work accepted. This is why it is important to join the
25+
conversation early and often.
26+
27+
To join the conversation, visit the `#spinkube` channel on the [CNCF
28+
Slack](https://cloud-native.slack.com/archives/C06PC7JA1EE).
29+
30+
### Read the documentation
31+
32+
The SpinKube documentation is a great place to start. It contains information on how to get started
33+
with the project, how to contribute, and how to use the project. The documentation is also a great
34+
place to find information on the project's architecture and design.
35+
36+
SpinKube's documentation is great but it is not perfect. If you find something that is unclear or
37+
incorrect, please submit a pull request to fix it. See the guide on [writing documentation]({{< ref
38+
"writing-documentation" >}}) for more information.
39+
40+
### Triage issues
41+
42+
If an issue reports a bug, try and reproduce it. If you can reproduce it and it seems valid, make a
43+
note that you confirmed the bug. Make sure the issue is labeled properly. If you cannot reproduce
44+
the bug, ask the reporter for more information.
45+
46+
### Write tests
47+
48+
Consider writing a test for the bug's behavior, even if you don't fix the bug itself.
49+
50+
issues labeled `good first issue` are a great place to start. These issues are specifically tagged
51+
as being good for new contributors to work on.
52+
53+
## Guidelines
54+
55+
As a newcomer on a large project, it's easy to experience frustration. Here's some advice to make
56+
your work on SpinKube more useful and rewarding.
57+
58+
### Pick a subject area that you care about, that you are familiar with, or that you want to learn about
59+
60+
You don't already have to be an expert on the area you want to work on; you become an expert through
61+
your ongoing contributions to the code.
62+
63+
### Start small
64+
65+
It's easier to get feedback on a little issue than on a big one, especially as a new contributor;
66+
the maintainters are more likely to have time to review a small change.
67+
68+
### If you're going to engage in a big task, make sure that your idea has support first
69+
70+
This means getting someone else to confirm that a bug is real before you fix the issue, and ensuring
71+
that there's consensus on a proposed feature before you go implementing it.
72+
73+
### Be bold! Leave feedback!
74+
75+
Sometimes it can be scary to put your opinion out to the world and say "this issue is correct" or
76+
"this patch needs work", but it's the only way the project moves forward. The contributions of the
77+
broad SpinKube community ultimately have a much greater impact than that of any one person. We can't
78+
do it without you!
79+
80+
### Err on the side of caution when marking things ready for review
81+
82+
If you're really not certain if a pull request is ready for review, don't mark it as such. Leave a
83+
comment instead, letting others know your thoughts. If you're mostly certain, but not completely
84+
certain, you might also try asking on [Slack](https://cloud-native.slack.com/archives/C06PC7JA1EE)
85+
to see if someone else can confirm your suspicions.
86+
87+
### Wait for feedback, and respond to feedback that you receive
88+
89+
Focus on one or two issues, see them through from start to finish, and repeat. The shotgun approach
90+
of taking on lots of issues and letting some fall by the wayside ends up doing more harm than good.
91+
92+
### Be rigorous
93+
94+
When we say "this pull request must have documentation and tests", we mean it. If a patch doesn't
95+
have documentation and tests, there had better be a good reason. Arguments like "I couldn't find any
96+
existing tests of this feature" don't carry much weight; while it may be true, that means you have
97+
the extra-important job of writing the very first tests for that feature, not that you get a pass
98+
from writing tests altogether.
99+
100+
### Be patient
101+
102+
It's not always easy for your issue or your patch to be reviewed quickly. This isn't personal. There
103+
are a lot of issues and pull requests to get through.
104+
105+
Keeping your patch up to date is important. Review the pull request on GitHub to ensure that you've
106+
addressed all review comments.

content/en/docs/contrib/running-locally.md

Lines changed: 0 additions & 137 deletions
This file was deleted.

content/en/docs/contrib/running-on-a-cluster.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)