mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-08 04:25:46 +00:00
docs: sidebar autogen hidden support (#21454)
This commit is contained in:
parent
cb31c3611f
commit
5542eacad8
@ -101,6 +101,9 @@ const config = {
|
|||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
subItem.label = subItem.label.replace(/\//g, "/\u200B");
|
subItem.label = subItem.label.replace(/\//g, "/\u200B");
|
||||||
}
|
}
|
||||||
|
if (args.item.className) {
|
||||||
|
subItem.className = args.item.className;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return sidebarItems;
|
return sidebarItems;
|
||||||
},
|
},
|
||||||
|
@ -29,14 +29,26 @@ module.exports = {
|
|||||||
items: ["installation"],
|
items: ["installation"],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "doc",
|
type: "category",
|
||||||
id: "tutorials/index",
|
link: {type: 'doc', id: 'tutorials/index'},
|
||||||
label: "Tutorials",
|
label: "Tutorials",
|
||||||
|
collapsible: false,
|
||||||
|
items: [{
|
||||||
|
type: 'autogenerated',
|
||||||
|
dirName: 'tutorials',
|
||||||
|
className: 'hidden',
|
||||||
|
}],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "doc",
|
type: "category",
|
||||||
id: "how_to/index",
|
link: {type: 'doc', id: 'how_to/index'},
|
||||||
label: "How-To Guides",
|
label: "How-To Guides",
|
||||||
|
collapsible: false,
|
||||||
|
items: [{
|
||||||
|
type: 'autogenerated',
|
||||||
|
dirName: 'how_to',
|
||||||
|
className: 'hidden',
|
||||||
|
}],
|
||||||
},
|
},
|
||||||
"concepts",
|
"concepts",
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user