Skip to content

Commit 32b42c4

Browse files
committed
gh pages deploy
1 parent fedb041 commit 32b42c4

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

deploy.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env sh
2+
3+
# abort on errors
4+
set -e
5+
6+
# build
7+
npm run docs:build
8+
9+
# navigate into the build output directory
10+
cd docs/.vuepress/dist
11+
12+
# if you are deploying to a custom domain
13+
# echo 'www.example.com' > CNAME
14+
15+
git init
16+
git add -A
17+
git commit -m 'deploy'
18+
19+
# if you are deploying to https://<USERNAME>.github.io
20+
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
21+
22+
# if you are deploying to https://<USERNAME>.github.io/<REPO>
23+
git push -f git@github.com:aleph-im/aleph-js.git master:gh-pages
24+
25+
cd -

docs/.vuepress/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
title: 'Aleph-JS',
33
description: 'Aleph.im Javascript API',
4+
base: '/aleph-js/',
45
themeConfig: {
56
logo: '/logo.svg',
67
repo: 'aleph-im/aleph-js',

0 commit comments

Comments
 (0)