Skip to content

Commit b466278

Browse files
authored
Merge pull request #1 from Christian-Kofi-Okyere/main
Converted files to work with myst
2 parents d2ca2ea + 9947d51 commit b466278

File tree

5 files changed

+93
-0
lines changed

5 files changed

+93
-0
lines changed
File renamed without changes.

.github/workflows/deploy.yml

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

.gitignore

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

135135
# Ephemeral .nfs files
136136
.nfs*
137+
138+
# MyST build outputs
139+
_build

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ dependencies:
2626
- pip
2727
- pip:
2828
- climkern
29+
- mystmd

myst.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
version: 1
2+
extends:
3+
- https://raw.githubusercontent.com/projectpythia-mystmd/pythia-config/main/pythia.yml
4+
project:
5+
title: Radiative Feedback Cookbook
6+
authors:
7+
- name: Project Pythia Community
8+
url: https://projectpythia.org/
9+
github: https://github.com/projectpythia-mystmd/radiative-feedback-cookbook
10+
copyright: '2024'
11+
bibliography:
12+
- bibliography.bib
13+
toc:
14+
- file: README.md
15+
- title: Preamble
16+
children:
17+
- file: notebooks/how-to-cite.md
18+
- title: Foundations
19+
children:
20+
- file: notebooks/foundations/energy-balance-model.ipynb
21+
- file: notebooks/foundations/theory-rad-feedback.ipynb
22+
- title: Feedback Analysis
23+
children:
24+
- file: notebooks/feedback-analysis/manual-calc.ipynb
25+
- file: notebooks/feedback-analysis/aprp.ipynb
26+
- title: Simplifying Calculations
27+
children:
28+
- file: notebooks/simplified-calc/climkern-calc.ipynb
29+
- file: notebooks/simplified-calc/kernel-comparison.ipynb
30+
- file: notebooks/simplified-calc/state-dependence.ipynb
31+
- title: Appendix
32+
children:
33+
- file: references.md
34+
jupyter:
35+
binder:
36+
repo: projectpythia-mystmd/radiative-feedback-cookbook
37+
site:
38+
options:
39+
logo: notebooks/images/logos/pythia_logo-white-rtext.svg
40+
folders: true
41+
template: book-theme

0 commit comments

Comments
 (0)