Skip to content

Commit 5005261

Browse files
committed
myst infrastructure changes
1 parent 55fbdc7 commit 5005261

File tree

7 files changed

+93
-46
lines changed

7 files changed

+93
-46
lines changed

.github/workflows/deploy.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This file was created automatically with `myst init --gh-pages` 🪄 💚
2+
3+
name: MyST GitHub Pages Deploy
4+
on:
5+
push:
6+
# Runs on pushes targeting the default branch
7+
branches: [main]
8+
env:
9+
# `BASE_URL` determines the website is served from, including CSS & JS assets
10+
# You may need to change this to `BASE_URL: ''`
11+
BASE_URL: /${{ github.event.repository.name }}
12+
13+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: 'pages'
22+
cancel-in-progress: false
23+
jobs:
24+
deploy:
25+
environment:
26+
name: github-pages
27+
url: ${{ steps.deployment.outputs.page_url }}
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- name: Setup Pages
32+
uses: actions/configure-pages@v3
33+
- uses: actions/setup-node@v4
34+
with:
35+
node-version: 18.x
36+
- name: Install MyST Markdown
37+
run: npm install -g mystmd
38+
- name: Build HTML Assets
39+
run: myst build --html
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v1
42+
with:
43+
path: './_build/html'
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v2

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,6 @@ dmypy.json
134134

135135
# Do not track netCDF data files
136136
.nc
137+
138+
# MyST build outputs
139+
_build

environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: cla-cookbook-dev
1+
name: cla-myst-cookbook-dev
22
channels:
33
- conda-forge
44
dependencies:
@@ -18,3 +18,4 @@ dependencies:
1818
- cartopy
1919
- sphinx-pythia-theme
2020
- zarr
21+
- mystmd

myst.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See docs at: https://mystmd.org/guide/frontmatter
2+
version: 1
3+
extends:
4+
- https://raw.githubusercontent.com/projectpythia-mystmd/pythia-config/main/pythia.yml
5+
project:
6+
id: 8ae3f9b8-fa17-4538-bbda-352888ee892d
7+
# title:
8+
# description:
9+
# keywords: []
10+
# authors: []
11+
github: https://github.com/projectpythia-mystmd/cesm-lens-aws-cookbook
12+
# To autogenerate a Table of Contents, run "myst init --write-toc"
13+
authors:
14+
- name: Anderson Banihirwe
15+
- name: Brian Bonnlander
16+
- name: Jeff de La Beaujardière
17+
- name: Scott Henderson
18+
copyright: '2024'
19+
toc:
20+
# Auto-generated by `myst init --write-toc`
21+
- file: README.md
22+
- title: Preamble
23+
children:
24+
- file: notebooks/how-to-cite.md
25+
- title: Foundations
26+
children:
27+
- file: notebooks/foundations/enhanced-catalog.ipynb
28+
- title: Example workflows
29+
children:
30+
- file: notebooks/example-workflows/key-figures.ipynb
31+
- title: Appendix
32+
children:
33+
- file: references.md
34+
35+
jupyter:
36+
binder:
37+
repo: projectpythia-mystmd/cesm-lens-aws-cookbook
38+
site:
39+
template: book-theme
40+
# options:
41+
# favicon: favicon.ico
42+
# logo: site_logo.png

notebooks/example-workflows/key-figures.ipynb

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,27 +1019,6 @@
10191019
"### What's next?\n",
10201020
"More example workflows using these datasets may be added in the future."
10211021
]
1022-
},
1023-
{
1024-
"cell_type": "markdown",
1025-
"metadata": {},
1026-
"source": [
1027-
"## Resources and references\n",
1028-
"\n",
1029-
"1. [Original notebook in the (no longer maintained) Pangeo Gallery](https://gallery.pangeo.io/repos/NCAR/cesm-lens-aws/notebooks/EnhancedIntakeCatalogDemo.html)\n",
1030-
"2. [Kay et al. (2015): _The Community Earth System Model (CESM) Large Ensemble Project_, BAMS, doi:10.1175/BAMS-D-13-00255.1](https://doi.org/10.1175/BAMS-D-13-00255.1)\n",
1031-
"3. [CESM LENS Data Sets on AWS](https://doi.org/10.26024/wt24-5j82)\n",
1032-
"4. [Morice et al. (2012) paper on HadCRUT4 dataset](https://doi.org/10.1029/2011JD017187)\n",
1033-
"5. [NASS GISTEMP dataset](https://data.giss.nasa.gov/gistemp/)\n",
1034-
"6. [Lenssen et al. (2019) paper on latest GISTEMP methods](https://doi.org/10.1029/2018JD029522)"
1035-
]
1036-
},
1037-
{
1038-
"cell_type": "code",
1039-
"execution_count": null,
1040-
"metadata": {},
1041-
"outputs": [],
1042-
"source": []
10431022
}
10441023
],
10451024
"metadata": {

notebooks/foundations/enhanced-catalog.ipynb

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -524,25 +524,6 @@
524524
"### What's next?\n",
525525
"We will use this data to recreate some figures from a paper published in [BAMS](https://www.ametsoc.org/index.cfm/ams/publications/bulletin-of-the-american-meteorological-society-bams/) that describes the CESM LENS project: {cite:t}`Kay:2015a`"
526526
]
527-
},
528-
{
529-
"cell_type": "markdown",
530-
"metadata": {},
531-
"source": [
532-
"## Resources and references\n",
533-
"\n",
534-
"1. [Original notebook in the (no longer maintained) Pangeo Gallery](https://gallery.pangeo.io/repos/NCAR/cesm-lens-aws/notebooks/EnhancedIntakeCatalogDemo.html)\n",
535-
"2. [Intake-esm documentation](https://intake-esm.readthedocs.io)\n",
536-
"3. [Kay et al. (2015): _The Community Earth System Model (CESM) Large Ensemble Project_, BAMS, doi:10.1175/BAMS-D-13-00255.1](https://doi.org/10.1175/BAMS-D-13-00255.1)\n",
537-
"4. [Community Earth System Model Large Ensemble (CESM LENS) Data Sets on AWS](https://doi.org/10.26024/wt24-5j82)"
538-
]
539-
},
540-
{
541-
"cell_type": "code",
542-
"execution_count": null,
543-
"metadata": {},
544-
"outputs": [],
545-
"source": []
546527
}
547528
],
548529
"metadata": {

references.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)