Skip to content

Commit b63e4b6

Browse files
committed
chore: Add docs deploy script
1 parent ea6ac4e commit b63e4b6

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

deploy.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env sh
2+
3+
# abort on errors
4+
set -e
5+
6+
# build
7+
vuepress build docs
8+
9+
# navigate into the build output directory
10+
cd docs/.vuepress/dist
11+
12+
git init
13+
git add -A
14+
git commit -m 'deploy'
15+
16+
git push -f git@github.com:vuejs/rollup-plugin-vue.git master:gh-pages
17+
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: 'Rollup Plugin Vue',
33
description: 'Bundle .vue files using Rollup',
4+
base: '/rollup-plugin-vue/',
45
markdown: {
56
config(md) {
67
md.use(require('./markdown-it-code-frame'))

0 commit comments

Comments
 (0)