Skip to content

Create Style Guide #77

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Create Style Guide #77

wants to merge 1 commit into from

Conversation

rayhanadev
Copy link
Member

Closes #65

@rayhanadev rayhanadev added the meta label Feb 9, 2025
@rayhanadev rayhanadev self-assigned this Feb 9, 2025
✅ Correct

```markdown
[@rayhanadev](https://github.com/purduehackers/dark-forest/blob/main/people/organizers/rayhanadev.md)
Copy link
Member

Choose a reason for hiding this comment

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

it's not abundantly clear from this where i get this username. should mention explicitly that the username should be pulled from dark-forest

Comment on lines +67 to +69
As long as it generally makes sense, you should always feel free to create
new files and folders in the Evergreen repository. Some general tips for when
to create new files and folders:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
As long as it generally makes sense, you should always feel free to create
new files and folders in the Evergreen repository. Some general tips for when
to create new files and folders:
As long as it generally makes sense, you should always feel free to create
new files and folders in the Evergreen repository. Some tips for when
to create new files and folders:

pedantic nit but you're using "generally" too much :P

Comment on lines +85 to +90
❌ Incorrect

```plaintext
/meta/structure.md
/meta/roles-and-divisons.md
```
Copy link
Member

Choose a reason for hiding this comment

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

This example is not communicated well in the above text. The above text says "feel free to create files, but split them out if they're too complex." The "feel free to create files" part confuses the rule. I think this rule should be simplified to something like: "Keep each page focused to one topic; do not make a file too broad or cover more than one specific topic"


## README.md vs Other Files

It is generally recommended to use `<project-name>/README.md` when creating a
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
It is generally recommended to use `<project-name>/README.md` when creating a
Use `<project-name>/README.md` when creating a

It is generally recommended to use `<project-name>/README.md` when creating a
new project in Evergreen vs. adding a `<project-name>.md` file. This is because
the README file is the first file that is displayed when you navigate to a
folder in GitHub and it is generally the first file that people will look at
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
folder in GitHub and it is generally the first file that people will look at
folder in GitHub and it is the first file that people will look at

Comment on lines +104 to +127
✅ Correct

```plaintext
events/hack-night
├── README.md
├── attendance.md
├── badges.md
└── circles
├── README.md
├── data-science.md
└── systems.md
```

❌ Incorrect

```plaintext
events
└── hack-night.md

events/hack-night
├── hack-night.md
└── circles
└── circles.md
```
Copy link
Member

@MatthewStanciu MatthewStanciu Feb 9, 2025

Choose a reason for hiding this comment

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

These examples having slightly different file trees confuses the example. The point of this example is to illustrate using README.md over item.md, so the trees should be at parity in every way except for this.

Comment on lines +131 to +136
You should never write an attribution in Evergreen. This philosophy is because
we use Git/Github to track changes to the documentation and it is easy to see
who wrote what and when and get a clearer picture of the document's history.
Adding an attribution to a page is redundant and adds complexity to what needs
to be updated in documentation, therefore it is preferred that you do not add
attributions to pages.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
You should never write an attribution in Evergreen. This philosophy is because
we use Git/Github to track changes to the documentation and it is easy to see
who wrote what and when and get a clearer picture of the document's history.
Adding an attribution to a page is redundant and adds complexity to what needs
to be updated in documentation, therefore it is preferred that you do not add
attributions to pages.
Do not write an attribution to an Evergreen document. We use Git/GitHub to track changes, including attribution. Adding your own attribution to a page is redundant and adds complexity.

Comment on lines +155 to +158
When adding images to the Evergreen documentation, you should always add them
to a folder relative to the project. For example, if you are adding an image to
the [Hack Night](/events/hack-night/README.md) folder, you should add the image
to the `events/hack-night/images` folder, even if a subfolder is using the image.
Copy link
Member

Choose a reason for hiding this comment

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

The wording on this is confusing and creates lots of questions. What does "project" mean and what if you're not adding documentation for a project?

The subfolder part is confusing to me too. Where exactly should the image be added? What is considered a subfolder and not?

I think it's also worth adding more correct/incorrect examples to this rule's examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Evergreen Standards/Style Guide
2 participants