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

Move contributor documentation to CONTRIBUTING.md #7381

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

hl662
Copy link
Contributor

@hl662 hl662 commented Nov 15, 2024

Attempt to improve clarity between our documentation for users, and contributors of our repo.

From our root README.md, move relevant knowledge needed for contributors to the CONTRIBUTING.md, leaving open space to promote our root README to new users.

@hl662 hl662 self-assigned this Nov 15, 2024
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
@hl662 hl662 marked this pull request as ready for review November 22, 2024 20:21
@hl662 hl662 requested a review from a team as a code owner November 22, 2024 20:21
CONTRIBUTING.md Outdated

## Source Code Edit Workflow
Once you've set up the repo, you can move on to making changes to the source code by following the steps below:
1. At the root of the repo, run `git checkout -b "<your-branch-name>"`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this is very obvious, but suggesting just to be consistent in always explicitly listing what a command is doing.

Suggested change
1. At the root of the repo, run `git checkout -b "<your-branch-name>"`.
1. Create your own branch by running `git checkout -b "<your-branch-name>"`.

Copy link
Member

Choose a reason for hiding this comment

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

technically dont need to run this command at the root, you could theoretically run this in any sub dir

Copy link
Member

Choose a reason for hiding this comment

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

maybe we should define branch naming policies to help more easily review contirbutions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay, I added a new sub section on branch naming policies

CONTRIBUTING.md Outdated

## Source Code Edit Workflow
Once you've set up the repo, you can move on to making changes to the source code by following the steps below:
1. At the root of the repo, run `git checkout -b "<your-branch-name>"`.
Copy link
Member

Choose a reason for hiding this comment

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

technically dont need to run this command at the root, you could theoretically run this in any sub dir

README.md Outdated Show resolved Hide resolved

- This is a [sample](https://www.itwinjs.org/sandboxes/iTwinPlatform/3d%20Viewer) of an iTwin viewer - a frontend application that displays infrastructure projects on browsers. It uses many of the APIs and libraries published from this repository.
- You can also look at [other samples](https://developer.bentley.com/samples/) which showcases the capabilities of iTwin.js, and the iTwin Platform.
## Prerequisites
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This looks pretty neat. I made a change to move the source code edit workflow section in CONTRIBUTING.md to use a collapsible block. The prereqs section of the root README isn't too text heavy yet, so I'm thinking we leave that alone for now, and revisit if the README gets too big

README.md Outdated Show resolved Hide resolved

- This is a [sample](https://www.itwinjs.org/sandboxes/iTwinPlatform/3d%20Viewer) of an iTwin viewer - a frontend application that displays infrastructure projects on browsers. It uses many of the APIs and libraries published from this repository.
Copy link
Member

Choose a reason for hiding this comment

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

thoughts on hiding the code, and just showing the viewer?

https://www.itwinjs.org/sandbox/iTwinPlatform/3d%20Viewer?mainHeader=hidden&editorPane=hidden&headers=hidden

go to the ellipses > embed sandbox > mess around with the option & copy the iframe url

Copy link
Contributor Author

Choose a reason for hiding this comment

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

our users will still be developers - it'll be nice to show them the coding panel - users can play around with the code, and the panel encourages their own discovery. (If the code is outdated, that's a different issue to tackle)

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated

## Source Code Edit Workflow
Once you've set up the repo, you can move on to making changes to the source code by following the steps below:
1. At the root of the repo, run `git checkout -b "<your-branch-name>"`.
Copy link
Member

Choose a reason for hiding this comment

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

maybe we should define branch naming policies to help more easily review contirbutions?

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
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.

5 participants