You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+15-26Lines changed: 15 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,13 @@
2
2
3
3
## TLDR (Too long; didn't read)
4
4
*[fork](https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project) the [repository](https://github.com/organizationname/samplepackagename) using the `Fork` button on GitHub.
5
-
* clone your forked repository on your computer with `git clone https://github.com/organizationname/samplepackagename`.
6
-
*[create a branch](https://docs.github.com/en/get-started/using-github/github-flow#create-a-branch) for your edits with `git branch new-branch`
7
-
* make your changes and run the style checkers with `nox -s style`
8
-
* once the style checks pass, commit your changes with `git commit -m "a short description of your changes"`
9
-
* push your changes with `git push -u origin new-branch`
5
+
* clone your forked repository on your computer: `git clone https://github.com/organizationname/samplepackagename`.
6
+
*[create a branch](https://docs.github.com/en/get-started/using-github/github-flow#create-a-branch) for your edits: `git checkout -b new-branch`
7
+
* make your changes
8
+
* run the style checkers: `nox -s style`
9
+
* add your changed files: `git add .`
10
+
* once the style checks pass, commit your changes: `git commit -m "a short description of your changes"`
11
+
* push your changes: `git push -u origin new-branch`
10
12
*[make a Pull Request](http://makeapullrequest.com/) for your branch from the main GitHub repository [PR page](https://github.com/organizationname/samplepackagename/pulls).
11
13
12
14
🎉 Thanks for considering contributing to this package! 🎉
@@ -53,7 +55,6 @@ contributions.
53
55
-[Code review](#code-review)
54
56
*[Publish a new release](#publish-a-new-release)
55
57
*[Update the Dependencies](#update-the-dependencies)
56
-
*[Release Checklist](#release-checklist)
57
58
58
59
## What Can I Do?
59
60
@@ -192,7 +193,7 @@ This environment now contains your local, editable version of samplepackagename,
192
193
Instead of editing the main branch, which should remain stable, we create a `branch` and edit that. To create a new branch, called `new-branch` use the following command:
193
194
194
195
```bash
195
-
git branch new-branch
196
+
git checkout -b new-branch
196
197
```
197
198
198
199
### Make your changes
@@ -277,9 +278,9 @@ Leave a comment in the PR and we'll help you out.
277
278
278
279
### Documentation
279
280
280
-
The Docs are build with `Sphinx` and `Read the Docs`.
281
+
The Docs are build with [Sphinx](https://www.sphinx-doc.org/en/master/) and hosted on [GitHub Pages](https://pages.github.com/).
281
282
282
-
> **Note:** The docs are automatically built on PR's by `RTD`, but it's good practice to build them manually before a PR, to check them for errors.
283
+
> **Note:** The docs are automatically built on each commit to a PR, but if you've made significant changes to the docs its good practice to build them manually before a PR, to check them for errors.
283
284
284
285
#### Check the build manually (optional)
285
286
@@ -292,16 +293,11 @@ You can build the docs using:
292
293
nox -s docs
293
294
```
294
295
295
-
or if you don't want them to automatically update
296
-
```bash
297
-
nox -s docs --non-interactive
298
-
```
296
+
Click the link to open your docs in a website which will automatically update as you make edits.
299
297
300
298
#### Automatically build the docs
301
299
302
-
Add, commit, and push all changes to GitHub in a Pull Request, and `RTD` should automatically build the docs.
303
-
304
-
In each PR, you will see section of the checks for `RTD`. Click on this to preview the docs for the PR.
300
+
Add, commit, and push all changes to GitHub in a Pull Request, and the docs should automatically be updated. If the PR can from the same repository (not a fork), then a preview of the updated docs should be available after a few minutes.
305
301
306
302
### Committing changes
307
303
@@ -382,6 +378,9 @@ This will almost always be done by the developers, but as a guide for them, here
382
378
383
379
Follow all the above instructions for formatting. Push your changes to a new or existing Pull Request. Once the automated GitHub Actions run (and pass), merge the PR into the main branch.
384
380
381
+
Open a new issue, selecting the `Release-Checklist` template, and follow the direction there.
382
+
383
+
385
384
### PyPI (pip)
386
385
PyPI release are made automatically via GitHub actions whenever a pull request is merged.
387
386
@@ -395,13 +394,3 @@ Once the new version is on conda, update the binder .yml file, as below.
395
394
To add or update a dependencies, add it to `pyproject.toml` either under `dependencies` or `optional-dependencies`. This will be included in the next build uploaded to PyPI.
396
395
397
396
If you add a dependency necessary for using the package, make sure to add it to the Binder config file and update the `environment.yml` file in the repository. See below.
398
-
399
-
## Release Checklist
400
-
* re-run any relevant notebooks
401
-
* check docs are building correctly using the GitHub actions link within the PR
402
-
* merge the PR
403
-
* wait for `PyPI` to publish the new version [here](https://pypi.python.org/pypi/samplepackagename)
404
-
* wait for a PR to be opened in the [feedstock](https://github.com/conda-forge/samplepackagename-feedstock)
405
-
* update any changed dependencies in the feedstock PR and merge
406
-
* wait for `conda` to publish the new version [here](https://anaconda.org/conda-forge/samplepackagename)
407
-
* manually add dependency changes to `environment.yml`
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,7 @@ Steps:
145
145
- for`Branch`, choose "gh-pages"
146
146
- for`Select folder`, choose "root"
147
147
- optionally choose a custom URL and hit save
148
+
- in each PR there should be a preview for the new site
148
149
- for every push to `main` (from a PR), the site will be updated
149
150
14) Finalize
150
151
- remove all the above instructions and raise any issues in this template's repository if you have any suggestion or found any errors in this template!
@@ -174,8 +175,8 @@ Short description of your package.
0 commit comments