Skip to content

Commit 695b8e7

Browse files
jmunroedcamron
authored andcommitted
port to mystmd
1 parent 46eb5ae commit 695b8e7

File tree

3 files changed

+79
-1
lines changed

3 files changed

+79
-1
lines changed

.github/workflows/deploy.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This file was created automatically with `myst init --gh-pages` 🪄 💚
2+
3+
name: MyST GitHub Pages Deploy
4+
on:
5+
push:
6+
# Runs on pushes targeting the default branch
7+
branches: [main]
8+
env:
9+
# `BASE_URL` determines the website is served from, including CSS & JS assets
10+
# You may need to change this to `BASE_URL: /${{ github.event.repository.name }}`
11+
BASE_URL: '' # Not required for 'projectpythia-mystmd.github.io' domain. Other repos will need to set this!
12+
13+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: 'pages'
22+
cancel-in-progress: false
23+
jobs:
24+
deploy:
25+
environment:
26+
name: github-pages
27+
url: ${{ steps.deployment.outputs.page_url }}
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- name: Setup Pages
32+
uses: actions/configure-pages@v3
33+
- uses: actions/setup-node@v4
34+
with:
35+
node-version: 18.x
36+
- name: Install MyST Markdown
37+
run: npm install -g mystmd
38+
- name: Build HTML Assets
39+
run: myst build --html
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v1
42+
with:
43+
path: './_build/html'
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v2

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
[![nightly-build](https://github.com/ProjectPythia/projectpythia.github.io/actions/workflows/nightly-build.yaml/badge.svg)](https://github.com/ProjectPythia/projectpythia.github.io/actions/workflows/nightly-build.yaml)
44

55
This is the source repository for the [Project Pythia portal](https://projectpythia.org).
6-
The portal site is built with [sphinx](https://www.sphinx-doc.org/).
6+
The portal site is built with [MyST-MD](https://mystmd.org/).
77

88
Information on contributing is available [here](CONTRIBUTING.md)

myst.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# See docs at: https://mystmd.org/guide/frontmatter
2+
version: 1
3+
extends:
4+
- https://raw.githubusercontent.com/projectpythia-mystmd/pythia-config/main/pythia.yml
5+
project:
6+
id: 770e49e5-344a-4c46-adaa-3afb060b2085
7+
# title:
8+
# description:
9+
keywords: []
10+
authors: []
11+
github: https://github.com/projectpythia-mystmd/projectpythia-mystmd.github.io
12+
# bibliography: []
13+
14+
toc:
15+
- file: portal/index.md
16+
- file: portal/about.md
17+
- file: portal/blog.md
18+
- file: portal/contributing.md
19+
- file: portal/cookbook-guide.md
20+
- file: portal/metrics.md
21+
- title: Posts
22+
children:
23+
- file: portal/posts/cookoff2023.md
24+
- file: portal/posts/cookoff2024-savethedate.md
25+
- file: portal/posts/cookoff2024-website.md
26+
27+
site:
28+
template: book-theme
29+
actions:
30+
- title: Learn More
31+
url: https://mystmd.org/guide
32+
domains: []

0 commit comments

Comments
 (0)