Skip to content

Commit aee80c0

Browse files
committed
feat: add jekyll page
1 parent 08d292e commit aee80c0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
theme: jekyll-theme-cayman

tools/gh-pages-publish.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {cd, exec, echo, touch} = require("shelljs")
1+
const {cd, exec, echo, touch, mkdir} = require("shelljs")
22
const {readFileSync} = require("fs")
33
const url = require("url")
44

@@ -17,9 +17,12 @@ let parsedUrl = url.parse(repoUrl)
1717
let repository = (parsedUrl.host || "") + (parsedUrl.path || "")
1818
let ghToken = process.env.GH_TOKEN
1919

20-
echo("Deploying docs!!!")
21-
cd("docs")
22-
touch(".nojekyll")
20+
echo("Deploying gh-page!!!")
21+
mkdir("out")
22+
cd("out")
23+
// touch(".nojekyll")
24+
exec("cp ../README.md README.md")
25+
exec("cp ../docs docs -r")
2326
exec("cp ../example example -r")
2427
exec("git init")
2528
exec("git add .")

0 commit comments

Comments
 (0)