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

-1
View File
@@ -1,7 +1,6 @@
--- ---
title: Getting started title: Getting started
sidebar_position: 1 sidebar_position: 1
displayed_sidebar: ox_core
--- ---
import Tabs from '@theme/Tabs'; import Tabs from '@theme/Tabs';
+1
View File
@@ -27,6 +27,7 @@ const config = {
sidebarPath: require.resolve('./sidebars.js'), sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo. // Please change this to your repo.
editUrl: 'https://github.com/overextended/overextended.github.io/tree/main/', editUrl: 'https://github.com/overextended/overextended.github.io/tree/main/',
showLastUpdateTime: true,
}, },
theme: { theme: {
customCss: require.resolve('./src/css/custom.css'), customCss: require.resolve('./src/css/custom.css'),
+74 -21
View File
@@ -29,34 +29,19 @@ const sidebars = {
href: '/docs/ox_core', href: '/docs/ox_core',
}, },
{ {
type: 'category', type: 'link',
label: 'MySQL', label: 'MySQL',
items: [ href: '/docs/oxmysql',
{
type: 'autogenerated',
dirName: 'oxmysql',
},
],
}, },
{ {
type: 'category', type: 'link',
label: 'Library', label: 'Library',
items: [ href: '/docs/ox_lib',
{
type: 'autogenerated',
dirName: 'ox_lib',
},
],
}, },
{ {
type: 'category', type: 'link',
label: 'Inventory', label: 'Inventory',
items: [ href: '/docs/ox_inventory',
{
type: 'autogenerated',
dirName: 'ox_inventory',
},
],
}, },
], ],
ox_core: [ 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; module.exports = sidebars;