Skip to content

Commit

Permalink
Bump docusaurus version and don't use named exports from json files due
Browse files Browse the repository at this point in the history
to build warning
  • Loading branch information
cmdcolin committed May 12, 2021
1 parent 3fddc20 commit 6a2059b
Show file tree
Hide file tree
Showing 5 changed files with 991 additions and 2,301 deletions.
4 changes: 2 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"make": "make -C docs"
},
"dependencies": {
"@docusaurus/core": "^2.0.0-alpha.72",
"@docusaurus/preset-classic": "^2.0.0-alpha.72",
"@docusaurus/core": "^2.0.0-alpha.75",
"@docusaurus/preset-classic": "^2.0.0-alpha.75",
"@material-ui/core": "^4.9.13",
"@material-ui/icons": "^4.11.2",
"acorn": "^8.1.1",
Expand Down
4 changes: 2 additions & 2 deletions website/src/pages/demos.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { customFields } from '../../docusaurus.config.json'
import config from '../../docusaurus.config.json'

export const Link = ({ extra, children }) => {
return (
<a
href={`https://jbrowse.org/code/jb2/${customFields.currentVersion}/${extra}`}
href={`https://jbrowse.org/code/jb2/${config.customFields.currentVersion}/${extra}`}
>
{children}
</a>
Expand Down
4 changes: 2 additions & 2 deletions website/src/pages/download.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { customFields } from '../../docusaurus.config.json'
import config from '../../docusaurus.config.json'

export const Link = () => {
const curr = `https://github.com/GMOD/jbrowse-components/releases/tag/${customFields.currentVersion}`
const curr = `https://github.com/GMOD/jbrowse-components/releases/tag/${config.customFields.currentVersion}`
return (
<div style={{ margin: 50 }}>
<a href={curr}>{curr}</a>
Expand Down
3 changes: 2 additions & 1 deletion website/src/pages/plugin_store.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ import CloseIcon from '@material-ui/icons/Close'
import { DialogContent } from '@material-ui/core'

// eslint-disable-next-line import/no-unresolved
import { plugins } from '../../plugins.json'
import pluginJSON from '../../plugins.json'
const { plugins } = pluginJSON

import pluginStyles from '../css/pluginStyles.module.css'

Expand Down
Loading

0 comments on commit 6a2059b

Please sign in to comment.