Closed samducker closed 1 week ago
:tada: Thanks for opening your first issue here! Welcome to the community!
Hi @samducker are you still experiencing this issue with a more recent release?
I am also experiencing this issue with 2.0.0-beta.4.
Another symptom is that images wider than the main content area look stretched in my non-OpenAPI docs. It appears this is also because the classic theme was correcting that issue (by applying height:auto
), and the classic theme is no longer applying to my docs.
If it's useful, my Docusaurus configuration is here: https://github.com/camunda/camunda-docs/blob/66ac50b954bca498bafd382e6bdde4d8ea542f1c/docusaurus.config.js
Hi I also experienced this issue with 2.0.2, as well as everything mentioned here
It was resolved by updating @mdx-js/react from 1.6.21 to ^1.6.22.
Below is the package.json BEFORE updating @mdx-js/react, hope this helps!
{
"name": "doc-website",
"version": "0.0.0",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "docusaurus serve",
},
"dependencies": {
"@docusaurus/core": "2.4.3",
"@docusaurus/preset-classic": "2.4.3",
"@emotion/react": "^11.9.3",
"@emotion/styled": "^11.9.3",
"@mdx-js/react": "1.6.21", //updating this to ^1.6.22 fixed the issue
"@mui/material": "^5.8.7",
"@svgr/webpack": "^5.5.0",
"clsx": "^1.1.1",
"docusaurus-plugin-openapi-docs": "^2.0.2",
"docusaurus-theme-openapi-docs": "^2.0.2",
"file-loader": "^6.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"url-loader": "^4.1.1"
},
"browserslist": {
"production": [
">0.5%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"volta": {
"node": "18.19.0",
"yarn": "4.0.2"
}
}
Describe the bug
Currently the built in docusarus custom rendering of markdown is not working as intended. For example admonitions are not rendering and also codeblocks are not rendering with prism syntax highlighting.
Expected behavior
I expected the theme to display as per the demo docs, with for example the type of HTTP request next to each item in the api docs, and also for docusarus built in features like admonitions to continue to work.
Current behavior
Currently markdown renders but not the custom changes e.g. to admonitions or prism rendering, I presume this is to do with the preset-classic theme potentially not loading correctly since I implemented the openapi-docs plugin.
Screenshots
My package.json