Skip to content

Commit 4b4baf2

Browse files
authored
Add contributing/development pages (lensapp#1480)
Signed-off-by: Jari Kolehmainen <[email protected]>
1 parent 6a0dd4e commit 4b4baf2

File tree

8 files changed

+385
-42
lines changed

8 files changed

+385
-42
lines changed

CODE_OF_CONDUCT.md

+132
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the
26+
overall community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at
63+
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series
86+
of actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or
93+
permanent ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within
113+
the community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.0, available at
119+
[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
120+
121+
Community Impact Guidelines were inspired by
122+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123+
124+
For answers to common questions about this code of conduct, see the FAQ at
125+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
126+
at [https://www.contributor-covenant.org/translations][translations].
127+
128+
[homepage]: https://www.contributor-covenant.org
129+
[v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
130+
[Mozilla CoC]: https://github.com/mozilla/diversity
131+
[FAQ]: https://www.contributor-covenant.org/faq
132+
[translations]: https://www.contributor-covenant.org/translations

CONTRIBUTING.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Contributing to Lens
2+
3+
See [Contributing to Lens](https://docs.k8slens.dev/latest/contributing/) documentation.

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ publish-npm: build-npm
9999
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
100100
cd src/extensions/npm/extensions && npm publish --access=public
101101

102+
.PHONY: docs
103+
docs:
104+
yarn mkdocs-serve-local
105+
102106
.PHONY: clean-extensions
103107
clean-extensions:
104108
ifeq "$(DETECTED_OS)" "Windows"

README.md

+4-41
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Lens | The Kubernetes IDE
22

33
[![Build Status](https://dev.azure.com/lensapp/lensapp/_apis/build/status/lensapp.lens?branchName=master)](https://dev.azure.com/lensapp/lensapp/_build/latest?definitionId=1&branchName=master)
4-
[![Releases](https://img.shields.io/github/downloads/lensapp/lens/total.svg)](https://github.com/lensapp/lens/releases)
4+
[![Releases](https://img.shields.io/github/downloads/lensapp/lens/total.svg)](https://github.com/lensapp/lens/releases?label=Downloads)
55
[![Chat on Slack](https://img.shields.io/badge/chat-on%20slack-blue.svg?logo=slack&longCache=true&style=flat)](https://join.slack.com/t/k8slens/shared_invite/enQtOTc5NjAyNjYyOTk4LWU1NDQ0ZGFkOWJkNTRhYTc2YjVmZDdkM2FkNGM5MjhiYTRhMDU2NDQ1MzIyMDA4ZGZlNmExOTc0N2JmY2M3ZGI)
66

77
World’s most popular Kubernetes IDE provides a simplified, consistent entry point for developers, testers, integrators, and DevOps, to ship code faster at scale. Lens is the only IDE you’ll ever need to take control of your Kubernetes clusters. It is a standalone application for MacOS, Windows and Linux operating systems. Lens is an open source project and free!
@@ -25,49 +25,12 @@ World’s most popular Kubernetes IDE provides a simplified, consistent entry po
2525

2626
## Installation
2727

28-
Download a pre-built package from the [releases](https://github.com/lensapp/lens/releases) page. Lens can be also installed via [snapcraft](https://snapcraft.io/kontena-lens) (Linux only).
29-
30-
Alternatively on Mac:
31-
```
32-
brew cask install lens
33-
```
28+
See [Getting Started](https://docs.k8slens.dev/latest/getting-started/) page.
3429

3530
## Development
3631

37-
> Prerequisites: Nodejs v12, make, yarn
38-
39-
* `make dev` - builds and starts the app
40-
* `make test` - run tests
41-
42-
## Development (advanced)
43-
44-
Allows for faster separate re-runs of some of the more involved processes:
45-
46-
1. `yarn dev:main` compiles electron's main process app part
47-
1. `yarn dev:renderer` compiles electron's renderer app part
48-
1. `yarn dev:extension-types` compile declaration types for `@k8slens/extensions`
49-
1. `yarn dev-run` runs app in dev-mode and auto-restart when main process file has changed
50-
51-
## Development (documentation)
52-
53-
Run a local instance of `mkdocs serve` in a docker container for developing the Lens Documentation.
54-
55-
> Prerequisites: docker, yarn
56-
57-
* `yarn mkdocs-serve-local` - local build and serve of mkdocs with auto update enabled
58-
59-
Go to [localhost:8000](http://127.0.0.1:8000)
60-
61-
## Developer's ~~RTFM~~ recommended list:
62-
63-
- [TypeScript](https://www.typescriptlang.org/docs/home.html) (front-end/back-end)
64-
- [ReactJS](https://reactjs.org/docs/getting-started.html) (front-end, ui)
65-
- [MobX](https://mobx.js.org/) (app-state-management, back-end/front-end)
66-
- [ElectronJS](https://www.electronjs.org/docs) (chrome/node)
67-
- [NodeJS](https://nodejs.org/dist/latest-v12.x/docs/api/) (api docs)
68-
69-
32+
See [Development](https://docs.k8slens.dev/latest/contributing/development/) page.
7033

7134
## Contributing
7235

73-
Bug reports and pull requests are welcome on GitHub at https://github.com/lensapp/lens.
36+
See [Contributing](https://docs.k8slens.dev/latest/contributing/) page.

docs/contributing/development.md

+38-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,40 @@
11
# Development
22

3-
TBD
3+
Thank you for taking the time to make a contribution to Lens. The following document is a set of guidelines and instructions for contributing to Lens.
4+
5+
When contributing to this repository, please consider first discussing the change you wish to make by opening an issue.
6+
7+
## Recommended Reading:
8+
9+
- [TypeScript](https://www.typescriptlang.org/docs/home.html) (front-end/back-end)
10+
- [ReactJS](https://reactjs.org/docs/getting-started.html) (front-end, ui)
11+
- [MobX](https://mobx.js.org/) (app-state-management, back-end/front-end)
12+
- [ElectronJS](https://www.electronjs.org/docs) (chrome/node)
13+
- [NodeJS](https://nodejs.org/dist/latest-v12.x/docs/api/) (api docs)
14+
15+
## Local Development Environment
16+
17+
> Prerequisites: Nodejs v12, make, yarn
18+
19+
* `make dev` - builds and starts the app
20+
* `make clean` - cleanup local environment build artifacts
21+
22+
23+
## Github Workflow
24+
25+
We Use [Github Flow](https://guides.github.com/introduction/flow/index.html), so all code changes are tracked via Pull Requests.
26+
A detailed guide on the recommended workflow can be found below:
27+
28+
* [Github Workflow](./github_workflow.md)
29+
30+
## Code Testing
31+
32+
All submitted PRs go through a set of tests and reviews. You can run most of these tests *before* a PR is submitted.
33+
In fact, we recommend it, because it will save on many possible review iterations and automated tests.
34+
The testing guidelines can be found here:
35+
36+
* [Contributor's Guide to Testing](./testing.md)
37+
38+
## License
39+
40+
By contributing, you agree that your contributions will be licensed as described in [LICENSE](https://github.com/lensapp/lens/blob/master/LICENSE).

docs/contributing/documentation.md

+11
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,14 @@ When you create a new pull request, we expect some requirements to be met.
2020
* When updating documentation, add `Update Documentation:` before the title. E.g. `Update Documentation: Getting Started`
2121
* If your Pull Request closes an issue, you must write `Closes #ISSUE_NUMBER` where the ISSUE_NUMBER is the number in the end of the link url or the relevent issue. This will link your pull request to the issue, and when it is merged, the issue will close.
2222
* For each pull request made, we run tests to check if there are any broken links, the markdown formatting is valid, and the linter is passing.
23+
24+
25+
## Testing Documentation Site Locally
26+
27+
Run a local instance of `mkdocs` in a docker container for developing the Lens Documentation.
28+
29+
> Prerequisites: docker, yarn
30+
31+
* `make docs` - local build and serve of mkdocs with auto update enabled
32+
33+
Go to [localhost:8000](http://127.0.0.1:8000).

0 commit comments

Comments
 (0)