Skip to content

Commit

Permalink
Adds version and build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsalminen committed Oct 7, 2018
1 parent bf6887d commit 2be5bfd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config/docs.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const path = require("path")
const baseConfig = require("../build/webpack.base.conf.js")
const merge = require("webpack-merge")
const packageConfig = require("../package.json")
const chalk = require("chalk")

module.exports = {
/**
Expand All @@ -10,6 +12,7 @@ module.exports = {
/**
* Most of the styles are defined in /docs/docs.styles.scss
*/
version: packageConfig.version,
theme: {
maxWidth: "100%",
sidebarWidth: 240,
Expand Down Expand Up @@ -186,6 +189,17 @@ module.exports = {
},
}),
styleguideDir: "../dist/docs",
printServerInstructions() {},
printBuildInstructions(config) {
console.log(chalk.cyan("\n Design System Docs build finished succesfully!\n"))
console.log(
chalk.yellow(
" Tip: You can now deploy the docs as a static website.\n" +
" Copy the build files from " +
`${config.styleguideDir}\n`
)
)
},
/**
* Configure docs server to redirect asset queries
*/
Expand Down

0 comments on commit 2be5bfd

Please sign in to comment.