Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build #62

Merged
merged 3 commits into from
Jun 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/warm-teachers-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'docusaurus-theme-redoc': patch
---

Fix webpack build. Closes #57 #58
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -34,6 +34,6 @@ Example project show casing the preset in action with multiple different OpenAPI

## Motivation

To have the documentaion and API reference in the same site with the same headers/footers. Read more in the blog post, [OpenAPI for Docusaurus](https://rohit.page/blog/projects/openapi-for-docusaurus/?utm_source=github&utm_medium=repo&utm_campaign=hf).
To have the documentaion and API reference in the same site with the same headers/footers. Read more in the blog post, [OpenAPI for Docusaurus](https://rohit.page/blog/projects/openapi-for-docusaurus/?utm_source=github&utm_medium=repo&utm_campaign=redocusaurus).

See this issue, [https://github.com/facebook/docusaurus/issues/638](https://github.com/facebook/docusaurus/issues/638#issuecomment-762502498), and this gist, <https://gist.github.com/rohit-gohri/b1a19f37702cfe4a6c5a47933a11785b> for more details and history.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,8 @@
"build": "lerna run build --ignore 'redocusaurus-example'",
"build:example": "lerna run build --scope 'redocusaurus-example'",
"clean": "lerna exec -- \"rm -rf dist* .tsbuild*.info\"",
"dev": "lerna run --parallel dev",
"dev": "lerna run --parallel dev --ignore redocusaurus-example",
"dev:example": "lerna run --parallel dev --scope 'redocusaurus-example'",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "yarn lint --fix",
"release": "yarn build && changeset publish",
4 changes: 2 additions & 2 deletions packages/docusaurus-theme-redoc/package.json
Original file line number Diff line number Diff line change
@@ -35,8 +35,8 @@
"copyfiles": "^2.4.1",
"lodash": "^4.17.21",
"mobx": "^6.3.0",
"node-polyfill-webpack-plugin": "^1.1.1",
"redoc": "^2.0.0-rc.53",
"node-polyfill-webpack-plugin": "^1.1.3",
"redoc": "^2.0.0-rc.54",
"styled-components": "^5.3.0",
"to-arraybuffer": "^1.0.1"
},
7 changes: 6 additions & 1 deletion packages/docusaurus-theme-redoc/src/index.ts
Original file line number Diff line number Diff line change
@@ -17,13 +17,18 @@ export default function redocTheme(
name: 'docusaurus-theme-redoc',
configureWebpack() {
return {
resolve: {
fallback: {
fs: false,
},
},
plugins: [
new webpack.DefinePlugin({
'process.versions.node': JSON.stringify(
process.versions.node || '0.0.0',
),
}),
new NodePolyfillPlugin({}),
new NodePolyfillPlugin(),
],
};
},
310 changes: 143 additions & 167 deletions yarn.lock

Large diffs are not rendered by default.