Skip to content

Commit b9bf5f1

Browse files
committed
Quartz sync: Jun 2, 2025, 10:54 PM
1 parent 72dc82a commit b9bf5f1

File tree

3 files changed

+33
-20
lines changed

3 files changed

+33
-20
lines changed

.github/workflows/deploy.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,20 @@ jobs:
5050

5151
- name: Build all Slidev .md files
5252
run: |
53-
mkdir -p public/slidev
54-
find content -type f -name "*.md" | while read file; do
55-
relpath="${file#content/}" # e.g. topic1/sub/slide.md
56-
name="${relpath%.md}" # e.g. topic1/sub/slide
57-
outdir="dist/$name" # e.g. dist/topic1/sub/slide
58-
targetdir="public/slidev/$name" # e.g. public/slidev/topic1/sub/slide
59-
60-
echo "📦 Building $file → $targetdir"
61-
npx slidev build "$file" --out "$outdir"
62-
63-
mkdir -p "$targetdir"
64-
cp -r "$outdir/"* "$targetdir/"
65-
done
53+
npx slidev build content/z-index/slidev.md --out ../../public/slidev/
54+
# mkdir -p public/slidev
55+
# find content -type f -name "*.md" | while read file; do
56+
# relpath="${file#content/}" # e.g. topic1/sub/slide.md
57+
# name="${relpath%.md}" # e.g. topic1/sub/slide
58+
# outdir="dist/$name" # e.g. dist/topic1/sub/slide
59+
# targetdir="public/slidev/$name" # e.g. public/slidev/topic1/sub/slide
60+
61+
# echo "📦 Building $file → $targetdir"
62+
# npx slidev build "$file" --out "$outdir"
63+
64+
# mkdir -p "$targetdir"
65+
# cp -r "$outdir/"* "$targetdir/"
66+
# done
6667

6768
- name: Upload artifact
6869
uses: actions/upload-pages-artifact@v3

content/z-index/Guideline.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ markmap: "colorFreezeLevel: 4"
8282
* ...
8383

8484
# Quartz Frontmatter
85-
``` frontmatter
85+
```
8686
title: Title of the page
8787
description: Description of the page used for link previews.
8888
date: 2025-05-01
@@ -125,12 +125,6 @@ draft: true
125125
| `> [!note]` | [Callouts](https://help.obsidian.md/Editing+and+formatting/Callouts) |
126126
| (see link) | [Tables](https://help.obsidian.md/Editing+and+formatting/Advanced+formatting+syntax#Tables) |
127127

128-
## Inline search query
129-
```query
130-
task-todo: ee4
131-
path: "@ Projects"
132-
```
133-
134128
## Bold, italics, highlights
135129

136130
| Style | Syntax | Example | Output |

setup/shiki.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { defineShikiSetup } from '@slidev/types'
2+
3+
export default defineShikiSetup(() => {
4+
return {
5+
themes: {
6+
dark: 'min-dark',
7+
light: 'min-light',
8+
},
9+
langs: [
10+
'js',
11+
'typescript',
12+
'cpp',
13+
'python',
14+
],
15+
// transformers: [
16+
// ],
17+
}
18+
})

0 commit comments

Comments
 (0)