create-packer 1.7.7 → 1.7.8
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.
package/package.json
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* @format
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
const path = require('path')
|
|
11
|
+
|
|
10
12
|
module.exports = {
|
|
11
13
|
title: 'My Site',
|
|
12
14
|
tagline: 'The tagline of my site',
|
|
@@ -115,13 +117,16 @@ module.exports = {
|
|
|
115
117
|
'@docusaurus/preset-classic',
|
|
116
118
|
{
|
|
117
119
|
docs: {
|
|
118
|
-
sidebarPath:
|
|
120
|
+
sidebarPath: path.join(__dirname, './sidebars.js'),
|
|
121
|
+
sidebarItemsGenerator: async function ({
|
|
122
|
+
defaultSidebarItemsGenerator,
|
|
123
|
+
...args
|
|
124
|
+
}) {
|
|
125
|
+
return await defaultSidebarItemsGenerator(args)
|
|
126
|
+
}
|
|
119
127
|
},
|
|
120
128
|
theme: {
|
|
121
129
|
customCss: require.resolve('./src/css/custom.css')
|
|
122
|
-
},
|
|
123
|
-
sidebarItemsGenerator: async function ({ defaultSidebarItemsGenerator, ...args }) {
|
|
124
|
-
return await defaultSidebarItemsGenerator(args)
|
|
125
130
|
}
|
|
126
131
|
}
|
|
127
132
|
]
|