Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

website: add contributing section #3752

Merged
merged 2 commits into from
Aug 25, 2021

Conversation

srenatus
Copy link
Contributor

This is taken as-is from CONTRIBUTING.md for starters. The subsection
markup has been adjusted as there can only be one "# header 1" in a
document.

@srenatus srenatus force-pushed the sr/website/contributing branch 2 times, most recently from a891087 to e63c623 Compare August 20, 2021 10:16
@srenatus srenatus marked this pull request as ready for review August 20, 2021 10:20
Copy link
Member

@tsandall tsandall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking we'd take the existing CONTRIBUTING.md and DEVELOPMENT.md and move them into the website docs/content. We could update the existing CONTRIBUTING.md and DEVELOPMENT.md files to redirect people to the new location. WDYT?

@srenatus
Copy link
Contributor Author

Alright, I'll move the development.md content and update the old files.

Will have to figure out if the "Contributing" link that Github builds here can be altered, or would follow a symlink, or how it works in general... 👇
image

@srenatus srenatus force-pushed the sr/website/contributing branch from e63c623 to 555734d Compare August 23, 2021 08:31
@@ -5,9 +5,7 @@ weight: 30
restrictedtoc: true
---

## Monitoring
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found this looking a bit silly, updated:
image
⬇️
image


## Workflow

### Fork, clone, create a branch
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had a list here, but that suffered from gohugoio/hugo#2928. So, reformatted this slightly...

@ashutosh-narkar
Copy link
Member

ashutosh-narkar commented Aug 23, 2021

Nit: Instead of just adding a link to the new location in the existing CONTRIBUTING.md and DEVELOPMENT.md doc, we could say something like "Want to contribute to OPA? Please refer to OPA's contribution guidelines to find out how you can help."

Unless we plan to delete the file, not sure how that will look.

@srenatus
Copy link
Contributor Author

I kind of like the simplicity of the symlink, see https://github.com/open-policy-agent/opa/tree/25643327cbe138d10659221ef266a9781d04e0a9, but I can add some words instead.

Copy link
Member

@ashutosh-narkar ashutosh-narkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kind of like the simplicity of the symlink, see https://github.com/open-policy-agent/opa/tree/25643327cbe138d10659221ef266a9781d04e0a9, but I can add some words instead.

I was looking at it from the pov of someone new wanting to contribute to OPA. But since we are adding a new section in the docs we can always point them there I think 🤷‍♂️ .

@srenatus
Copy link
Contributor Author

Thought about this some more, and I think you're right. Adding a sentence or two there doesn't cost us, and it's a nicer welcome. After all, the audience is potentially different, it's probably wrong to assume that all code-reading happens via github. I'll get that done tomorrow 👍

This is taken as-is from CONTRIBUTING.md for starters. The subsection
markup has been adjusted as there can only be one "# header 1" in a
document. Also done some light copy-editing.

Also adds the DEVELOPMENT.md content, slightly reformatted because of
bugs in our old hugo version. Code blocks in lists would look all wonky.

Both CONTRIBUTING.md and DEVELOPMENT.md now refer to the corresponding
website sections. As of now, it'll be `edge`, we can flip it to `latest`
after the next release.

Fixes open-policy-agent#3751.

Signed-off-by: Stephan Renatus <[email protected]>
@srenatus srenatus force-pushed the sr/website/contributing branch from 2564332 to 3747472 Compare August 24, 2021 08:08
@srenatus
Copy link
Contributor Author

https://github.com/open-policy-agent/opa/blob/3747472a12e0b8aadec79573046e0371198675e1/CONTRIBUTING.md is indeed better than a symlink. Could you please review this once more, @ashutosh-narkar? 😃

Copy link
Member

@ashutosh-narkar ashutosh-narkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@srenatus srenatus merged commit c918a4b into open-policy-agent:main Aug 25, 2021
@srenatus srenatus deleted the sr/website/contributing branch August 25, 2021 06:38
dolevf pushed a commit to dolevf/opa that referenced this pull request Nov 4, 2021
…agent#3752)

This is taken as-is from CONTRIBUTING.md for starters. The subsection
markup has been adjusted as there can only be one "# header 1" in a
document. Also done some light copy-editing.

Also adds the DEVELOPMENT.md content, slightly reformatted because of
bugs in our old hugo version. Code blocks in lists would look all wonky.

Both CONTRIBUTING.md and DEVELOPMENT.md now refer to the corresponding
website sections. As of now, it'll be `edge`, we can flip it to `latest`
after the next release.

Fixes open-policy-agent#3751.

Signed-off-by: Stephan Renatus <[email protected]>
Signed-off-by: Dolev Farhi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants