Skip to content

Commit

Permalink
fix: move docs to docs-source.
Browse files Browse the repository at this point in the history
  • Loading branch information
dobromir-hristov committed Jul 12, 2018
1 parent f181a10 commit b1cff93
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ const pack = require('../package.json')

// update installation.md
const installation = fs
.readFileSync('./docs/installation.md', 'utf-8')
.readFileSync('./docs-source/installation.md', 'utf-8')
.replace(
/https:\/\/unpkg\.com\/vuelidate-error-extractor@[\d.]+.[\d]+\/dist\/vuelidate-error-extractor\.js/,
'https://unpkg.com/vuelidate-error-extractor@' + pack.version + '/dist/vuelidate-error-extractor.js'
)
fs.writeFileSync('./docs/installation.md', installation)
fs.writeFileSync('./docs-source/installation.md', installation)
3 changes: 2 additions & 1 deletion docs/.vuepress/config.js → docs-source/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ module.exports = {
]
},
ga: 'UA-29425482-9',
base: '/vuelidate-error-extractor/'
base: '/vuelidate-error-extractor/',
dest: 'docs'
}
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
"changelog": "conventional-changelog -i CHANGELOG.md -s -p angular",
"release": "standard-version -a",
"clean": "rm -rf coverage && rm -rf dist/*.js* && rm ./*.log",
"docs:dev": "vuepress dev docs",
"docs:build": "node config/version.js && vuepress build docs",
"docs:dev": "vuepress dev docs-source",
"docs:build": "node config/version.js && vuepress build docs-source",
"dev": "SET BABEL_ENV=test & webpack-dev-server --inline --hot --open --config config/webpack.dev.conf.js",
"lint": "eslint src test config",
"test": "jest",
Expand Down

0 comments on commit b1cff93

Please sign in to comment.