@docusaurus/plugin-content-docs 2.4.0 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -91,7 +91,7 @@ Available doc IDs:
91
91
  */
92
92
  function generateSidebar(fsModel) {
93
93
  function createDocItem(id, fullPath, fileName) {
94
- const { sidebarPosition: position, frontMatter: { sidebar_label: label, sidebar_class_name: className }, } = getDoc(id);
94
+ const { sidebarPosition: position, frontMatter: { sidebar_label: label, sidebar_class_name: className, sidebar_custom_props: customProps, }, } = getDoc(id);
95
95
  return {
96
96
  type: 'doc',
97
97
  id,
@@ -101,6 +101,7 @@ Available doc IDs:
101
101
  // sidebar
102
102
  ...(label !== undefined && { label }),
103
103
  ...(className !== undefined && { className }),
104
+ ...(customProps !== undefined && { customProps }),
104
105
  };
105
106
  }
106
107
  function createCategoryItem(dir, fullPath, folderName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-content-docs",
3
- "version": "2.4.0",
3
+ "version": "2.4.3",
4
4
  "description": "Docs plugin for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "sideEffects": false,
@@ -35,13 +35,13 @@
35
35
  },
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
- "@docusaurus/core": "2.4.0",
39
- "@docusaurus/logger": "2.4.0",
40
- "@docusaurus/mdx-loader": "2.4.0",
41
- "@docusaurus/module-type-aliases": "2.4.0",
42
- "@docusaurus/types": "2.4.0",
43
- "@docusaurus/utils": "2.4.0",
44
- "@docusaurus/utils-validation": "2.4.0",
38
+ "@docusaurus/core": "2.4.3",
39
+ "@docusaurus/logger": "2.4.3",
40
+ "@docusaurus/mdx-loader": "2.4.3",
41
+ "@docusaurus/module-type-aliases": "2.4.3",
42
+ "@docusaurus/types": "2.4.3",
43
+ "@docusaurus/utils": "2.4.3",
44
+ "@docusaurus/utils-validation": "2.4.3",
45
45
  "@types/react-router-config": "^5.0.6",
46
46
  "combine-promises": "^1.1.0",
47
47
  "fs-extra": "^10.1.0",
@@ -66,5 +66,5 @@
66
66
  "engines": {
67
67
  "node": ">=16.14"
68
68
  },
69
- "gitHead": "898b85ef134cc43bf3b1209aad0ca8cdcfb214c5"
69
+ "gitHead": "56410aa94665699f75cb889f477ccdffb98f2b21"
70
70
  }
@@ -138,7 +138,11 @@ Available doc IDs:
138
138
  ): WithPosition<SidebarItemDoc> {
139
139
  const {
140
140
  sidebarPosition: position,
141
- frontMatter: {sidebar_label: label, sidebar_class_name: className},
141
+ frontMatter: {
142
+ sidebar_label: label,
143
+ sidebar_class_name: className,
144
+ sidebar_custom_props: customProps,
145
+ },
142
146
  } = getDoc(id);
143
147
  return {
144
148
  type: 'doc',
@@ -149,6 +153,7 @@ Available doc IDs:
149
153
  // sidebar
150
154
  ...(label !== undefined && {label}),
151
155
  ...(className !== undefined && {className}),
156
+ ...(customProps !== undefined && {customProps}),
152
157
  };
153
158
  }
154
159
  function createCategoryItem(