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

update contribution guide #61

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
efd5f2d
Fix formatting and improve clarity in documentation files
andersy005 Mar 13, 2025
0e009c3
Remove unnecessary whitespace in contributing, environments, and styl…
andersy005 Mar 13, 2025
f3efdb2
Merge branch 'main' into update-contributor-guide
andersy005 Mar 13, 2025
860f486
Remove unnecessary whitespace in data science index file
andersy005 Mar 13, 2025
da9bc35
Fix formatting and improve links in conduct and GitHub documentation
andersy005 Mar 13, 2025
6c27fc1
Update data science documentation to reflect new tools and installati…
andersy005 Mar 13, 2025
77d1bc9
Improve documentation by adding email link, correcting guide name, an…
andersy005 Mar 13, 2025
e2b5102
Enhance data science environments documentation with detailed descrip…
andersy005 Mar 13, 2025
5458d2e
Refactor contributing guide to improve structure and clarity
andersy005 Mar 13, 2025
e91be8d
Add links to data science and front-end contributor guides in the ind…
andersy005 Mar 13, 2025
5209b85
Remove outdated core projects section from data science index page
andersy005 Mar 13, 2025
de28538
remove section per @norlandrhagen suggestion
andersy005 Mar 13, 2025
fbd3a9e
Apply suggestions from code review
andersy005 Mar 13, 2025
c2f3327
Remove front-end documentation and update index page for clarity
andersy005 Mar 13, 2025
710cb26
remove data science section
andersy005 Mar 13, 2025
868add0
Update contribution guide and fix index links for clarity
andersy005 Mar 13, 2025
6dca3a1
Clarify versioning schemes in contributing guide with structured details
andersy005 Mar 14, 2025
7767d90
Add guidance on when to use Docker for reproducible research, depende…
andersy005 Mar 14, 2025
de36463
Refine pre-commit instructions for clarity and remove unnecessary not…
andersy005 Mar 14, 2025
9f85cdd
Refactor environments documentation and update guide titles for clarity
andersy005 Mar 14, 2025
a7b90d6
Remove Code of Conduct document and update contributing guide link to…
andersy005 Mar 17, 2025
e6271a8
Update Conduct link to point to external Code of Conduct document
andersy005 Mar 17, 2025
f9ccbad
Replace environment comparison table with a CarbonPlan component for …
andersy005 Mar 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions components/contents.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,10 @@ export const contents = {
Conduct: '/tech/conduct',
GitHub: '/tech/github',
},
'Data Science': {
Overview: '/tech/data-science',
Contributing: '/tech/data-science/contributing',
Environments: '/tech/data-science/environments',
Style: '/tech/data-science/style',
Testing: '/tech/data-science/testing',
},
'Front-end': {
Overview: '/tech/front-end',
Articles: '/tech/front-end/articles',
Contributing: '/tech/front-end/contributing',
Deployment: '/tech/front-end/deployment',
'Contributing Guide': {
Intro: '/tech/contributing',
Environments: '/tech/environments',
Style: '/tech/style',
Testing: '/tech/testing',
},
}
18 changes: 15 additions & 3 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Layout, Row, Column } from '@carbonplan/components'
import Heading from '../components/heading'
import { Column, Layout, Link, Row } from '@carbonplan/components'
import { Box, Text } from 'theme-ui'
import Card from '../components/card'
import Heading from '../components/heading'

const Index = () => {
return (
Expand All @@ -12,7 +13,18 @@ const Index = () => {
>
Docs
</Heading>
<Row sx={{ mt: [6, 7, 8, 9] }}>
<Row sx={{ mt: [4, 5, 6, 7] }}>
<Column start={[1, 2, 3, 3]} width={[6, 8, 9, 9]}>
<Box variant='text.mono'>
<Text>
You can also check out our{' '}
<Link href={'tech/'}> contributor guide </Link>
on how to contribute to our projects.
</Text>
</Box>
</Column>
</Row>
<Row sx={{ mt: [4, 5, 6, 7] }}>
<Column start={[1, 2, 3, 3]} width={[6, 8, 9, 9]}>
<Row columns={[2, 3, 3, 3]}>
<Card
Expand Down
2 changes: 1 addition & 1 deletion pages/tech/conduct.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[email protected].
[[email protected]](mailto:[email protected]).
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down
87 changes: 87 additions & 0 deletions pages/tech/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import Section from '../../components/section'

# Contribution Guide

This page serves as a general contribution guide for CarbonPlan data science projects. Some projects within the organization may also provide customized contribution guides.

## Getting Started

If you're new to contributing to CarbonPlan projects, here are some resources to help you get started:

- Familiarize yourself with our [GitHub organization](https://github.com/carbonplan)
- Read our [Code of Conduct](./conduct)
- Check out our [style guide](./style) to understand our coding standards

## Reporting Issues

We use GitHub Issues to track bugs and feature requests. When submitting an issue:

- Use clear, descriptive titles
- Provide detailed steps to reproduce bugs
- For feature requests, explain why the feature would be useful
- Include relevant information about your environment

## Development Workflow

### Setting Up Your Environment

1. Fork the repository on GitHub
2. Clone your fork locally
3. Set up the development environment (project-specific instructions will be in each repository's README)

### Branch Strategy

- Work on a feature branch named appropriately (e.g., `feature/add-new-filter` or `fix/resolve-data-loading-issue`)
- Keep your branch focused on a single issue or feature
- Reference our [GitHub workflow](./github) for more details on branches and pull requests

### Code Contributions

When contributing code:

- Follow our [style guide](./style) for code formatting
- Write [tests](./testing) for new functionality
- Update documentation to reflect your changes
- Use [numpydoc](https://numpydoc.readthedocs.io/en/latest/format.html) style for Python docstrings

### Documentation Contributions

Good documentation is as important as good code:

- Keep language clear and concise
- Update examples to reflect code changes
- Ensure documentation builds without errors
- Preview changes locally before submitting

### Submitting Changes

1. Commit your changes with descriptive messages
2. Push to your fork
3. Submit a pull request from your branch to the main repository
4. Address feedback during code review

## Code Review Process

All submissions go through a review process:

- A maintainer will review your PR
- Automated tests must pass
- Changes may be requested before merging
- Be responsive to questions and feedback

## Project Versioning

The choice of versioning scheme depends on the project and its goals. We use two versioning schemes depending on the project type:

- [Calendar Versioning (CalVer)](https://calver.org/)
- The format is `YYYY.MM.DD` or `YYYY.MM.DD.N`
- Used for: projects with frequent updates (e.g., [offsets-db-data](https://github.com/carbonplan/offsets-db-data))
- When: release schedule is time-based rather than feature-based
- [Semantic Versioning (SemVer)](https://semver.org/)
- The format is `MAJOR.MINOR.PATCH` (e.g., `1.2.3`)
- Used for: projects with a more stable release cycle (e.g., [cmip6-downscaling](https://github.com/carbonplan/cmip6-downscaling))
- When: breaking changes need to be communicated clearly and new features are added in a backwards-compatible manner.

export default ({ children }) => (

<Section name='contributing'>{children}</Section>)
26 changes: 0 additions & 26 deletions pages/tech/data-science/contributing.md

This file was deleted.

11 changes: 0 additions & 11 deletions pages/tech/data-science/environments.md

This file was deleted.

30 changes: 0 additions & 30 deletions pages/tech/data-science/index.md

This file was deleted.

139 changes: 0 additions & 139 deletions pages/tech/data-science/style.md

This file was deleted.

21 changes: 0 additions & 21 deletions pages/tech/data-science/testing.md

This file was deleted.

Loading