fix: deployment previews for UI docs and Core docs

- workaround for docz issue https://github.com/pedronauck/docz/issues/1635
- tailwind purge
- fix docusaurus basename and docz missing props
This commit is contained in:
Erik Ziegler committed 2021-06-16 07:46:23 -04:00
1 parent d501335143
commit 936ae14ea0
9 files changed
+1507 -2521

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ const isDev = process.env.NODE_ENV === 'development';
const isDeployPreview =
process.env.NETLIFY && process.env.CONTEXT === 'deploy-preview';
const baseUrl = process.env.BASE_URL || '/';
const baseUrl = process.env.BASE_URL || '/docs/';
const isBootstrapPreset = process.env.DOCUSAURUS_PRESET === 'bootstrap';
// Special deployment for staging locales until they get enough translations
+1 -2
View File
@@ -4,7 +4,6 @@
"description": "A set of React components for Medical Imaging Viewers",
"author": "OHIF Contributors",
"license": "MIT",
"repository": "OHIF/Viewers",
"publishConfig": {
"access": "public"
},
@@ -54,7 +53,7 @@
"gatsby-plugin-postcss": "^3.7.0",
"gatsby-plugin-react-svg": "3.0.0",
"gatsby-plugin-sass": "2.3.12",
"gatsby-theme-docz": "2.3.1-alpha.0",
"gatsby-theme-docz": "2.3.1",
"node-sass": "^4.14.1",
"pnp-webpack-plugin": "^1.6.4",
"prop-types": "15.7.2",
@@ -21,8 +21,13 @@ import { SplitButton, WindowLevelMenuItem } from '@ohif/ui';
<Playground>
{() => {
const mockedProps = {
bState: {
primaryToolId: 'WWWC',
toggles: {},
},
primary: {
tooltip: 'W/L',
type: 'tool',
icon: 'tool-window-level',
onClick: args => console.debug('Primary click!', args),
},
+1
View File
@@ -2,6 +2,7 @@ module.exports = {
prefix: '',
important: false,
separator: ':',
purge: ['./src/**/*.jsx'],
theme: {
screens: {
sm: '640px',