Initial commit

This commit is contained in:
Luke committed 2022-02-27 13:28:51 +01:00
commit c796eecce3
23 files changed
+8134

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
# Dependencies
/node_modules
# Production
/build
# Generated files
.docusaurus
.cache-loader
# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
+41
View File
@@ -0,0 +1,41 @@
# Website
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
### Installation
```
$ yarn
```
### Local Development
```
$ yarn start
```
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
### Build
```
$ yarn build
```
This command generates static content into the `build` directory and can be served using any static contents hosting service.
### Deployment
Using SSH:
```
$ USE_SSH=true yarn deploy
```
Not using SSH:
```
$ GIT_USER=<Your GitHub username> yarn deploy
```
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
+3
View File
@@ -0,0 +1,3 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};
+3
View File
@@ -0,0 +1,3 @@
---
title: Installation
---
+8
View File
@@ -0,0 +1,8 @@
---
title: Documentation
---
Here you can find all of the official documentation for resoruces developed by the Overextended team
If you feel like the documentation is lacking in some department then feel free to go onto that page
and click the "Edit this page" at the bottom and submit a Pull Request.
+3
View File
@@ -0,0 +1,3 @@
---
title: Placeholder
---
+3
View File
@@ -0,0 +1,3 @@
---
title: Placeholder
---
+3
View File
@@ -0,0 +1,3 @@
---
title: Placeholder
---
@@ -0,0 +1,3 @@
---
title: Placeholder
---
@@ -0,0 +1,3 @@
---
title: Placeholder
---
+3
View File
@@ -0,0 +1,3 @@
---
title: Installation
---
+70
View File
@@ -0,0 +1,70 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Overextended',
tagline: 'Official documentation for Overextended resources',
url: 'https://overextended.github.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/ox.ico',
organizationName: 'overextended', // Usually your GitHub org/user name.
projectName: 'docs', // Usually your repo name.
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: 'dark',
disableSwitch: true
},
navbar: {
title: 'Overextended',
logo: {
alt: 'Ox Logo',
src: 'img/ox.png',
width: 32,
height: 32,
},
items: [
{
to: 'docs/',
label: 'Documentation',
position: 'right',
},
],
},
footer: {
style: 'dark',
copyright: `Copyright © ${new Date().getFullYear()} Overextended`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;
+43
View File
@@ -0,0 +1,43 @@
{
"name": "website",
"version": "0.0.0",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.16",
"@docusaurus/preset-classic": "2.0.0-beta.16",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.1.1",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.0.0-beta.16",
"@tsconfig/docusaurus": "^1.0.4",
"typescript": "^4.5.2"
},
"browserslist": {
"production": [
">0.5%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
+56
View File
@@ -0,0 +1,56 @@
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
// @ts-check
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
// tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
// But you can create a sidebar manually
docs: [
{
type: 'doc',
label: 'Documentation',
id: 'index'
},
{
type: 'category',
label: "ox_inventory",
items: [
{
type: 'autogenerated',
dirName: 'ox_inventory'
}
]
},
{
type: 'category',
label: 'OxMySQL',
items: [
{
type: 'autogenerated',
dirName: 'OxMySQL'
}
]
}
// "ox_inventory": [
// {
// type: 'category',
// label: 'Internal',
// items: ['ox_inventory/Internal/Client/', 'ox_inventory/Internal/Server/']
// }
// ]
]
};
module.exports = sidebars;
+57
View File
@@ -0,0 +1,57 @@
/**
* Any CSS included here will be global. The classic template
* bundles Infima by default. Infima is a CSS framework designed to
* work well for content-centric websites.
*/
/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #2e8555;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
--ifm-color-primary-light: #33925d;
--ifm-color-primary-lighter: #359962;
--ifm-color-primary-lightest: #3cad6e;
--ifm-code-font-size: 95%;
}
/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
--ifm-color-primary: #19e1b6;
--ifm-color-primary-dark: #17caa4;
--ifm-color-primary-darker: #15bf9b;
--ifm-color-primary-darkest: #119e7f;
--ifm-color-primary-light: #2be8bf;
--ifm-color-primary-lighter: #37e9c2;
--ifm-color-primary-lightest: #58edcd;
--wrapper-background: #182029;
}
.docusaurus-highlight-code-line {
background-color: rgba(0, 0, 0, 0.1);
display: block;
margin: 0 calc(-1 * var(--ifm-pre-padding));
padding: 0 var(--ifm-pre-padding);
}
[data-theme='dark'] .docusaurus-highlight-code-line {
background-color: rgba(0, 0, 0, 0.3);
}
.main-wrapper {
display: flex;
justify-content: center;
align-items: center;
background-color: var(--wrapper-background);
}
.docs-wrapper {
background-color: #182029;
justify-content: stretch;
align-items: stretch;
}
.navbar {
background-color: #1d252e;
}
+37
View File
@@ -0,0 +1,37 @@
/**
* CSS files with the .module.css suffix will be treated as CSS modules
* and scoped locally.
*/
.heroBanner {
padding: 4rem 0;
text-align: center;
position: relative;
overflow: hidden;
color: white;
background-color: var(--wrapper-background);
}
.container {
background-color: var(--wrapper-background);
}
@media screen and (max-width: 966px) {
.heroBanner {
padding: 2rem;
}
}
.buttons {
display: flex;
align-items: center;
justify-content: center;
}
.ox {
image-rendering: -moz-crisp-edges; /* Firefox */
image-rendering: -o-crisp-edges; /* Opera */
image-rendering: -webkit-optimize-contrast; /* Webkit (non-standard naming) */
image-rendering: crisp-edges;
-ms-interpolation-mode: nearest-neighbor; /* IE (non-standard property) */
}
+31
View File
@@ -0,0 +1,31 @@
import React from 'react';
import clsx from 'clsx';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import styles from './index.module.css';
function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();
return (
<div className={clsx('hero hero--primary', styles.heroBanner)}>
<div className={`container ${styles.container}`}>
<img src="/img/ox.png" alt="ox" width={256} height={256} className={styles.ox} />
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
</div>
</div>
);
}
export default function Home(): JSX.Element {
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={`Overextended`}
description="Official documentation for overextended resources <head />"
>
<HomepageHeader />
</Layout>
);
}
+7
View File
@@ -0,0 +1,7 @@
---
title: Markdown page example
---
# Markdown page example
You don't need React to write simple standalone pages.
View File
Whitespace-only changes.
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

+7
View File
@@ -0,0 +1,7 @@
{
// This file is not used in compilation. It is here just for a nice editor experience.
"extends": "@tsconfig/docusaurus/tsconfig.json",
"compilerOptions": {
"baseUrl": "."
}
}
+7733
View File
File diff suppressed because it is too large. Load diff