From 4305166186fa3e7b12ef212adc49600cb075182d Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Fri, 18 Feb 2022 08:35:59 +0100 Subject: [PATCH] chore(storybook): wire storybook up with docusaurus --- website/.storybook/main.js | 6 ++++++ website/.storybook/preview.js | 2 ++ 2 files changed, 8 insertions(+) diff --git a/website/.storybook/main.js b/website/.storybook/main.js index be35ad4ed5..57f59bbb12 100644 --- a/website/.storybook/main.js +++ b/website/.storybook/main.js @@ -10,4 +10,10 @@ module.exports = { 'storybook-addon-root-attribute/register', ], framework: '@storybook/react', + staticDirs: [ + { + from: '../static', + to: '/', + }, + ], }; diff --git a/website/.storybook/preview.js b/website/.storybook/preview.js index 0b3cb69da3..194008022b 100644 --- a/website/.storybook/preview.js +++ b/website/.storybook/preview.js @@ -1,4 +1,6 @@ import '../src/css/custom.css'; +import '../node_modules/infima/dist/css/default/default.css'; +import '../node_modules/@docusaurus/theme-classic/lib/admonitions.css'; import { withRootAttribute } from 'storybook-addon-root-attribute'; export const parameters = {