diff --git a/docs/ox_core/index.md b/docs/ox_core/index.md index 17e26d8b..0583077c 100644 --- a/docs/ox_core/index.md +++ b/docs/ox_core/index.md @@ -1,7 +1,6 @@ --- title: Getting started sidebar_position: 1 -displayed_sidebar: ox_core --- import Tabs from '@theme/Tabs'; diff --git a/docusaurus.config.js b/docusaurus.config.js index af05c5f4..84bc8f14 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -27,6 +27,7 @@ const config = { sidebarPath: require.resolve('./sidebars.js'), // Please change this to your repo. editUrl: 'https://github.com/overextended/overextended.github.io/tree/main/', + showLastUpdateTime: true, }, theme: { customCss: require.resolve('./src/css/custom.css'), diff --git a/sidebars.js b/sidebars.js index 4ed7efb5..b05e2313 100644 --- a/sidebars.js +++ b/sidebars.js @@ -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;