-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c458d1
commit bb54dfa
Showing
3 changed files
with
150 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.eslintrc.js | ||
docusaurus.config.js | ||
docusaurus.config.dev.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
docusaurus.config.js | ||
docusaurus.config.dev.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
// @ts-check | ||
// Note: type annotations allow type checking and IDEs autocompletion | ||
require('dotenv').config(); | ||
|
||
const lightCodeTheme = require('prism-react-renderer/themes/github'); | ||
const darkCodeTheme = require('prism-react-renderer/themes/dracula'); | ||
|
||
/** @type {import('@docusaurus/types').Config} */ | ||
const config = { | ||
title: 'Suggestions Documentation', | ||
tagline: | ||
"The official documentation for the Suggestions bot. The most powerful suggestions feature set you'll find on Discord.", | ||
url: 'https://docs.suggestions.gg', | ||
baseUrl: '/', | ||
onBrokenLinks: 'throw', | ||
onBrokenMarkdownLinks: 'warn', | ||
favicon: 'img/favicon.ico', | ||
|
||
// Even if you don't use internalization, you can use this field to set useful | ||
// metadata like html lang. For example, if your site is Chinese, you may want | ||
// to replace "en" with "zh-Hans". | ||
i18n: { | ||
defaultLocale: 'en', | ||
locales: ['en'], | ||
}, | ||
|
||
presets: [ | ||
[ | ||
'classic', | ||
/** @type {import('@docusaurus/preset-classic').Options} */ | ||
({ | ||
docs: { | ||
sidebarPath: require.resolve('./sidebars.js'), | ||
// Please change this to your repo. | ||
// Remove this to remove the "edit this page" links. | ||
editUrl: 'https://github.com/suggestionsbot/docs/tree/main/docs/', | ||
showLastUpdateTime: true, | ||
}, | ||
theme: { | ||
customCss: require.resolve('./src/css/custom.css'), | ||
}, | ||
}), | ||
], | ||
], | ||
|
||
themeConfig: | ||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */ | ||
({ | ||
navbar: { | ||
title: 'Suggestions Documentation', | ||
logo: { | ||
alt: 'Suggestions Bot Logo', | ||
src: 'img/logo.svg', | ||
}, | ||
items: [ | ||
{ | ||
type: 'doc', | ||
docId: 'intro', | ||
position: 'left', | ||
label: 'Get Started', | ||
}, | ||
{ | ||
to: 'coming-soon', | ||
label: 'Coming Soon', | ||
position: 'left', | ||
}, | ||
{ | ||
href: 'https://suggestions.gg/', | ||
label: 'Website', | ||
position: 'right', | ||
}, | ||
{ | ||
href: 'https://discord.gg/suggestions', | ||
label: 'Discord', | ||
position: 'right', | ||
}, | ||
{ | ||
href: 'https://github.com/suggestionsbot', | ||
label: 'Contribute', | ||
position: 'right', | ||
}, | ||
], | ||
}, | ||
footer: { | ||
style: 'dark', | ||
links: [ | ||
{ | ||
title: 'Suggestions Documentation', | ||
items: [ | ||
{ | ||
label: 'Get Started', | ||
to: '/docs/intro', | ||
}, | ||
], | ||
}, | ||
{ | ||
title: 'Community', | ||
items: [ | ||
{ | ||
label: 'Discord', | ||
href: 'https://suggestions.bot/discord', | ||
}, | ||
{ | ||
label: 'Twitter', | ||
href: 'https://suggestions.bot/twitter', | ||
}, | ||
{ | ||
label: 'YouTube', | ||
href: 'https://suggestions.bot/youtube', | ||
}, | ||
], | ||
}, | ||
{ | ||
title: 'More', | ||
items: [ | ||
{ | ||
label: 'GitHub', | ||
href: 'https://github.com/suggestionsbot', | ||
}, | ||
], | ||
}, | ||
], | ||
copyright: `Copyright © ${new Date().getFullYear()} Anthony Collier`, | ||
}, | ||
prism: { | ||
theme: lightCodeTheme, | ||
darkTheme: darkCodeTheme, | ||
}, | ||
colorMode: { | ||
defaultMode: 'dark', | ||
disableSwitch: true, | ||
}, | ||
metadata: [ | ||
{ | ||
name: 'theme-color', | ||
content: '#ffd663', | ||
}, | ||
{ | ||
property: 'og:image', | ||
content: 'img/logo.png', | ||
}, | ||
], | ||
}), | ||
clientModules: [require.resolve('./modules/discordComponents.js')], | ||
plugins: [], | ||
}; | ||
|
||
module.exports = config; |
bb54dfa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
docs – ./
docs-suggestionsbot.vercel.app
docs.suggestionsbot.com
docs-nine-alpha.vercel.app
docs.suggestions.gg
docs-git-main-suggestionsbot.vercel.app