File tree Expand file tree Collapse file tree 6 files changed +28
-13
lines changed Expand file tree Collapse file tree 6 files changed +28
-13
lines changed Original file line number Diff line number Diff line change @@ -36,19 +36,21 @@ jobs:
3636 node-version : 20.x
3737 - uses : actions/setup-python@v5
3838 with :
39- python-version : ' 3.12'
39+ python-version : " 3.12"
4040 - name : Install MyST Markdown
4141 run : npm install -g mystmd
4242 - name : Build plugin
4343 run : |
4444 npm install
4545 npm run build
46+ cp dist/plugin.mjs docs/
4647 - name : Build HTML Assets
4748 run : myst build --html
49+ working-directory : docs
4850 - name : Upload artifact
4951 uses : actions/upload-pages-artifact@v3
5052 with :
51- path : " ./_build/html"
53+ path : " ./docs/ _build/html"
5254 - name : Deploy to GitHub Pages
5355 id : deployment
5456 uses : actions/deploy-pages@v4
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # Blog Plugin
2+
3+ :::{blog-posts}
4+ :::
5+
Original file line number Diff line number Diff line change @@ -3,9 +3,12 @@ version: 1
33project :
44 title : JS Plugin
55 plugins :
6- - dist/ plugin.mjs
6+ - plugin.mjs
77 toc :
8- - file : content/index.md
8+ - file : index.md
9+ - title : Posts
10+ children :
11+ - pattern : posts/*.md
912site :
1013 template : book-theme
1114 options :
Original file line number Diff line number Diff line change 1+ ---
2+ title : Hello world!
3+ subtitle : I'm a blog post
4+ date : " 2025-01-01"
5+ ---
6+
7+ This is post one!
Original file line number Diff line number Diff line change 1+ ---
2+ title : Hello again!
3+ subtitle : I'm also a blog post
4+ date : " 2025-02-01"
5+ ---
6+
7+ This is post two!
You can’t perform that action at this time.
0 commit comments