Skip to content

Commit f0e3be6

Browse files
authored
Move myst.yml and adapt workflows (#519)
* Move myst.yml and adapt workflows * please the linter * more linting * Use upstream action button * Put style.css where it belongs
1 parent 94ea669 commit f0e3be6

File tree

7 files changed

+19
-14
lines changed

7 files changed

+19
-14
lines changed

.github/workflows/nightly-build.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ jobs:
1111
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
1212
with:
1313
base_url: ''
14+
path_to_notebooks: 'portal'
1415

1516
deploy:
1617
needs: build
1718
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
19+
with:
20+
publish_dir: 'portal/_build/html'
1821

1922
link-check:
2023
if: ${{ github.repository_owner == 'ProjectPythia' }}
2124
uses: ProjectPythia/cookbook-actions/.github/workflows/link-checker.yaml@main
25+
with:
26+
path_to_source: 'portal'

.github/workflows/publish-site.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ jobs:
1212
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
1313
with:
1414
base_url: ''
15+
path_to_notebooks: 'portal'
1516

1617
deploy:
1718
needs: build
1819
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
20+
with:
21+
publish_dir: 'portal/_build/html'

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ on:
55
jobs:
66
link-check:
77
uses: ProjectPythia/cookbook-actions/.github/workflows/link-checker.yaml@main
8+
with:
9+
path_to_source: 'portal'

.github/workflows/trigger-preview.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
artifact_name: book-zip-${{ needs.find-pull-request.outputs.number }}
1919
destination_dir: _preview/${{ needs.find-pull-request.outputs.number }} # deploy to subdirectory labeled with PR number
2020
is_preview: "true"
21+
publish_dir: "portal/_build/html"
2122

2223
preview-comment:
2324
needs: find-pull-request

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ jobs:
88
with:
99
artifact_name: book-zip-${{ github.event.number }}
1010
base_url: '/_preview/${{ github.event.number }}'
11+
path_to_notebooks: 'portal'
1112
# Other input options are possible, see ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml

myst.yml renamed to portal/myst.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,19 @@ extends:
44
- https://raw.githubusercontent.com/projectpythia/pythia-config/main/pythia.yml
55
project:
66
id: 770e49e5-344a-4c46-adaa-3afb060b2085
7-
# title:
8-
# description:
9-
keywords: []
10-
authors: []
7+
authors: Project Pythia Community
118
github: https://github.com/projectpythia/projectpythia.github.io
12-
# bibliography: []
139

1410
toc:
15-
- file: portal/index.md
16-
- file: portal/about.md
11+
- file: index.md
12+
- file: about.md
1713
- title: Blog
1814
children:
19-
- pattern: portal/posts/*.md
20-
- file: portal/contributing.md
21-
- file: portal/cookbook-guide.md
22-
- file: portal/metrics.md
15+
- pattern: posts/*.md
16+
- file: contributing.md
17+
- file: cookbook-guide.md
18+
- file: metrics.md
2319
site:
24-
actions:
25-
- title: Learn More
26-
url: https://mystmd.org/guide
2720
domains: []
2821
options:
2922
style: style.css
File renamed without changes.

0 commit comments

Comments
 (0)