mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
auto-generate sidebar and add category config to resources
This commit is contained in:
1 parent
858b1176a4
commit
97b129e0fa
13 files changed
+105
-181
No files matched your search
+58
-173
@@ -14,181 +14,66 @@
|
||||
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
|
||||
const sidebars = {
|
||||
// By default, Docusaurus generates a sidebar from the docs folder structure
|
||||
// tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
|
||||
tutorialSidebar: [
|
||||
{
|
||||
type: 'autogenerated',
|
||||
dirName: '.',
|
||||
},
|
||||
],
|
||||
|
||||
// But you can create a sidebar manually
|
||||
docs: [
|
||||
{
|
||||
type: 'doc',
|
||||
label: 'Home',
|
||||
id: 'index',
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'Core',
|
||||
href: '/docs/ox_core',
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'MySQL',
|
||||
href: '/docs/oxmysql',
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'Library',
|
||||
href: '/docs/ox_lib',
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'Target',
|
||||
href: '/docs/ox_target',
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'Inventory',
|
||||
href: '/docs/ox_inventory',
|
||||
},
|
||||
{
|
||||
type: 'link',
|
||||
label: 'Doorlock',
|
||||
href: '/docs/ox_doorlock',
|
||||
},
|
||||
],
|
||||
ox_target: [
|
||||
{
|
||||
type: 'link',
|
||||
label: '← Home',
|
||||
href: '/docs',
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: 'Target',
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
title: 'Ox Target',
|
||||
description: 'A performant and flexible "third-eye" stand-alone targeting resource, with additional support for ox, esx, and qb.',
|
||||
},
|
||||
items: [
|
||||
{
|
||||
type: 'autogenerated',
|
||||
dirName: 'ox_target',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
ox_core: [
|
||||
{
|
||||
type: 'link',
|
||||
label: '← Home',
|
||||
href: '/docs',
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: 'Core',
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
title: 'Ox Core',
|
||||
description: 'An experimental framework for FiveM. Limited support and breaking changes guaranteed.',
|
||||
},
|
||||
items: [
|
||||
{
|
||||
type: 'autogenerated',
|
||||
dirName: 'ox_core',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
oxmysql: [
|
||||
{
|
||||
type: 'link',
|
||||
label: '← Home',
|
||||
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: '← Home',
|
||||
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: '← Home',
|
||||
href: '/docs',
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: 'Inventory',
|
||||
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',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
ox_doorlock: [
|
||||
{
|
||||
type: 'link',
|
||||
label: '← Home',
|
||||
href: '/docs',
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: 'Doorlock',
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
title: 'Ox Doorlock',
|
||||
description:
|
||||
'Door management resource.',
|
||||
},
|
||||
items: [
|
||||
{
|
||||
type: 'autogenerated',
|
||||
dirName: 'ox_doorlock',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
// docs: [
|
||||
// {
|
||||
// type: 'doc',
|
||||
// label: 'Documentation',
|
||||
// id: 'index',
|
||||
// },
|
||||
// {
|
||||
// type: 'category',
|
||||
// label: 'Core',
|
||||
// link: {
|
||||
// type: 'generated-index',
|
||||
// title: 'Ox Core',
|
||||
// description: 'An experimental framework for FiveM. Limited support and breaking changes guaranteed.',
|
||||
// },
|
||||
// items: [
|
||||
// {
|
||||
// type: 'autogenerated',
|
||||
// dirName: 'ox_core',
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// type: 'category',
|
||||
// label: 'MySQL',
|
||||
// items: [
|
||||
// {
|
||||
// type: 'autogenerated',
|
||||
// dirName: 'oxmysql',
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// type: 'category',
|
||||
// label: 'Library',
|
||||
// items: [
|
||||
// {
|
||||
// type: 'autogenerated',
|
||||
// dirName: 'ox_lib',
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// type: 'category',
|
||||
// label: 'Inventory',
|
||||
// items: [
|
||||
// {
|
||||
// type: 'autogenerated',
|
||||
// dirName: 'ox_inventory',
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// ],
|
||||
};
|
||||
|
||||
module.exports = sidebars;
|
||||
Reference in new issue
Block a user