Skip to content

Commit 14de2af

Browse files
committed
deploy: a836805
1 parent a4b9b21 commit 14de2af

File tree

5 files changed

+29
-23
lines changed

5 files changed

+29
-23
lines changed

_preview/435/_sources/cookbook-guide.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ These instructions assume that your goal is to contribute a new Cookbook to the
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.
1717
```
1818

19+
If you're not looking to create a _new_ Cookbook, but rather looking for guidance on contributing to _existing_ Cookbooks, first make sure you're comfortable with the [GitHub forking workflow](https://foundations.projectpythia.org/foundations/github/github-workflows.html#forking-workflow), then take a look at the section below on "Pull Requests and previews".
20+
1921
## Data access
2022

2123
Before developing your cookbook, you should consider how it will access the data you plan to use. In loose order of preference, we recommend the following:
@@ -167,7 +169,7 @@ The link to your published book will then be displayed on the home page of the r
167169
```{Note}
168170
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.
169171
170-
It's possible to enable the workflows on your personal fork, but usually unneccesary if you preview your work via Pull Requests (see below).
172+
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)!
171173
```
172174

173175
### Pull Requests and previews
@@ -176,9 +178,11 @@ Collaboration on Cookbooks is best done via [Pull Requests](https://foundations.
176178

177179
The only difference between the "preview" pipeline and the regular publishing pipeline is the URL to which the rendered website is deployed. A temporary preview location is used, leaving the main book untouched until the PR is merged.
178180

181+
To propose changes to a Cookbook, or even just to test something out temporarily, follow the [forking workflow](https://foundations.projectpythia.org/foundations/github/github-workflows.html#forking-workflow): make changes on a feature branch of your personal fork, and open a Pull Request from that branch to the main branch of the upstream fork. This will trigger the preview.
182+
179183
A link to the preview will appear as a comment on the Pull Request once the publishing actions are complete. _If the link shows up but you get a 404 error when you click on it the first time, just wait a few minutes! There are some lags before the preview is fully deployed._
180184

181-
Every new push to the PR branch will trigger another rebuild, and an updated preview. The preview will be deleted if and when the PR is closed or merged.
185+
Not satisfied? Keep making changes! Every new push to the feature branch on your personal fork will trigger another rebuild, and an updated preview. The preview will be deleted if and when the PR is closed or merged.
182186

183187
### Building on the Pythia Binder
184188

_preview/435/_sources/resource-gallery.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ Xarray is inspired by and borrows heavily from pandas, the popular data analysis
14211421
<img src="_static/images/ebp-logo.png" class="gallery-thumbnail" />
14221422
<div class="container">
14231423
<a href="https://nbviewer.jupyter.org/github/ltauxe/Python-for-Earth-Science-Students/tree/master/" class="text-decoration-none"><h4 class="display-4 p-0">Python Programming for Earth Science Students</h4></a>
1424-
<p class="card-subtitle"><strong>Author:</strong> <a href="mailto:hasefaw@ucsd.edu">Hanna Asefaw</a>, <a href="mailto:[email protected]">Brendan Cych</a>, <a href="mailto:ltauxe@ucsd.edu">Lisa Tauxe</a><br/><strong>Affiliation:</strong> <a href="https://scripps.ucsd.edu/">Scripps Institution of Oceanography</a></p>
1424+
<p class="card-subtitle"><strong>Author:</strong> <a href="mailto:ltauxe@ucsd.edu">Lisa Tauxe</a>, <a href="mailto:[email protected]">Brendan Cych</a>, <a href="mailto:hasefaw@ucsd.edu">Hanna Asefaw</a><br/><strong>Affiliation:</strong> <a href="https://scripps.ucsd.edu/">Scripps Institution of Oceanography</a></p>
14251425
<p class="my-2">Python Programming for Earth Science Students </p>
14261426
</div>
14271427
</div>
@@ -1724,7 +1724,7 @@ Xarray is inspired by and borrows heavily from pandas, the popular data analysis
17241724
<img src="_static/thumbnails/ptss-jupyter.jpeg" class="gallery-thumbnail" />
17251725
<div class="container">
17261726
<a href="https://youtu.be/xSzXvwzFsDU" class="text-decoration-none"><h4 class="display-4 p-0">Python Tutorial Seminar Series - Jupyter Notebooks</h4></a>
1727-
<p class="card-subtitle"><strong>Author:</strong> Project Pythia, Kevin Paul<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
1727+
<p class="card-subtitle"><strong>Author:</strong> Kevin Paul, Project Pythia<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
17281728
<p class="my-2">Recording from the Python Tutorial Seminar Series introducing JupyterLab and Jupyter Notebooks.
17291729
</p>
17301730
</div>
@@ -1749,7 +1749,7 @@ Xarray is inspired by and borrows heavily from pandas, the popular data analysis
17491749
<img src="_static/thumbnails/ptss-numpy.jpeg" class="gallery-thumbnail" />
17501750
<div class="container">
17511751
<a href="https://youtu.be/kstc-6uz7AQ" class="text-decoration-none"><h4 class="display-4 p-0">Python Tutorial Seminar Series - Numpy</h4></a>
1752-
<p class="card-subtitle"><strong>Author:</strong> Project Pythia, A Kootz<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
1752+
<p class="card-subtitle"><strong>Author:</strong> A Kootz, Project Pythia<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
17531753
<p class="my-2">Recording from the Python Tutorial Seminar Series introducing the Python Package `numpy`. The content to follow along with this video is hosted on this <A href="https://colab.research.google.com/drive/1zcjaGXofLzUXkQzJKnANE9Z3yFUt0q7E?">Numpy Google Collab</A>.
17541754
</p>
17551755
</div>
@@ -1774,7 +1774,7 @@ Xarray is inspired by and borrows heavily from pandas, the popular data analysis
17741774
<img src="_static/thumbnails/ptss-matplotlib.jpeg" class="gallery-thumbnail" />
17751775
<div class="container">
17761776
<a href="https://youtu.be/EiPRIdHQEmE" class="text-decoration-none"><h4 class="display-4 p-0">Python Tutorial Seminar Series - Matplotlib</h4></a>
1777-
<p class="card-subtitle"><strong>Author:</strong> Project Pythia, Anissa Zacharias<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
1777+
<p class="card-subtitle"><strong>Author:</strong> Anissa Zacharias, Project Pythia<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
17781778
<p class="my-2">Recording from the Python Tutorial Seminar Series introducing the Python Package `matplotlib`. The content to follow along with this video is hosted on this <A href="https://github.com/anissa111/matplotlib-tutorial">Matplotlib Tutorial GitHub Repository</A>.
17791779
</p>
17801780
</div>
@@ -1800,7 +1800,7 @@ Xarray is inspired by and borrows heavily from pandas, the popular data analysis
18001800
<img src="_static/thumbnails/ptss-oop.jpeg" class="gallery-thumbnail" />
18011801
<div class="container">
18021802
<a href="https://youtu.be/GEFnL8C62u8" class="text-decoration-none"><h4 class="display-4 p-0">Python Tutorial Seminar Series - Object Oriented Programming</h4></a>
1803-
<p class="card-subtitle"><strong>Author:</strong> Project Pythia, A Kootz<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
1803+
<p class="card-subtitle"><strong>Author:</strong> A Kootz, Project Pythia<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
18041804
<p class="my-2">Recording from the Python Tutorial Seminar Series introducing Object Oriented Programming. The content to follow along with this video is hosted in this <A href="https://github.com/pilotchute/oop_hrrr_tutorial">Object Oriented Programming Tutorial GitHub Repository</A>.
18051805
</p>
18061806
</div>
@@ -1851,7 +1851,7 @@ Xarray is inspired by and borrows heavily from pandas, the popular data analysis
18511851
<img src="_static/thumbnails/ptss-git.png" class="gallery-thumbnail" />
18521852
<div class="container">
18531853
<a href="https://youtu.be/fYkPn0Nttlg" class="text-decoration-none"><h4 class="display-4 p-0">Python Tutorial Seminar Series - Git and GitHub</h4></a>
1854-
<p class="card-subtitle"><strong>Author:</strong> Project Pythia, Kevin Paul<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
1854+
<p class="card-subtitle"><strong>Author:</strong> Kevin Paul, Project Pythia<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
18551855
<p class="my-2">Recording from the Python Tutorial Seminar Series introducing the tools Git and GitHub. The content to follow along with this tutorial is hosted in this <A href="https://github.com/NCAR/git-github-demo">Git and GitHub Demo GitHub Repository</A>.
18561856
</p>
18571857
</div>
@@ -1876,7 +1876,7 @@ Xarray is inspired by and borrows heavily from pandas, the popular data analysis
18761876
<img src="_static/thumbnails/ptss-pandas.jpeg" class="gallery-thumbnail" />
18771877
<div class="container">
18781878
<a href="https://youtu.be/BsV3ek7qsiM" class="text-decoration-none"><h4 class="display-4 p-0">Python Tutorial Seminar Series - Pandas</h4></a>
1879-
<p class="card-subtitle"><strong>Author:</strong> Project Pythia, Max Grover, Drew Camron<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
1879+
<p class="card-subtitle"><strong>Author:</strong> Drew Camron, Project Pythia, Max Grover<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
18801880
<p class="my-2">Recording from the Python Tutorial Seminar Series introducing the Python Package `pandas`. The content to follow along with this video is hosted in this <A href="https://github.com/mgrover1/ncar_pandas_tutorial">Pandas Tutorial GitHub Repository</A>.
18811881
</p>
18821882
</div>
@@ -2001,7 +2001,7 @@ Xarray is inspired by and borrows heavily from pandas, the popular data analysis
20012001
<img src="_static/thumbnails/ptss-geocatplot.jpeg" class="gallery-thumbnail" />
20022002
<div class="container">
20032003
<a href="https://youtu.be/It231le1fAU" class="text-decoration-none"><h4 class="display-4 p-0">Python Tutorial Seminar Series - Plotting with GeoCAT</h4></a>
2004-
<p class="card-subtitle"><strong>Author:</strong> Project Pythia, Anissa Zacharias<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
2004+
<p class="card-subtitle"><strong>Author:</strong> Anissa Zacharias, Project Pythia<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
20052005
<p class="my-2">Recording from the Python Tutorial Seminar Series introducing advanced plotting techniques and highlighting tools developed by GeoCAT. The content to follow along with this video is hosted in this <A href="https://github.com/anissa111/plotting-with-geocat-tutorial">Plotting with GeoCat GitHub Repository</A>.
20062006
</p>
20072007
</div>
@@ -2027,7 +2027,7 @@ Xarray is inspired by and borrows heavily from pandas, the popular data analysis
20272027
<img src="_static/thumbnails/ptss-geocatcomp.jpeg" class="gallery-thumbnail" />
20282028
<div class="container">
20292029
<a href="https://www.youtube.com/watch?v=uiWDQKI8YTQ&t=6s" class="text-decoration-none"><h4 class="display-4 p-0">Python Tutorial Seminar Series - GeoCAT-Comp</h4></a>
2030-
<p class="card-subtitle"><strong>Author:</strong> Project Pythia, A Kootz<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
2030+
<p class="card-subtitle"><strong>Author:</strong> A Kootz, Project Pythia<br/><strong>Affiliation:</strong> <a href="https://ncar.ucar.edu/">NCAR</a></p>
20312031
<p class="my-2">Recording from the Python Tutorial Seminar Series introducing `geocat-comp`. The content to follow along with this video is hosted in this <A href="https://github.com/pilotchute/geocat_comp_tutorial">GeoCat-Comp GitHub Repository</A>.
20322032
</p>
20332033
</div>

_preview/435/cookbook-guide.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ <h1>Cookbook Contributor’s Guide<a class="headerlink" href="#cookbook-contribu
405405
<p>These instructions assume that your goal is to contribute a new Cookbook to the community-maintained collection housed on the <a class="reference external" href="https://cookbooks.projectpythia.org">Pythia Cookbook Gallery</a>.</p>
406406
<p>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.</p>
407407
</div>
408+
<p>If you’re not looking to create a <em>new</em> Cookbook, but rather looking for guidance on contributing to <em>existing</em> Cookbooks, first make sure you’re comfortable with the <a class="reference external" href="https://foundations.projectpythia.org/foundations/github/github-workflows.html#forking-workflow">GitHub forking workflow</a>, then take a look at the section below on “Pull Requests and previews”.</p>
408409
<section id="data-access">
409410
<h2>Data access<a class="headerlink" href="#data-access" title="Link to this heading"><i class="fas fa-link"></i></a></h2>
410411
<p>Before developing your cookbook, you should consider how it will access the data you plan to use. In loose order of preference, we recommend the following:</p>
@@ -560,15 +561,16 @@ <h3>Where is my book?<a class="headerlink" href="#where-is-my-book" title="Link
560561
<div class="admonition note">
561562
<p class="admonition-title">Note</p>
562563
<p>If you have transfered your repository to the ProjectPythia organization and also made a personal fork, the publishing pipeline automation will <em>only run on the upstream fork on the ProjectPythia organization</em> so there’s only one copy of the “published” book.</p>
563-
<p>It’s possible to enable the workflows on your personal fork, but usually unneccesary if you preview your work via Pull Requests (see below).</p>
564+
<p>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)!</p>
564565
</div>
565566
</section>
566567
<section id="pull-requests-and-previews">
567568
<h3>Pull Requests and previews<a class="headerlink" href="#pull-requests-and-previews" title="Link to this heading"><i class="fas fa-link"></i></a></h3>
568569
<p>Collaboration on Cookbooks is best done via <a class="reference external" href="https://foundations.projectpythia.org/foundations/github/github-pull-request.html">Pull Requests</a>. Every PR on a Cookbook repository will trigger a “Preview” version of our publishing pipeline. The entire book is re-built from the updated source and the preview site is hosted at a temporary online location. This way, the team can safely see what the end product will look like after the PR is merged.</p>
569570
<p>The only difference between the “preview” pipeline and the regular publishing pipeline is the URL to which the rendered website is deployed. A temporary preview location is used, leaving the main book untouched until the PR is merged.</p>
571+
<p>To propose changes to a Cookbook, or even just to test something out temporarily, follow the <a class="reference external" href="https://foundations.projectpythia.org/foundations/github/github-workflows.html#forking-workflow">forking workflow</a>: make changes on a feature branch of your personal fork, and open a Pull Request from that branch to the main branch of the upstream fork. This will trigger the preview.</p>
570572
<p>A link to the preview will appear as a comment on the Pull Request once the publishing actions are complete. <em>If the link shows up but you get a 404 error when you click on it the first time, just wait a few minutes! There are some lags before the preview is fully deployed.</em></p>
571-
<p>Every new push to the PR branch will trigger another rebuild, and an updated preview. The preview will be deleted if and when the PR is closed or merged.</p>
573+
<p>Not satisfied? Keep making changes! Every new push to the feature branch on your personal fork will trigger another rebuild, and an updated preview. The preview will be deleted if and when the PR is closed or merged.</p>
572574
</section>
573575
<section id="building-on-the-pythia-binder">
574576
<h3>Building on the Pythia Binder<a class="headerlink" href="#building-on-the-pythia-binder" title="Link to this heading"><i class="fas fa-link"></i></a></h3>

0 commit comments

Comments
 (0)