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: portal/contributing.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Project Pythia Contributor's Guide
2
2
3
-
```{Note}
3
+
```{note}
4
4
This the top-level guide for Project Pythia and a great starting point for getting involved!
5
5
6
6
We also have specific guides for
@@ -143,7 +143,7 @@ command line tool for collaborative software version control, while
143
143
GitHub is an online, web-accessible service that greatly simplifies
144
144
using the powerful, yet often complex, Git.
145
145
146
-
```{Note}
146
+
```{note}
147
147
GitHub operates entirely within a web browser. You do not
148
148
need to install anything, but you will need to set up a free GitHub
149
149
account. Git is a command line tool that is most likely already
@@ -225,7 +225,7 @@ you wish to use it. Consult the repo-specific contributor’s guide
225
225
for information on “Building the site”, and
226
226
follow the steps described therein.
227
227
228
-
```{Note}
228
+
```{note}
229
229
Repository-specific contributor's
230
230
information can always be accessed by navigating your web browser
231
231
to the appropriate Project Pythia GitHub repository,
@@ -326,7 +326,7 @@ on this later.
326
326
327
327
For further information see the [GitHub docs on forking a repo](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo).
328
328
329
-
```{Note}
329
+
```{note}
330
330
At this point you should have a local copy of the repository
331
331
in your current working directory. You can safely make changes to
332
332
any of the contents. Once you are ready to contribute your changes
@@ -390,7 +390,7 @@ $ git commit PATH_TO_NEW_FILE
390
390
391
391
Which will prompt you for a log message. Please provide something informative. If you make lots of changes, it is best to make multiple commits, broken up into related chunks. E.g. “fixed x”, “added documentation”, “added testing”.
392
392
393
-
```{Note}
393
+
```{note}
394
394
When executing `git commit` after `git add PATH_TO_NEW_FILE`,
395
395
specifying the path to the new file isn't stricly necessary. However,
396
396
in other instances the file path argument is required. We include it
@@ -411,7 +411,7 @@ $ git status
411
411
412
412
after your `commit` to verify everything looks as expected.
413
413
414
-
```{Note}
414
+
```{note}
415
415
`pre-commit` _hooks_ can sometimes be difficult to satisfy. You
Copy file name to clipboardExpand all lines: portal/cookbook-guide.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ The following is a step-by-step guide to creating a new Cookbook and getting it
10
10
11
11
Before you begin, ask yourself if the content you are developing for a cookbook would be better suited as an addition to an existing cookbook. The best place to discuss cookbook ideas is the [Project Pythia category of the Pangeo Discourse](https://discourse.pangeo.io/c/education/project-pythia/60).
12
12
13
-
```{Note}
13
+
```{note}
14
14
These instructions assume that your goal is to contribute a new Cookbook to the community-maintained collection housed on the [Pythia Cookbook Gallery](https://cookbooks.projectpythia.org).
15
15
16
16
Using the Pythia Cookbook template to create reproducible documents housed elsewhere is definitely possible! But we don't focus on that use case in this guide.
@@ -39,7 +39,7 @@ Before developing your cookbook, you should consider how it will access the data
39
39
40
40
Your cookbook is now ready to have content added!
41
41
42
-
```{Note}
42
+
```{note}
43
43
In the rest of this guide, we assume that you are familiar with the basics of using git and GitHub. If not, we strongly recommend reading through our [GitHub tutorials in Foundations](https://foundations.projectpythia.org/foundations/getting-started-github.html).
44
44
```
45
45
@@ -54,7 +54,7 @@ However, we recommend transfering to the Pythia organization early, for a few re
54
54
- Easier to get help from the Pythia infrastructure team
55
55
- Encourages collaboration
56
56
57
-
```{Note}
57
+
```{note}
58
58
You're still in control! You will always retain write access to your Cookbook repository even after transfering ownership to the Pythia organization.
59
59
60
60
Also, _don't worry about breaking anything!_ Your repo will not affect any other Project Pythia content until you initiate the request to list it on the [Cookbook Gallery](https://cookbooks.projectpythia.org) (see below...)
@@ -99,7 +99,7 @@ Your repository includes automation for building and publishing your Cookbook, p
99
99
100
100
In each of these files, in the field called `environment_name:`, replace `cookbook-dev` with the name you used in your `environment.yml` file (probably `<your-cookbook-name>-dev`). Commit these changes.
101
101
102
-
```{Note}
102
+
```{note}
103
103
If these workflow files look mysterious and you don't know anything about how GitHub Actions work, don't worry! The Pythia team will help with any problems that arise with the Cookbook automation.
104
104
```
105
105
@@ -167,7 +167,7 @@ Here's a handy trick for finding your published book:
167
167
168
168
The link to your published book will then be displayed on the home page of the repo.
169
169
170
-
```{Note}
170
+
```{note}
171
171
If you have transfered your repository to the ProjectPythia organization and also made a personal fork, the publishing pipeline automation will _only run on the upstream fork on the ProjectPythia organization_ so there's only one copy of the "published" book.
172
172
173
173
It's possible to enable the workflows on your personal fork, but usually unneccesary if you preview your work via Pull Requests (see next section)!
@@ -187,7 +187,7 @@ Not satisfied? Keep making changes! Every new push to the feature branch on your
187
187
188
188
### Building on the Pythia Binder
189
189
190
-
```{Note}
190
+
```{note}
191
191
By default, notebooks are executed on the free GitHub Actions service. This works fine for most lightweight Cookbooks. If your book is building and publishing succesfully, you can safely ignore this section!
192
192
```
193
193
@@ -200,15 +200,15 @@ Here's how:
200
200
- That will trigger a build and preview as usual, but the notebook execution will happen on the Binder.
201
201
- If all is well, merge the changes, and all further builds will work this way.
202
202
203
-
```{Note}
203
+
```{note}
204
204
The Binder uses your `environment.yml` file to create an image of an execution environment, which is stored for reuse. The time to execute your notebooks can vary, depending on whether the Binder needs to build a new image or not.
205
205
```
206
206
207
207
## Publish your Cookbook on the Pythia Gallery
208
208
209
209
Once you're happy with your content and your Cookbook is building and deploying properly, it's time to think about submiting it for inclusion in the [Cookbook Gallery](https://cookbooks.projectpythia.org/)!
210
210
211
-
```{Note}
211
+
```{note}
212
212
Cookbooks don't need to be "finished" in order to accepted in the Gallery! Cookbooks are typically accepted so long as they run cleanly, are free of obvious errors, and have some relevant new content.
213
213
214
214
Cookbooks are meant to be living documents. We encourage authors to open GitHub issues to track progress on adding and updating content.
@@ -231,7 +231,7 @@ Edit `CITATION.cff` as follows:
231
231
- ORCID and other metadata for each author is optional but helpful
232
232
- Under the `name:` field, change "Cookbook Template contributors" to "[Your Cookbook Name] contributors"
233
233
234
-
```{Note}
234
+
```{note}
235
235
GitHub automatically tracks all contributions to your repository. The folks who help with infrastructure fixes, content reviews, etc., are considered "contributors" but not primary authors. We include the "contributors" as a single group in `CITATION.cff` to acknowledge this!
0 commit comments