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

Updated Docusaurus to V3 #241

Merged
merged 2 commits into from
Nov 21, 2023
Merged

Updated Docusaurus to V3 #241

merged 2 commits into from
Nov 21, 2023

Conversation

nunix
Copy link
Contributor

@nunix nunix commented Nov 20, 2023

To upgrade to Docusaurus V3, the following actions have been performed:

  • Local machine: install node.js >=18.x

  • Upgrade the Docusaurus modules with the command yarn upgrade @docusaurus/core@latest @docusaurus/plugin-client-redirects@latest @docusaurus/plugin-google-gtag@latest @docusaurus/preset-classic@latest @docusaurus/module-type-aliases@lates

  • Update yarn.lock with the required values:

    • "@docusaurus/core": "3.0.0"
    • "@docusaurus/preset-classic": "3.0.0"
    • "@mdx-js/react": "^3.0.0"
    • "prism-react-renderer": "^2.1.0"
    • "react": "^18.2.0"
    • "react-dom": "^18.2.0"
    • "node": ">=18.0"
  • The themes light and dark imports in docusaurus.config.js have been updated to use the MDX V3 syntax

  • The deploy.yml action file has been updated to use node.js >=18.x

  • Due to Docusaurus V3 using MDX V3, the references using { ... } have been formatted as code to void errors

  • The theme/MDXComponents file has been regenerated and updated with the previous values. This avoids errors with details component

  • The file package-lock.json has been removed This PR also addresses:
    Bump @mdx-js/react from 1.6.22 to 2.3.0 #55 / Bump @docusaurus/module-type-aliases from 2.4.3 to 3.0.0 #238 / Bump prism-react-renderer from 1.3.5 to 2.2.0 #240

Signed-off-by: Nuno do Carmo [email protected]

To upgrade to Docusaurus V3, the following actions have been performed:

- Local machine: install node.js `>=18.x`

- Upgrade the Docusaurus modules with the command `yarn upgrade @docusaurus/core@latest @docusaurus/plugin-client-redirects@latest @docusaurus/plugin-google-gtag@latest @docusaurus/preset-classic@latest @docusaurus/module-type-aliases@lates`

- Update `yarn.lock` with the required values:
  - "@docusaurus/core": "3.0.0"
  - "@docusaurus/preset-classic": "3.0.0"
  - "@mdx-js/react": "^3.0.0"
  - "prism-react-renderer": "^2.1.0"
  - "react": "^18.2.0"
  - "react-dom": "^18.2.0"
  - "node": ">=18.0"

- The themes light and dark imports in `docusaurus.config.js` have been updated to use the MDX V3 syntax

- The `deploy.yml` action file has been updated to use node.js `>=18.x`

- Due to Docusaurus V3 using MDX V3, the references using `{ ... }` have been formatted as code to void errors

- The `theme/MDXComponents` file has been regenerated and updated with the previous values. This avoids errors with `details` component.

- The file `package-lock.json` has been removed
This PR also addresses:
rancher#55 / rancher#238 / rancher#240

Signed-off-by: Nuno do Carmo [email protected]
@nunix nunix requested a review from a team as a code owner November 20, 2023 15:08
Copy link

netlify bot commented Nov 20, 2023

Deploy Preview for elemental-docs-staging ready!

Name Link
🔨 Latest commit 7d844db
🔍 Latest deploy log https://app.netlify.com/sites/elemental-docs-staging/deploys/655cb7eeb80abe0008110fa7
😎 Deploy Preview https://deploy-preview-241--elemental-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@nunix nunix self-assigned this Nov 21, 2023
Copy link
Contributor

@frelon frelon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does netlify need an update before merging this? 🚀

@nunix
Copy link
Contributor Author

nunix commented Nov 21, 2023

Does netlify need an update before merging this? 🚀

Already done after the I created the PR. The checks show not successful because they ran before I updated the runner on Netlify. After the update, Netlify is now showing it's OK.

@nunix nunix merged commit 026d92d into rancher:main Nov 21, 2023
4 checks passed
frelon pushed a commit to frelon/elemental-docs that referenced this pull request Nov 24, 2023
* Updated Docusaurus to V3

To upgrade to Docusaurus V3, the following actions have been performed:

- Local machine: install node.js `>=18.x`

- Upgrade the Docusaurus modules with the command `yarn upgrade @docusaurus/core@latest @docusaurus/plugin-client-redirects@latest @docusaurus/plugin-google-gtag@latest @docusaurus/preset-classic@latest @docusaurus/module-type-aliases@lates`

- Update `yarn.lock` with the required values:
  - "@docusaurus/core": "3.0.0"
  - "@docusaurus/preset-classic": "3.0.0"
  - "@mdx-js/react": "^3.0.0"
  - "prism-react-renderer": "^2.1.0"
  - "react": "^18.2.0"
  - "react-dom": "^18.2.0"
  - "node": ">=18.0"

- The themes light and dark imports in `docusaurus.config.js` have been updated to use the MDX V3 syntax

- The `deploy.yml` action file has been updated to use node.js `>=18.x`

- Due to Docusaurus V3 using MDX V3, the references using `{ ... }` have been formatted as code to void errors

- The `theme/MDXComponents` file has been regenerated and updated with the previous values. This avoids errors with `details` component.

- The file `package-lock.json` has been removed
This PR also addresses:
rancher#55 / rancher#238 / rancher#240

Signed-off-by: Nuno do Carmo [email protected]

* Updated typescript module

Addresses rancher#242

---------

Signed-off-by: Nuno do Carmo [email protected]
@nunix nunix deleted the docusaurus-update-v3 branch December 12, 2023 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants