Browse Source

docs: plugins

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/6467/head
Raju Udava 1 year ago
parent
commit
22255d15c3
  1. 14
      packages/noco-docs/docusaurus.config.js
  2. 9
      packages/noco-docs/package.json
  3. 2
      packages/noco-docs/src/theme/MDXComponents.js

14
packages/noco-docs/docusaurus.config.js

@ -32,7 +32,19 @@ const config = {
locales: ["en"],
},
plugins: ["docusaurus-plugin-sass"],
plugins: [
"docusaurus-plugin-sass",
[
"@docusaurus/plugin-ideal-image",
{
quality: 70,
max: 1030, // max resized image's size.
min: 640, // min resized image's size. if original is lower, use that size.
steps: 2, // the max number of images generated between min and max (inclusive)
disableInDev: false,
},
],
],
presets: [
[

9
packages/noco-docs/package.json

@ -28,19 +28,22 @@
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"@docusaurus/core": "^2.4.3",
"@docusaurus/plugin-ideal-image": "^2.4.3",
"@docusaurus/plugin-sitemap": "^2.4.3",
"@docusaurus/preset-classic": "^2.4.3",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1",
"docusaurus-plugin-sass": "^0.2.5",
"nc-analytics": "^0.0.3",
"plugin-image-zoom": "github:flexanalytics/plugin-image-zoom",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"sass": "^1.66.1"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.4.1",
"@docusaurus/module-type-aliases": "^2.4.3",
"@tsconfig/docusaurus": "^1.0.5",
"typescript": "^4.7.4"
},

2
packages/noco-docs/src/theme/MDXComponents.js

@ -2,6 +2,7 @@
import MDXComponents from "@theme-original/MDXComponents";
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import Image from "@theme/IdealImage";
export default {
// re-use the default mapping
@ -9,4 +10,5 @@ export default {
// some custom components goes here ...
Tabs,
TabItem,
Image,
};

Loading…
Cancel
Save