use separate sidebars for all resources

This commit is contained in:
Linden committed 2022-06-30 05:44:07 +10:00
1 parent e093df053f
commit 1c620ec0e3
3 files changed
+75 -22

No files matched your search

+74 -21
View File
@@ -29,34 +29,19 @@ const sidebars = {
href: '/docs/ox_core',
},
{
type: 'category',
type: 'link',
label: 'MySQL',
items: [
{
type: 'autogenerated',
dirName: 'oxmysql',
},
],
href: '/docs/oxmysql',
},
{
type: 'category',
type: 'link',
label: 'Library',
items: [
{
type: 'autogenerated',
dirName: 'ox_lib',
},
],
href: '/docs/ox_lib',
},
{
type: 'category',
type: 'link',
label: 'Inventory',
items: [
{
type: 'autogenerated',
dirName: 'ox_inventory',
},
],
href: '/docs/ox_inventory',
},
],
ox_core: [
@@ -81,6 +66,74 @@ const sidebars = {
],
},
],
oxmysql: [
{
type: 'link',
label: '← Documentation',
href: '/docs',
},
{
type: 'category',
label: 'OxMySQL',
link: {
type: 'generated-index',
title: 'OxMySQL',
description:
'MySQL/MariaDB wrapper for FXServer built on the node-mysql2 connector, offering improved performance and functionality.',
},
items: [
{
type: 'autogenerated',
dirName: 'oxmysql',
},
],
},
],
ox_lib: [
{
type: 'link',
label: '← Documentation',
href: '/docs',
},
{
type: 'category',
label: 'Library',
link: {
type: 'generated-index',
title: 'Ox Library',
description: 'Provides shared code through exports and loadable modules to utilise in other resources.',
},
items: [
{
type: 'autogenerated',
dirName: 'ox_lib',
},
],
},
],
ox_inventory: [
{
type: 'link',
label: '← Documentation',
href: '/docs',
},
{
type: 'category',
label: 'Core',
link: {
type: 'generated-index',
title: 'Ox Inventory',
description:
'A slot-based inventory with metadata support, implementing its own items, weapons, shops, and more.',
},
items: [
{
type: 'autogenerated',
dirName: 'ox_inventory',
},
],
},
],
};
module.exports = sidebars;