Skip to content

Commit 1a40fc0

Browse files
authored
Merge pull request #19 from ktyle/mystify
Jupyterbook 1 --> MyST transition
2 parents 5edb055 + aee7322 commit 1a40fc0

14 files changed

+81
-179
lines changed

.github/workflows/nightly-build.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ jobs:
1010
if: ${{ github.repository_owner == 'ProjectPythia' }}
1111
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
1212
with:
13-
environment_name: ERA5_interactive
13+
build_command: 'myst build --execute --html'
1414

15-
link-check:
16-
if: ${{ github.repository_owner == 'ProjectPythia' }}
17-
uses: ProjectPythia/cookbook-actions/.github/workflows/link-checker.yaml@main
15+
deploy:
16+
needs: build
17+
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
18+
19+
# We don't have a link-checker with MyST right now
20+
# link-check:
21+
# if: ${{ github.repository_owner == 'ProjectPythia' }}
22+
# uses: ProjectPythia/cookbook-actions/.github/workflows/link-checker.yaml@main

.github/workflows/publish-book.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ jobs:
1111
build:
1212
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
1313
with:
14-
environment_name: ERA5_interactive
14+
build_command: 'myst build --execute --html'
15+
1516

1617
deploy:
1718
needs: build
18-
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
19+
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: replace-links
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Find and Replace Repository Name
15+
uses: jacobtomlinson/gha-find-replace@v3
16+
with:
17+
find: "ProjectPythia/cookbook-template"
18+
replace: "${{ github.repository_owner }}/${{ github.event.repository.name }}"
19+
regex: false
20+
exclude: ".github/workflows/replace-links.yaml"
21+
22+
- name: Find and Replace Repository ID
23+
uses: jacobtomlinson/gha-find-replace@v3
24+
with:
25+
find: "475509405"
26+
replace: "${{ github.repository_id}}"
27+
regex: false
28+
exclude: ".github/workflows/replace-links.yaml"
29+
30+
- name: Push changes
31+
uses: stefanzweifel/git-auto-commit-action@v5

.github/workflows/trigger-book-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ jobs:
66
build:
77
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
88
with:
9-
environment_name: ERA5_interactive
109
artifact_name: book-zip-${{ github.event.number }}
10+
base_url: '/${{ github.event.repository.name }}/_preview/${{ github.event.number }}'
1111
# Other input options are possible, see ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml

.github/workflows/trigger-delete-preview.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ on:
66

77
jobs:
88
delete:
9-
uses: ProjectPythia/cookbook-actions/.github/workflows/delete-preview.yaml@main
9+
uses: ProjectPythia/cookbook-actions/.github/workflows/delete-preview.yaml@main

.github/workflows/trigger-link-check.yaml

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

Containerfile

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

_config.yml

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

_static/custom.css

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

_static/footer-logo-nsf.png

-9.89 KB
Binary file not shown.

0 commit comments

Comments
 (0)