From bbc70d6625fd6831a73a5d70c6039138f2c99df8 Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Mon, 7 Sep 2020 17:35:02 -0400 Subject: [PATCH] Set styleguidist output directory --- styleguidist/styleguide.config.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/styleguidist/styleguide.config.js b/styleguidist/styleguide.config.js index cc0986b..69a2dd0 100644 --- a/styleguidist/styleguide.config.js +++ b/styleguidist/styleguide.config.js @@ -121,5 +121,14 @@ module.exports = { const name = path.basename(componentPath, '.js') const dir = path.dirname(componentPath) return `import ${name} from '${dir}/';` - } + }, + + /** + * Path to output directory for styleguidist build. + * Relative to styleguidist config file. + * @type {string} + * @example "./frontend-docs" // webqueue2/styleguidist/frontend-docs + * @default "./styleguide" + */ + styleguideDir: "./frontend-docs", } \ No newline at end of file