mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
Restructure
This commit is contained in:
1 parent
fa927640d4
commit
f9aa5347e3
8 files changed
+82
-25
No files matched your search
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"printWidth": 120,
|
||||||
|
"singleQuote": true,
|
||||||
|
"useTabs": false,
|
||||||
|
"tabWidth": 2,
|
||||||
|
"semi": true,
|
||||||
|
"bracketSpacing": true,
|
||||||
|
"trailingComma": "es5"
|
||||||
|
}
|
||||||
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1,17 @@
|
|||||||
|
```lua
|
||||||
|
-- principal: string or false
|
||||||
|
-- command: string
|
||||||
|
-- callback: function
|
||||||
|
-- parameters: table (optional)
|
||||||
|
-- help: string (optional)
|
||||||
|
lib.commands(principal, command, callback, parameters, help)
|
||||||
|
```
|
||||||
|
|
||||||
|
```lua
|
||||||
|
lib.commands('group.admin', {'additem', 'giveitem'}, function(source, args)
|
||||||
|
args.item = Items(args.item)
|
||||||
|
if args.item and args.count > 0 then
|
||||||
|
Inventory.AddItem(args.target, args.item.name, args.count, args.metatype)
|
||||||
|
end
|
||||||
|
end, {'target:number', 'item:string', 'count:number', 'metatype:?string'})
|
||||||
|
```
|
||||||
File renamed without changes.
+10
-7
@@ -16,6 +16,8 @@ const config = {
|
|||||||
organizationName: 'overextended', // Usually your GitHub org/user name.
|
organizationName: 'overextended', // Usually your GitHub org/user name.
|
||||||
projectName: 'overextended.github.io', // Usually your repo name.
|
projectName: 'overextended.github.io', // Usually your repo name.
|
||||||
|
|
||||||
|
// plugins: ['@docusaurus/'],
|
||||||
|
|
||||||
presets: [
|
presets: [
|
||||||
[
|
[
|
||||||
'classic',
|
'classic',
|
||||||
@@ -38,7 +40,7 @@ const config = {
|
|||||||
({
|
({
|
||||||
colorMode: {
|
colorMode: {
|
||||||
defaultMode: 'dark',
|
defaultMode: 'dark',
|
||||||
disableSwitch: true
|
disableSwitch: true,
|
||||||
},
|
},
|
||||||
navbar: {
|
navbar: {
|
||||||
title: 'Overextended',
|
title: 'Overextended',
|
||||||
@@ -50,14 +52,14 @@ const config = {
|
|||||||
},
|
},
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
href: "https://www.github.com/overextended",
|
href: 'https://www.github.com/overextended',
|
||||||
label: 'GitHub',
|
label: 'GitHub',
|
||||||
position: 'left'
|
position: 'left',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
href: "https://www.discord.gg/overextended",
|
href: 'https://www.discord.gg/overextended',
|
||||||
label: 'Discord',
|
label: 'Discord',
|
||||||
position: 'left'
|
position: 'left',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
to: 'docs/',
|
to: 'docs/',
|
||||||
@@ -67,8 +69,8 @@ const config = {
|
|||||||
{
|
{
|
||||||
// Still have to add the actual search :(
|
// Still have to add the actual search :(
|
||||||
type: 'search',
|
type: 'search',
|
||||||
position: 'right'
|
position: 'right',
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
@@ -78,6 +80,7 @@ const config = {
|
|||||||
prism: {
|
prism: {
|
||||||
theme: lightCodeTheme,
|
theme: lightCodeTheme,
|
||||||
darkTheme: darkCodeTheme,
|
darkTheme: darkCodeTheme,
|
||||||
|
additionalLanguages: ['lua']
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|||||||
+21
-18
@@ -25,7 +25,27 @@ const sidebars = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'category',
|
type: 'category',
|
||||||
label: "ox_inventory",
|
label: 'MySQL',
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
type: 'autogenerated',
|
||||||
|
dirName: 'oxmysql'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'category',
|
||||||
|
label: 'Library',
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
type: 'autogenerated',
|
||||||
|
dirName: 'ox_lib'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'category',
|
||||||
|
label: "Inventory",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
type: 'autogenerated',
|
type: 'autogenerated',
|
||||||
@@ -33,23 +53,6 @@ const sidebars = {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: 'category',
|
|
||||||
label: 'OxMySQL',
|
|
||||||
items: [
|
|
||||||
{
|
|
||||||
type: 'autogenerated',
|
|
||||||
dirName: 'OxMySQL'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
// "ox_inventory": [
|
|
||||||
// {
|
|
||||||
// type: 'category',
|
|
||||||
// label: 'Internal',
|
|
||||||
// items: ['ox_inventory/Internal/Client/', 'ox_inventory/Internal/Server/']
|
|
||||||
// }
|
|
||||||
// ]
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
import siteConfig from '@generated/docusaurus.config';
|
||||||
|
export default function prismIncludeLanguages(PrismObject) {
|
||||||
|
const {
|
||||||
|
themeConfig: {prism},
|
||||||
|
} = siteConfig;
|
||||||
|
const {additionalLanguages} = prism; // Prism components work on the Prism instance on the window, while prism-
|
||||||
|
// react-renderer uses its own Prism instance. We temporarily mount the
|
||||||
|
// instance onto window, import components to enhance it, then remove it to
|
||||||
|
// avoid polluting global namespace.
|
||||||
|
// You can mutate PrismObject: registering plugins, deleting languages... As
|
||||||
|
// long as you don't re-assign it
|
||||||
|
|
||||||
|
globalThis.Prism = PrismObject;
|
||||||
|
additionalLanguages.forEach((lang) => {
|
||||||
|
// eslint-disable-next-line global-require, import/no-dynamic-require
|
||||||
|
require(`prismjs/components/prism-${lang}`);
|
||||||
|
});
|
||||||
|
delete globalThis.Prism;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user