Skip to content

Commit 83f9d2a

Browse files
committed
feat: init
0 parents  commit 83f9d2a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+18039
-0
lines changed

.gitignore

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

README.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Website
2+
3+
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
4+
5+
### Installation
6+
7+
```
8+
$ yarn
9+
```
10+
11+
### Local Development
12+
13+
```
14+
$ yarn start
15+
```
16+
17+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18+
19+
### Build
20+
21+
```
22+
$ yarn build
23+
```
24+
25+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
26+
27+
### Deployment
28+
29+
Using SSH:
30+
31+
```
32+
$ USE_SSH=true yarn deploy
33+
```
34+
35+
Not using SSH:
36+
37+
```
38+
$ GIT_USER=<Your GitHub username> yarn deploy
39+
```
40+
41+
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.

docs/features/antispam.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Antispam
3+
---

docs/features/captcha.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Captcha (Vérification)
3+
---

docs/features/others.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Autres
3+
---

docs/features/raidmode.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Mode raid
3+
---
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Signaler une infraction à Discord
3+
---

docs/home.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: Accueil
3+
slug: /
4+
---

docs/malfunctions.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Dysfonctionnements
3+
---

docs/quick-guide.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Guide rapide
3+
---

docusaurus.config.ts

+156
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
import {themes as prismThemes} from 'prism-react-renderer';
2+
import type {Config} from '@docusaurus/types';
3+
import type * as Preset from '@docusaurus/preset-classic';
4+
5+
import versions from './versions.json';
6+
7+
const lastStableVersion = versions.find((version) => version !== 'beta')
8+
9+
const defaultLocale = 'fr'
10+
11+
export default async function createConfigAsync() {
12+
return {
13+
title: 'RaidProtect',
14+
tagline: 'Sécurisez votre serveur Discord',
15+
favicon: 'img/favicon.ico',
16+
url: 'https:/docs.raidprotect.bot',
17+
baseUrl: '/',
18+
organizationName: 'rapidprotect',
19+
projectName: 'raidprotect',
20+
onBrokenLinks: 'throw',
21+
onBrokenMarkdownLinks: 'warn',
22+
i18n: {
23+
defaultLocale: defaultLocale,
24+
locales: ['fr', 'en'],
25+
localeConfigs: {
26+
fr: {
27+
label: 'Français',
28+
path: 'fr',
29+
},
30+
en: {
31+
label: 'English',
32+
path: 'en'
33+
},
34+
},
35+
},
36+
presets: [
37+
[
38+
'classic',
39+
{
40+
docs: {
41+
routeBasePath: '/',
42+
sidebarPath: './sidebars.ts',
43+
editUrl: 'https://github.com/raidprotect/docs/tree/main/',
44+
lastVersion: lastStableVersion,
45+
onlyIncludeVersions: (() => {
46+
return ['current', lastStableVersion];
47+
})(),
48+
versions: {
49+
current: {
50+
label: 'Bêta 🚧',
51+
path: 'beta'
52+
},
53+
[lastStableVersion]: {
54+
label: 'Stable',
55+
}
56+
},
57+
admonitions: {
58+
keywords: ['note', 'tip', 'info', 'warning', 'danger'],
59+
extendDefaults: true
60+
},
61+
breadcrumbs: true,
62+
sidebarCollapsible: false,
63+
sidebarCollapsed: false,
64+
editCurrentVersion: false,
65+
editLocalizedFiles: true,
66+
showLastUpdateAuthor: false,
67+
showLastUpdateTime: true,
68+
},
69+
blog: false,
70+
pages: false,
71+
theme: {
72+
customCss: './src/css/custom.css',
73+
},
74+
} satisfies Preset.Options,
75+
],
76+
],
77+
themeConfig: {
78+
docs: {
79+
versionPersistence: 'localStorage',
80+
},
81+
colorMode: {
82+
defaultMode: 'dark',
83+
respectPrefersColorScheme: true
84+
},
85+
image: 'img/docusaurus-social-card.jpg',
86+
navbar: {
87+
title: 'RaidProtect',
88+
logo: {
89+
alt: 'RaidProtect',
90+
src: 'img/logo.svg',
91+
href: 'https://raidprotect.bot',
92+
target: '_self'
93+
},
94+
items: [
95+
{
96+
type: 'docSidebar',
97+
sidebarId: 'sidebar',
98+
position: 'left',
99+
label: 'Documentation',
100+
},
101+
{
102+
to: 'https://suggestions.raidprotect.bot',
103+
position: 'left',
104+
label: 'Suggestions',
105+
target: '_self'
106+
},
107+
{
108+
type: 'docsVersionDropdown',
109+
position: 'right',
110+
dropdownActiveClassDisabled: true,
111+
// dropdownItemsAfter: [
112+
// {
113+
// type: 'html',
114+
// value: '<hr class="dropdown-separator">',
115+
// },
116+
// {
117+
// to: '/versions',
118+
// label: 'All versions',
119+
// },
120+
// ],
121+
},
122+
{
123+
type: 'localeDropdown',
124+
position: 'right',
125+
// dropdownItemsAfter: [
126+
// {
127+
// type: 'html',
128+
// value: '<hr style="margin: 0.3rem 0;">',
129+
// },
130+
// {
131+
// href: 'https://github.com/facebook/docusaurus/issues/3526',
132+
// label: 'Help Us Translate',
133+
// },
134+
// ],
135+
},
136+
],
137+
},
138+
footer: {
139+
style: 'light',
140+
links: [],
141+
logo: {
142+
alt: 'RaidProtect',
143+
src: 'img/logo.svg',
144+
href: 'https://raidprotect.bot',
145+
target: '_self',
146+
width: '75px'
147+
},
148+
copyright: `Copyright © ${new Date().getFullYear()} RaidProtect`,
149+
},
150+
prism: {
151+
theme: prismThemes.github,
152+
darkTheme: prismThemes.dracula,
153+
},
154+
} satisfies Preset.ThemeConfig,
155+
} satisfies Config
156+
}

0 commit comments

Comments
 (0)