Skip to content

Commit 72dd7e8

Browse files
authored
Update CONTRIBUTING, SUPPORT, and CODE_OF_CONDUCT (PaloAltoNetworks#65)
* Update CONTRIBUTING.md * Add SUPPORT.md * Link SUPPORT.md from README.md * Update CODE_OF_CONDUCT.md
1 parent efdfbc4 commit 72dd7e8

File tree

4 files changed

+107
-200
lines changed

4 files changed

+107
-200
lines changed

CODE_OF_CONDUCT.md

+46-98
Original file line numberDiff line numberDiff line change
@@ -2,127 +2,75 @@
22

33
## Our Pledge
44

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.
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
1411

1512
## Our Standards
1613

17-
Examples of behavior that contributes to a positive environment for our
18-
community include:
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
1916

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
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2722

28-
Examples of unacceptable behavior include:
23+
Examples of unacceptable behavior by participants include:
2924

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
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
3328
- Public or private harassment
34-
- Publishing others' private information, such as a physical or email
35-
address, without their explicit permission
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
3631
- Other conduct which could reasonably be considered inappropriate in a
3732
professional setting
3833

39-
## Enforcement Responsibilities
34+
## Our Responsibilities
4035

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.
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
4539

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.
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
5045

5146
## Scope
5247

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.
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
5854

5955
## Enforcement
6056

6157
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62-
reported to the community leaders responsible for enforcement at
63-
@bourdakos1 on Twitter.
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
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
8463

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.
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
11467

11568
## Attribution
11669

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.
120-
121-
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122-
enforcement ladder](https://github.com/mozilla/diversity).
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
12372

12473
[homepage]: https://www.contributor-covenant.org
12574

126-
For answers to common questions about this code of conduct, see the FAQ at
127-
https://www.contributor-covenant.org/faq. Translations are available at
128-
https://www.contributor-covenant.org/translations.
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

+42-102
Original file line numberDiff line numberDiff line change
@@ -1,118 +1,58 @@
1-
# Contributing to Docusaurus OpenAPI
1+
# How to contribute
22

3-
Our goal is to make API documentation a seamless experience for both the developers creating and the ones using them. In order to achieve this, we built Docusaurus OpenAPI from scratch to be a native extension to Docusaurus. If you're interested in contributing to Docusaurus OpenAPI, hopefully, this document makes the process for contributing easier.
3+
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
44

5-
## Get Involved
5+
It's people like you that make security open source such a force in preventing
6+
successful cyber-attacks. Following these guidelines helps keep the project
7+
maintainable, easy to contribute to, and more secure. Thank you for taking the
8+
time to follow this guide.
69

7-
There are many ways to contribute, and many of them do not involve writing any code. Here's a few ideas to get started:
10+
## Where to start
811

9-
- Simply start using Docusaurus OpenAPI. Does everything work as expected? If not, we're always looking for improvements. Let us know by [opening an issue](https://github.com/cloud-annotations/docusaurus-plugin-openapi/issues/new).
10-
- Look through the [open issues](https://github.com/cloud-annotations/docusaurus-plugin-openapi/issues). Provide workarounds, ask for clarification, or suggest labels.
11-
- If you find an issue you would like to fix, [open a pull request](https://github.com/cloud-annotations/docusaurus-plugin-openapi/blob/main/CONTRIBUTING.md#your-first-pull-request). Issues tagged as _[Good first issue are](https://github.com/cloud-annotations/docusaurus-plugin-openapi/labels/Good%20first%20issue)_ a good place to get started.
12-
- Read through our documentation (READMEs or even this page). If you find anything that is confusing or can be improved, you can click the "pencil ✏️" icon at the top of the file, which will take you to the GitHub interface to make and propose changes.
12+
There are many ways to contribute. You can fix a bug, improve the documentation,
13+
submit bug reports and feature requests, or take a first shot at a feature you
14+
need for yourself.
1315

14-
Contributions are very welcome. If you think you need help planning your contribution, please reach out to our maintainer on Twitter at [@bourdakos1](https://twitter.com/bourdakos1) and let us know you are looking for a bit of help.
16+
Pull requests are necessary for all contributions of code or documentation.
1517

16-
## Our Development Process
18+
## New to open source?
1719

18-
All work on Docusaurus OpenAPI happens directly on GitHub. All changes will be public through pull requests and go through the same review process.
20+
If you're **new to open source** and not sure what a pull request is, welcome!!
21+
We're glad to have you! All of us once had a contribution to make and didn't
22+
know where to start.
1923

20-
All pull requests will be checked by the continuous integration system, GitHub actions. There are unit tests, end-to-end tests and code style/lint tests.
24+
Even if you don't write code for your job, don't worry, the skills you learn
25+
during your first contribution to open source can be applied in so many ways,
26+
you'll wonder what you ever did before you had this knowledge. It's worth
27+
learning.
2128

22-
### Branch Organization
29+
[Learn how to make a pull request](https://github.com/PaloAltoNetworks/.github/blob/master/Learn-GitHub.md#learn-how-to-make-a-pull-request)
2330

24-
Docusaurus OpenAPI has one primary branch `main`. We don't use separate branches for development or for upcoming releases.
31+
## Fixing a typo, or a one or two line fix
2532

26-
## Proposing a Change
33+
Many fixes require little effort or review, such as:
2734

28-
If you would like to request a new feature or enhancement, but are not yet thinking about opening a pull request, you can also [open an issue](https://github.com/cloud-annotations/docusaurus-plugin-openapi/issues/new).
35+
> - Spelling / grammar, typos, white space and formatting changes
36+
> - Comment clean up
37+
> - Change logging messages or debugging output
38+
> These small changes can be made directly in GitHub if you like.
2939
30-
If you intend to change the public API (e.g., changes to the options available to the user in `docusaurus.config.js`) or make any non-trivial changes to the implementation, we recommend filing an issue to propose your change. This lets us reach an agreement on your proposal before you put significant effort into it. These types of issues should be rare.
40+
Click the pencil icon in GitHub above the file to edit the file directly in
41+
GitHub. This will automatically create a fork and pull request with the change.
42+
See:
43+
[Make a small change with a Pull Request](https://www.freecodecamp.org/news/how-to-make-your-first-pull-request-on-github/)
3144

32-
If you're only fixing a bug, it's fine to submit a pull request right away but we still recommend filing an issue detailing what you're fixing. This is helpful in case we don't accept that specific fix but want to keep track of the issue.
45+
## Bug fixes and features
3346

34-
### Bugs
47+
For something that is bigger than a one or two line fix, go through the process
48+
of making a fork and pull request yourself:
3549

36-
We use [GitHub Issues](https://github.com/cloud-annotations/docusaurus-plugin-openapi/issues) for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new, unreported bug, you can submit a bug report.
37-
38-
If you have questions about using Docusaurus OpenAPI, contact our maintainer on Twitter at [@bourdakos1](https://twitter.com/bourdakos1), and we will do our best to answer your questions.
39-
40-
## Pull Requests
41-
42-
### Your First Pull Request
43-
44-
So you have decided to contribute code back to upstream by opening a pull request. You've invested a good chunk of time, and we appreciate it. We will do our best to work with you and get the PR looked at.
45-
46-
#### Repo Setup
47-
48-
1. Fork [the repository](https://github.com/cloud-annotations/docusaurus-plugin-openapi) and create your branch from `main`.
49-
50-
```sh
51-
git clone [email protected]:your-username/docusaurus-plugin-openapi.git
52-
git checkout -b your-feature-or-fix-name
53-
```
54-
55-
#### Installation
56-
57-
1. Ensure you have [Yarn](https://classic.yarnpkg.com/lang/en/docs/install/) installed.
58-
2. After cloning the repository, run `yarn install` in the root of the repository.
59-
60-
```sh
61-
cd where-you-cloned-docusaurus-plugin-openapi
62-
yarn install
63-
```
64-
65-
#### Build
66-
67-
1. Build all packages and generate the static content of the demo.
68-
69-
```sh
70-
yarn build
71-
```
72-
73-
2. Serve the generated demo site.
74-
75-
```sh
76-
yarn serve
77-
```
78-
79-
3. Visit [http://localhost:3000/](http://localhost:3000/) or wherever the build directory is being served.
80-
81-
#### Development Workflow
82-
83-
For faster iterations, packages can be built and watched by running:
84-
85-
```sh
86-
yarn watch
87-
```
88-
89-
And in a seperate terminal window, the demo can be built and watched by running:
90-
91-
```sh
92-
yarn watch:demo
93-
```
94-
95-
#### Testing
96-
97-
Before we merge your code into our main branch, we expect it to pass four test groups (format, linting, unit tests and end-to-end tests).
98-
99-
1. **Format**: We use Husky pre-commit hooks and Prettier to automatically format your code, so you shouldn't need to worry too much about this one.
100-
Husky and Prettier
101-
102-
2. **Linting**: We use ESLint to testing for linting errors and warnings. To check to see if your code has any linting issues you can run:
103-
104-
```sh
105-
yarn lint
106-
```
107-
108-
3. **Unit Tests**: We use Jest for unit testing. Run the unit tests with:
109-
110-
```sh
111-
yarn test
112-
```
113-
114-
4. **End-to-End Tests**: We use Cypress for end-to-end testing. Run the end-to-end with:
115-
116-
```sh
117-
yarn test:cypress
118-
```
50+
> 1. Create your own fork of the code
51+
> 2. Clone the fork locally
52+
> 3. Make the changes in your local clone
53+
> 4. Push the changes from local to your fork
54+
> 5. Create a pull request to pull the changes from your fork back into the
55+
> upstream repository
56+
> Please use clear commit messages so we can understand what each commit does.
57+
> We'll review every PR and might offer feedback or request changes before
58+
> merging.

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,7 @@ For more insight into why we decided to completely fork see [#47](https://github
6868
<a href="https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/graphs/contributors">
6969
<img src="https://contrib.rocks/image?repo=PaloAltoNetworks/docusaurus-openapi-docs" />
7070
</a>
71+
72+
## Support
73+
74+
Please read [SUPPORT.md](SUPPORT.md) for details on how to get support for this project.

SUPPORT.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Community Supported
2+
3+
The software and templates in the repo are released under an as-is, best effort,
4+
support policy. This software should be seen as community supported and Palo
5+
Alto Networks will contribute our expertise as and when possible. We do not
6+
provide technical support or help in using or troubleshooting the components of
7+
the project through our normal support options such as Palo Alto Networks
8+
support teams, or ASC (Authorized Support Centers) partners and backline support
9+
options. The underlying product used (the VM-Series firewall) by the scripts or
10+
templates are still supported, but the support is only for the product
11+
functionality and not for help in deploying or using the template or script
12+
itself. Unless explicitly tagged, all projects or work posted in our GitHub
13+
repository (at https://github.com/PaloAltoNetworks) or sites other than our
14+
official Downloads page on https://support.paloaltonetworks.com are provided
15+
under the best effort policy.

0 commit comments

Comments
 (0)