Skip to content

Commit f8ad212

Browse files
authored
Merge pull request #14 from projectpythia-mystmd/mystify
Jupyterbook 1 --> MyST transition
2 parents 5d6723e + 637cbdd commit f8ad212

15 files changed

+89
-149
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: 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: cookbook-dev
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.

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
<img src="thumbnail.png" alt="thumbnail" width="300"/>
2-
31
# Web Map / Feature Services Cookbook
42

3+
<img src="thumbnail.png" alt="thumbnail" width="300"/>
4+
55
[![nightly-build](https://github.com/ProjectPythia/web-map-feature-services-cookbook/actions/workflows/nightly-build.yaml/badge.svg)](https://github.com/ProjectPythia/web-map-feature-services-cookbook/actions/workflows/nightly-build.yaml)
66
[![Binder](https://binder.projectpythia.org/badge_logo.svg)](https://binder.projectpythia.org/v2/gh/ProjectPythia/cookbook-template/main?labpath=notebooks)
77
[![DOI](https://zenodo.org/badge/653301659.svg)](https://zenodo.org/badge/latestdoi/653301659)
88

99
This Project Pythia Cookbook covers retrieving and using web map / feature services to help provide the necessary spatial context to your data.
1010

11+
Now using MyST!
12+
1113
## Motivation
1214

1315
By leveraging web map / feature services, users can easily access pre-processed data layers, utilize ready-to-use tiles, and benefit from production-level data that is continuously updated. This streamlines the data acquisition process and enables users to focus on their analysis tasks rather than data processing.

_config.yml

Lines changed: 0 additions & 80 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)