File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "folders" : [
3+ ],
4+ "settings" : {}
5+ }
Original file line number Diff line number Diff line change 1+ name : Publish on GitHub Pages
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+ build :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Clone repository
18+ uses : actions/checkout@v4
19+
20+ - name : Setup Deno environment
21+ uses : denoland/setup-deno@v2
22+ with :
23+ deno-version : v2.x
24+
25+ - name : Build site
26+ run : deno task build
27+
28+ - name : Setup Pages
29+ uses : actions/configure-pages@v4
30+
31+ - name : Upload artifact
32+ uses : actions/upload-pages-artifact@v3
33+ with :
34+ path : ' _site'
35+
36+ - name : Deploy to GitHub Pages
37+ id : deployment
38+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1+ _site
2+ _cache
3+ node_modules
Original file line number Diff line number Diff line change 1+ vùngđất.quảcầu.cc
Original file line number Diff line number Diff line change 1+ import lume from "lume/mod.ts" ;
2+ import wiki from "wiki/mod.ts" ;
3+ import metas from "lume/plugins/metas.ts" ;
4+ import ogImages from "lume/plugins/og_images.ts" ;
5+ import sitemap from "lume/plugins/sitemap.ts" ;
6+ import mermaid from "jsr:@ooker777/lume-mermaid-plugin" ;
7+
8+ const markdown = {
9+ options : {
10+ breaks : true ,
11+ } ,
12+ } ;
13+ const domain = Deno . readTextFileSync ( "CNAME" )
14+ const site = lume ( {
15+ src : "./docs" ,
16+ location : new URL ( `https://${ domain } ` ) ,
17+ server : {
18+ open : true ,
19+ } ,
20+ } , { markdown } ) ;
21+
22+
23+ site . use ( wiki ( {
24+ favicon : {
25+ input : "assets/favicon.svg"
26+ }
27+ } ) ) ;
28+
29+ site . use ( ogImages ( ) ) ;
30+ site . use ( metas ( ) ) ;
31+ site . use ( sitemap ( ) ) ;
32+ site . use ( mermaid ( ) )
33+
34+ export default site ;
Original file line number Diff line number Diff line change 1+ {
2+ "imports" : {
3+ "lume/" : " https://cdn.jsdelivr.net/gh/lumeland/lume@3.2.6/" ,
4+ "wiki/" : " https://deno.land/x/lume_theme_simple_wiki@v0.9.2/" ,
5+ "lume/cms/" : " https://cdn.jsdelivr.net/gh/lumeland/cms@0.15.5/" ,
6+ "lume/jsx-runtime" : " https://cdn.jsdelivr.net/gh/oscarotero/ssx@0.1.15/jsx-runtime.ts"
7+ },
8+ "tasks" : {
9+ "lume" : {
10+ "description" : " Run Lume command" ,
11+ "command" : " deno run -P=lume lume/cli.ts"
12+ },
13+ "build" : {
14+ "description" : " Build the site for production" ,
15+ "command" : " deno task lume"
16+ },
17+ "serve" : {
18+ "description" : " Run and serve the site for development" ,
19+ "command" : " deno task lume -s"
20+ },
21+ "cms" : " deno task lume cms" ,
22+ "new" : {
23+ "description" : " Create new content or code using artifacts" ,
24+ "command" : " deno task lume new"
25+ }
26+ },
27+ "compilerOptions" : {
28+ "types" : [
29+ " lume/types.ts"
30+ ],
31+ "jsx" : " react-jsx" ,
32+ "jsxImportSource" : " lume"
33+ },
34+ "permissions" : {
35+ "lume" : {
36+ "read" : true ,
37+ "write" : [
38+ " ./"
39+ ],
40+ "import" : [
41+ " cdn.jsdelivr.net:443" ,
42+ " jsr.io:443" ,
43+ " deno.land:443" ,
44+ " esm.sh:443"
45+ ],
46+ "net" : [
47+ " 0.0.0.0" ,
48+ " cdn.jsdelivr.net:443" ,
49+ " data.jsdelivr.com:443" ,
50+ " jsr.io:443" ,
51+ " deno.land:443" ,
52+ " esm.sh:443" ,
53+ " registry.npmjs.org:443"
54+ ],
55+ "env" : true ,
56+ "run" : true ,
57+ "ffi" : true ,
58+ "sys" : true
59+ }
60+ },
61+ "unstable" : [
62+ " fmt-component"
63+ ],
64+ "allowScripts" : {
65+ "deny" : [
66+ " npm:sharp" ,
67+ " npm:@parcel/watcher"
68+ ]
69+ },
70+ "lint" : {
71+ "plugins" : [
72+ " https://cdn.jsdelivr.net/gh/lumeland/lume@3.2.6/lint.ts"
73+ ],
74+ "rules" : {
75+ "exclude" : [
76+ " no-import-prefix"
77+ ]
78+ }
79+ },
80+ "lock" : false
81+ }
Original file line number Diff line number Diff line change 1+ {
2+ "imports" : {
3+ "lume/" : " https://cdn.jsdelivr.net/gh/lumeland/lume@3.1.4/" ,
4+ "wiki/" : " https://deno.land/x/lume_theme_simple_wiki@v0.14.3/" ,
5+ "lume/cms/" : " https://cdn.jsdelivr.net/gh/lumeland/cms@0.14.4/" ,
6+ "lume/jsx-runtime" : " https://cdn.jsdelivr.net/gh/oscarotero/ssx@0.1.14/jsx-runtime.ts"
7+ },
8+ "tasks" : {
9+ "lume" : {
10+ "description" : " Run Lume command" ,
11+ "command" : " deno run -P=lume lume/cli.ts"
12+ },
13+ "build" : {
14+ "description" : " Build the site for production" ,
15+ "command" : " deno task lume"
16+ },
17+ "serve" : {
18+ "description" : " Run and serve the site for development" ,
19+ "command" : " deno task lume -s"
20+ },
21+ "cms" : " deno task lume cms"
22+ },
23+ "compilerOptions" : {
24+ "types" : [
25+ " lume/types.ts"
26+ ],
27+ "jsx" : " react-jsx" ,
28+ "jsxImportSource" : " lume"
29+ },
30+ "permissions" : {
31+ "lume" : {
32+ "read" : true ,
33+ "write" : [
34+ " ./"
35+ ],
36+ "import" : [
37+ " cdn.jsdelivr.net:443" ,
38+ " jsr.io:443" ,
39+ " deno.land:443" ,
40+ " esm.sh:443"
41+ ],
42+ "net" : [
43+ " 0.0.0.0" ,
44+ " cdn.jsdelivr.net:443" ,
45+ " data.jsdelivr.com:443" ,
46+ " jsr.io:443" ,
47+ " deno.land:443" ,
48+ " esm.sh:443" ,
49+ " registry.npmjs.org:443"
50+ ],
51+ "env" : true ,
52+ "run" : true ,
53+ "ffi" : true ,
54+ "sys" : true
55+ }
56+ },
57+ "unstable" : [
58+ " temporal" ,
59+ " fmt-component"
60+ ],
61+ "lint" : {
62+ "plugins" : [
63+ " https://cdn.jsdelivr.net/gh/lumeland/lume@3.1.4/lint.ts"
64+ ],
65+ "rules" : {
66+ "exclude" : [
67+ " no-import-prefix"
68+ ]
69+ }
70+ },
71+ "lock" : false
72+ }
You can’t perform that action at this time.
0 commit comments