-
-
Notifications
You must be signed in to change notification settings - Fork 189
/
taskfile.yaml
28 lines (24 loc) · 1.24 KB
/
taskfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
version: "3"
tasks:
build:
desc: Build Hextra documentation site under `exampleSite`
cmds:
- hugo --gc --minify --themesDir=../.. --source=exampleSite
css:
depends: [build]
desc: Compile production CSS using PostCSS to `assets/css/compiled/main.css`
cmds:
- npx postcss --config postcss.config.js --env production assets/css/styles.css -o assets/css/compiled/main.css
dev:
desc: Start development server for Hextra theme
cmds:
- npm run dev:theme
libs:
desc: Download libs from CDN
cmds:
- curl -o assets/lib/flexsearch/flexsearch.bundle.min.js https://cdn.jsdelivr.net/npm/[email protected]/dist/flexsearch.bundle.min.js
- curl -o assets/lib/katex/katex.min.js https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.js
- curl -o assets/lib/katex/katex.min.css https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css
- curl -o assets/lib/katex/auto-render.min.js https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js
- curl -o assets/lib/katex/mhchem.min.js https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/mhchem.min.js
- curl -o assets/lib/mermaid/mermaid.min.js https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js