mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 22:22:46 +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
@@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Home
|
title: Home
|
||||||
|
sidebar_position: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
Here you can find all of the official documentation for resources developed by the Overextended team
|
Here you can find all of the official documentation for resources developed by the Overextended team
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Getting started
|
title: Getting started
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
slug: ./../
|
|
||||||
---
|
---
|
||||||
|
|
||||||
import ResourceLinks from '@site/src/components/ResourceLinks';
|
import ResourceLinks from '@site/src/components/ResourceLinks';
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
label: Ox Core
|
||||||
|
collapsible: true
|
||||||
|
collapsed: true
|
||||||
|
link:
|
||||||
|
type: generated-index
|
||||||
|
description: An experimental framework for FiveM. Limited support and breaking changes guaranteed.
|
||||||
|
position: 4
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
label: Ox Doorlock
|
||||||
|
collapsible: true
|
||||||
|
collapsed: true
|
||||||
|
link:
|
||||||
|
type: generated-index
|
||||||
|
description: A door management resource that can be used standalone or alongside ox_core, qb-core, and es_extended.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
label: Ox Fuel
|
||||||
|
collapsible: true
|
||||||
|
collapsed: true
|
||||||
|
link:
|
||||||
|
type: generated-index
|
||||||
|
description: A simple fuel resource meant to replace LegacyFuel or serve as a showcase for using petrol cans as an item.
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Getting Started
|
title: Getting started
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
slug: ./../
|
|
||||||
---
|
---
|
||||||
|
|
||||||
import ResourceLinks from '@site/src/components/ResourceLinks';
|
import ResourceLinks from '@site/src/components/ResourceLinks';
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
label: Ox Inventory
|
||||||
|
collapsible: true
|
||||||
|
collapsed: true
|
||||||
|
link:
|
||||||
|
type: generated-index
|
||||||
|
description: An slot-based inventory with item metadata for "item uniqueness".
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
label: Ox Lib
|
||||||
|
collapsible: true
|
||||||
|
collapsed: true
|
||||||
|
link:
|
||||||
|
type: generated-index
|
||||||
|
description: A standalone library for providing easily reusable code as importable modules and exports.
|
||||||
|
position: 3
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Getting started
|
title: Getting started
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
slug: ./../
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
label: Ox Target
|
||||||
|
collapsible: true
|
||||||
|
collapsed: true
|
||||||
|
link:
|
||||||
|
type: generated-index
|
||||||
|
description: A performant and flexible standalone targeting resource or "third-eye", with additional functionality for ox_inventory, ox_core, qb-core, and es_extended.
|
||||||
@@ -1,7 +1,3 @@
|
|||||||
---
|
|
||||||
slug: ./../ # Sets the url to /docs/oxmysql/
|
|
||||||
---
|
|
||||||
|
|
||||||
# Getting Started
|
# Getting Started
|
||||||
|
|
||||||
## MySQL or MariaDB?
|
## MySQL or MariaDB?
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
label: OxMySQL
|
||||||
|
collapsible: true
|
||||||
|
collapsed: true
|
||||||
|
link:
|
||||||
|
type: generated-index
|
||||||
|
description: A drop-in replacement of mysql-async and ghmattimysql with expanded API and improved compatibility for MySQL 8.
|
||||||
|
position: 2
|
||||||
+58
-173
@@ -14,181 +14,66 @@
|
|||||||
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
|
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
|
||||||
const sidebars = {
|
const sidebars = {
|
||||||
// By default, Docusaurus generates a sidebar from the docs folder structure
|
// 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
|
// But you can create a sidebar manually
|
||||||
docs: [
|
// docs: [
|
||||||
{
|
// {
|
||||||
type: 'doc',
|
// type: 'doc',
|
||||||
label: 'Home',
|
// label: 'Documentation',
|
||||||
id: 'index',
|
// id: 'index',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
type: 'link',
|
// type: 'category',
|
||||||
label: 'Core',
|
// label: 'Core',
|
||||||
href: '/docs/ox_core',
|
// link: {
|
||||||
},
|
// type: 'generated-index',
|
||||||
{
|
// title: 'Ox Core',
|
||||||
type: 'link',
|
// description: 'An experimental framework for FiveM. Limited support and breaking changes guaranteed.',
|
||||||
label: 'MySQL',
|
// },
|
||||||
href: '/docs/oxmysql',
|
// items: [
|
||||||
},
|
// {
|
||||||
{
|
// type: 'autogenerated',
|
||||||
type: 'link',
|
// dirName: 'ox_core',
|
||||||
label: 'Library',
|
// },
|
||||||
href: '/docs/ox_lib',
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
type: 'link',
|
// type: 'category',
|
||||||
label: 'Target',
|
// label: 'MySQL',
|
||||||
href: '/docs/ox_target',
|
// items: [
|
||||||
},
|
// {
|
||||||
{
|
// type: 'autogenerated',
|
||||||
type: 'link',
|
// dirName: 'oxmysql',
|
||||||
label: 'Inventory',
|
// },
|
||||||
href: '/docs/ox_inventory',
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
type: 'link',
|
// type: 'category',
|
||||||
label: 'Doorlock',
|
// label: 'Library',
|
||||||
href: '/docs/ox_doorlock',
|
// items: [
|
||||||
},
|
// {
|
||||||
],
|
// type: 'autogenerated',
|
||||||
ox_target: [
|
// dirName: 'ox_lib',
|
||||||
{
|
// },
|
||||||
type: 'link',
|
// ],
|
||||||
label: '← Home',
|
// },
|
||||||
href: '/docs',
|
// {
|
||||||
},
|
// type: 'category',
|
||||||
{
|
// label: 'Inventory',
|
||||||
type: 'category',
|
// items: [
|
||||||
label: 'Target',
|
// {
|
||||||
link: {
|
// type: 'autogenerated',
|
||||||
type: 'generated-index',
|
// dirName: 'ox_inventory',
|
||||||
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',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = sidebars;
|
module.exports = sidebars;
|
||||||
Reference in new issue
Block a user