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

Add a CONTRIBUTING.md file for contribution guide. #110

Open
Suraj-kumar00 opened this issue Oct 7, 2024 · 9 comments
Open

Add a CONTRIBUTING.md file for contribution guide. #110

Suraj-kumar00 opened this issue Oct 7, 2024 · 9 comments
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@Suraj-kumar00
Copy link

Suraj-kumar00 commented Oct 7, 2024

  • An Installation guide of this project
  • Initial prerequisites
  • and all guidelines need to contribute to this project
@slashpai slashpai added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Oct 8, 2024
@slashpai
Copy link
Contributor

slashpai commented Oct 8, 2024

@AshwinSriram11 Since you are most familiar with website now, can you guide? :)

@Suraj-kumar00
Copy link
Author

Sure let's do it .

@AshwinSriram11
Copy link
Member

AshwinSriram11 commented Oct 8, 2024

You can check out https://prometheus-operator.dev/docs/getting-started/installation/ for installation, pre-requisites and https://prometheus-operator.dev/docs/community/contributing/ for contributing.

@ArthurSens
Copy link
Member

@Suraj-kumar00 can confirm, but I believe he is talking about the website, not prometheus operator.

If someone wants to contribute to the website, how does one set up the development environment, how does the contributor flow works here?

@Suraj-kumar00
Copy link
Author

@Suraj-kumar00 can confirm, but I believe he is talking about the website, not prometheus operator.

If someone wants to contribute to the website, how does one set up the development environment, how does the contributor flow works here?

Yeah @ArthurSens, you got it.

@AshwinSriram11
Copy link
Member

My bad! 😬 Currently, we only have the Readme for this repository. Setting up the website locally is explained in the readme and is pretty clear according to me, what we need to explain is how this repo and the main repo are functioning for the website.

Have you played around with the repo? Do you need any help? @Suraj-kumar00

@Suraj-kumar00
Copy link
Author

Hi @AshwinSriram11, yes i know that but as I know every os project has CONTRIBUTING.md file as usual so I create the issue but if it don't require for this project than its okay.

@AshwinSriram11
Copy link
Member

First, look into the synchronization.sh file which mentions the repositories that are being pulled for the needed docs. Then, from those repositories, we copy the docs needed for each guide of the website.

Then, all the docs that we copy go into the content folder, where each doc is copied to the location mentioned in the synchronization.sh file. To make changes to the pages on the website, you need to make changes to the docs in the source folder and then use make to pull the updated docs to this repo. Then, you can run hugo serve to view the updated website locally. TLDR, you need to open a PR in the main repo to change the .md file and make another PR in the website repo to preview it. If you add a new page, you need to also add a head content in each page to manage the order of the pages in the website.

Another part of the website is the styling. We are using a template from Doks to manage the CSS of the website. You can check out the template in the themes folder. But, if you want to make changes to the template then you would need to write your own html and css for a component. Example: Check out the layouts folder and you will find a link-card.html file which is used to style the card component in the website.

@AshwinSriram11
Copy link
Member

AshwinSriram11 commented Oct 8, 2024

Hi @AshwinSriram11, yes i know that but as I know every os project has CONTRIBUTING.md file as usual so I create the issue but if it don't require for this project than its okay.

We definitely need a contributing page. I was writing about how things work in this repo. You can pick this issue up 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants