Skip to content

Commit 32b93b8

Browse files
authored
Merge pull request #2 from projectpythia-mystmd/agoose77/docs-fix-note
📖 Fix note directive
2 parents 42cd93e + b7cfd3b commit 32b93b8

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

Diff for: portal/contributing.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Project Pythia Contributor's Guide
22

3-
```{Note}
3+
```{note}
44
This the top-level guide for Project Pythia and a great starting point for getting involved!
55
66
We also have specific guides for
@@ -143,7 +143,7 @@ command line tool for collaborative software version control, while
143143
GitHub is an online, web-accessible service that greatly simplifies
144144
using the powerful, yet often complex, Git.
145145

146-
```{Note}
146+
```{note}
147147
GitHub operates entirely within a web browser. You do not
148148
need to install anything, but you will need to set up a free GitHub
149149
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
225225
for information on “Building the site”, and
226226
follow the steps described therein.
227227

228-
```{Note}
228+
```{note}
229229
Repository-specific contributor's
230230
information can always be accessed by navigating your web browser
231231
to the appropriate Project Pythia GitHub repository,
@@ -326,7 +326,7 @@ on this later.
326326

327327
For further information see the [GitHub docs on forking a repo](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo).
328328

329-
```{Note}
329+
```{note}
330330
At this point you should have a local copy of the repository
331331
in your current working directory. You can safely make changes to
332332
any of the contents. Once you are ready to contribute your changes
@@ -390,7 +390,7 @@ $ git commit PATH_TO_NEW_FILE
390390

391391
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”.
392392

393-
```{Note}
393+
```{note}
394394
When executing `git commit` after `git add PATH_TO_NEW_FILE`,
395395
specifying the path to the new file isn't stricly necessary. However,
396396
in other instances the file path argument is required. We include it
@@ -411,7 +411,7 @@ $ git status
411411

412412
after your `commit` to verify everything looks as expected.
413413

414-
```{Note}
414+
```{note}
415415
`pre-commit` _hooks_ can sometimes be difficult to satisfy. You
416416
can always tell **git** not to run the _hook_ by
417417
running `git commit --no-verify`.

Diff for: portal/cookbook-guide.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The following is a step-by-step guide to creating a new Cookbook and getting it
1010

1111
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).
1212

13-
```{Note}
13+
```{note}
1414
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).
1515
1616
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
3939

4040
Your cookbook is now ready to have content added!
4141

42-
```{Note}
42+
```{note}
4343
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).
4444
```
4545

@@ -54,7 +54,7 @@ However, we recommend transfering to the Pythia organization early, for a few re
5454
- Easier to get help from the Pythia infrastructure team
5555
- Encourages collaboration
5656

57-
```{Note}
57+
```{note}
5858
You're still in control! You will always retain write access to your Cookbook repository even after transfering ownership to the Pythia organization.
5959
6060
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
9999

100100
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.
101101

102-
```{Note}
102+
```{note}
103103
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.
104104
```
105105

@@ -167,7 +167,7 @@ Here's a handy trick for finding your published book:
167167

168168
The link to your published book will then be displayed on the home page of the repo.
169169

170-
```{Note}
170+
```{note}
171171
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.
172172
173173
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
187187

188188
### Building on the Pythia Binder
189189

190-
```{Note}
190+
```{note}
191191
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!
192192
```
193193

@@ -200,15 +200,15 @@ Here's how:
200200
- That will trigger a build and preview as usual, but the notebook execution will happen on the Binder.
201201
- If all is well, merge the changes, and all further builds will work this way.
202202

203-
```{Note}
203+
```{note}
204204
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.
205205
```
206206

207207
## Publish your Cookbook on the Pythia Gallery
208208

209209
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/)!
210210

211-
```{Note}
211+
```{note}
212212
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.
213213
214214
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:
231231
- ORCID and other metadata for each author is optional but helpful
232232
- Under the `name:` field, change "Cookbook Template contributors" to "[Your Cookbook Name] contributors"
233233

234-
```{Note}
234+
```{note}
235235
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!
236236
```
237237

0 commit comments

Comments
 (0)