Skip to content

Commit a706652

Browse files
authored
Merge pull request #20 from projectpythia-mystmd/main
MySTify
2 parents 83ed1c6 + 5bbf260 commit a706652

13 files changed

+82
-143
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: cookbook-dev
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: cookbook-dev
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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66
build:
77
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
88
with:
9-
environment_name: cookbook-dev
9+
build_command: 'myst build --execute --html'
1010
artifact_name: book-zip-${{ github.event.number }}
11-
# Other input options are possible, see ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml
11+
base_url: '/${{ github.event.repository.name }}/_preview/${{ github.event.number }}'
12+
# 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.

.github/workflows/trigger-preview.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
uses: ProjectPythia/cookbook-actions/.github/workflows/preview-comment.yaml@main
2525
with:
2626
pull_request_number: ${{ needs.find-pull-request.outputs.number }}
27-
sha: ${{ needs.find-pull-request.outputs.sha }}
27+
sha: ${{ needs.find-pull-request.outputs.sha }}

_config.yml

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

_toc.yml

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

environment.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ channels:
33
- conda-forge
44
dependencies:
55
- python
6-
- jupyter-book
7-
- jupyterlab
86
- jupyter_server
7+
- ipykernel
98
- numpy
109
- xarray
1110
- matplotlib
@@ -18,6 +17,6 @@ dependencies:
1817
- fsspec
1918
- nc-time-axis
2019
- gcsfs
20+
- mystmd
2121
- cftime
2222
- pydap
23-
- sphinx-pythia-theme

0 commit comments

Comments
 (0)