Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
fix(Demo): Add missing Stencila Components JS files to preview documents
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ketch committed Mar 24, 2020
1 parent f7e2448 commit 9ef8939
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 38 deletions.
122 changes: 86 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"homepage": "https://github.com/stencila/thema#readme",
"dependencies": {
"@simonwep/pickr": "^1.5.1",
"@stencila/components": "^0.9.0",
"@stencila/components": "^0.10.0",
"project-name-generator": "^2.1.7",
"react": "^16.13.0",
"react-dom": "^16.13.0"
Expand Down
4 changes: 3 additions & 1 deletion src/demo/utils/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
forceReady,
getExample,
getPreviewDoc,
getPreviewHead
getPreviewHead,
injectPreviewAssets
} from './preview'

export const getThemeCSS = (theme: string): string => {
Expand Down Expand Up @@ -49,6 +50,7 @@ export const themeSet = (theme: string): void => {
}

prepend(previewHead, themeStyles)
injectPreviewAssets()
}

// Remove all appended theme scripts, and re-append chosen theme’s script
Expand Down

0 comments on commit 9ef8939

Please sign in to comment.