Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpy committed Dec 2, 2018
1 parent 44f2d1d commit 2047069
Show file tree
Hide file tree
Showing 7 changed files with 6,637 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ typings/

# next.js build output
.next

# vuepress
docs/.vuepress/dist/
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Codetrial Docs

Codetrial documentation built with VuePress.
18 changes: 18 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env sh

# 确保脚本抛出遇到的错误
set -e

# 生成静态文件
npm run docs:build

# 进入生成的文件夹
cd docs/.vuepress/dist

git init
git add -A
git commit -m 'deploy site'

git push -f git@github.com:codetrial/codetrial.github.io.git master

cd -
4 changes: 4 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
title: "Codetrial",
description: "The official documentation site for codetrial projects."
};
3 changes: 3 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Coding in Action

> Under Construction
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "codetrial-docs",
"version": "1.0.0",
"description": "Codetrial documentation built with VuePress.",
"main": "index.js",
"scripts": {
"test": "yarn test",
"docs:deploy": "sh deploy.sh",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
},
"repository": {
"type": "git",
"url": "git+https://github.com/codetrial/docs.git"
},
"keywords": [
"codetrial",
"docs"
],
"author": "felixpy",
"license": "MIT",
"bugs": {
"url": "https://github.com/codetrial/docs/issues"
},
"homepage": "https://github.com/codetrial/docs#readme",
"devDependencies": {
"vuepress": "^0.14.8"
}
}
Loading

0 comments on commit 2047069

Please sign in to comment.