-
Notifications
You must be signed in to change notification settings - Fork 757
chore: Docusaurus with webpack 5 #500
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,12 +12,12 @@ | |
| "clear": "docusaurus clear" | ||
| }, | ||
| "dependencies": { | ||
| "@docusaurus/core": "^2.0.0-alpha.69", | ||
| "@docusaurus/preset-classic": "^2.0.0-alpha.69", | ||
| "@docusaurus/core": "2.0.0-alpha.75", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems to be really strict. Is taking minor release w/
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not bad, it's just that after my tests using canary I can revert to ^ if you want but keep in mind we force users to have all core package versions aligned.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. No need to revert. We can always change that if we really need to. |
||
| "@docusaurus/preset-classic": "2.0.0-alpha.75", | ||
| "classnames": "^2.2.6", | ||
| "monaco-editor": "^0.19.2", | ||
| "react": "^16.8.4", | ||
| "react-dom": "^16.8.4", | ||
| "react": "^17.0.2", | ||
| "react-dom": "^17.0.2", | ||
| "react-monaco-editor": "^0.33.0" | ||
| }, | ||
| "browserslist": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing this is better because it works on both github.com and hermes website (with Docusaurus replacing the link to the correct url)?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docusaurus has a broken links checker now and this URL was reported as broken.
In general, I think it's a bad idea to link using relative URL paths, because it makes the link sensitive to your host provider adding an extra slash at the end of an URL or not (it is not something very std and lead to a ton of reported problems in all Jamstack frameworks) (our issue: facebook/docusaurus#3372)
Relative file paths are resolved to absolute URLs by Docusaurus at build time, so this is not sensitive to the host adding a trailing slash.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(and yes, it also works on Github 👍 )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh thanks for providing that context. I certainly fought with trailing slash appended by github pages before: https://twitter.com/Huxpro/status/798816417097224193