Skip to content

Commit 8732387

Browse files
committed
new pages config
1 parent 73806c1 commit 8732387

4 files changed

Lines changed: 55 additions & 22 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy Notes
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Install pandoc
20+
uses: pandoc/actions/setup@v1
21+
22+
- name: Build site
23+
run: bash build.sh
24+
25+
- name: Upload Pages artifact
26+
uses: actions/upload-pages-artifact@v3
27+
with:
28+
path: public
29+
30+
- name: Deploy to GitHub Pages
31+
uses: actions/deploy-pages@v4
32+

.github/workflows/pages.yml

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

build.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
CONFIG=site.yml
5+
INPUT=notes
6+
OUTPUT=public
7+
8+
mkdir -p $OUTPUT
9+
10+
for file in $INPUT/*.md; do
11+
name=$(basename "$file" .md)
12+
pandoc "$file" \
13+
--template=templates/page.html \
14+
--mathjax \
15+
--highlight-style=pygments \
16+
-o "$OUTPUT/$name.html"
17+
done
18+
19+
cp -r static "$OUTPUT/"
20+

notes/test.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## This is a test note
2+
3+
$$ X' = F(X) + \operatorname{Res}(X, F(X))$$

0 commit comments

Comments
 (0)