123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- // @ts-check
- // `@type` JSDoc annotations allow editor autocompletion and type checking
- // (when paired with `@ts-check`).
- // There are various equivalent ways to declare your Docusaurus config.
- // See: https://docusaurus.io/docs/api/docusaurus-config
- import {themes as prismThemes} from 'prism-react-renderer';
- /** @type {import('@docusaurus/types').Config} */
- const config = {
- title: 'L4DSR Wiki',
- tagline: 'Tutorials and more!',
- favicon: 'img/favicon.ico',
- // Set the production url of your site here
- url: 'https://l4dsr.github.io',
- // Set the /<baseUrl>/ pathname under which your site is served
- // For GitHub pages deployment, it is often '/<projectName>/'
- baseUrl: '/l4dsr-wiki',
- // GitHub pages deployment config.
- // If you aren't using GitHub pages, you don't need these.
- organizationName: 'l4dsr', // Usually your GitHub org/user name.
- projectName: 'l4dsr-wiki', // Usually your repo name.
- trailingSlash: false,
- onBrokenLinks: 'throw',
- onBrokenMarkdownLinks: 'warn',
- // Even if you don't use internationalization, 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'],
- },
- customFields: {
- discordUrl: 'https://discord.gg/JhndxqQEwg',
- githubUrl: 'https://github.com/l4dsr/l4dsr-wiki',
- },
- presets: [
- [
- 'classic',
- /** @type {import('@docusaurus/preset-classic').Options} */
- ({
- docs: {
- sidebarPath: './sidebars.js',
- // Please change this to your repo.
- // Remove this to remove the "edit this page" links.
- editUrl:
- 'https://github.com/l4dsr/l4dsr-wiki/tree/master/packages/create-docusaurus/templates/shared/',
- admonitions: {
- keywords: ['note', 'tip', 'info', 'caution', 'danger', 'diffe', 'diffm', 'diffh'],
- },
- showLastUpdateAuthor: true,
- showLastUpdateTime: true,
- },
- blog: false,
- theme: {
- customCss: './src/css/custom.css',
- },
- }),
- ],
- ],
- themeConfig:
- /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
- ({
- // Replace with your project's social card
- image: 'img/social-card.jpg',
- navbar: {
- title: 'L4DSR Wiki',
- logo: {
- alt: 'My Site Logo',
- src: 'img/L4D2-icon.jpg',
- },
- items: [
- {
- type: 'docSidebar',
- sidebarId: 'tutorialSidebar',
- position: 'left',
- label: 'Tutorials',
- },
- {
- type: 'docSidebar',
- sidebarId: 'rulesSidebar',
- position: 'left',
- label: 'Rules'
- },
- {
- type: 'docSidebar',
- sidebarId: 'knowledgebaseSidebar',
- position: 'left',
- label: 'Knowledge Base'
- },
- {
- href: 'https://speedrun.com/l4d2',
- label: 'L4D2 SRC',
- position: 'right',
- },
- {
- href: 'https://twitch.tv/L4DRuns',
- label: 'Twitch',
- position: 'right',
- },
- {
- href: 'https://github.com/l4dsr/l4dsr-wiki',
- label: 'GitHub',
- position: 'right',
- },
- ],
- },
- footer: {
- style: 'dark',
- links: [
- {
- title: 'Docs',
- items: [
- {
- label: 'Start here',
- to: '/docs/category/welcome',
- },
- ],
- },
- {
- title: 'Community',
- items: [
- {
- label: 'Left 4 Dead 2 Leaderboards',
- href: 'https://speedrun.com/l4d2',
- },
- {
- label: 'Left 4 Dead Leaderboards',
- href: 'https://speedrun.com/l4d',
- },
- {
- label: 'Discord',
- href: 'https://discord.gg/JhndxqQEwg',
- },
- {
- label: 'Twitch',
- href: 'https://twitch.tv/l4druns',
- },
- ],
- },
- {
- title: 'More',
- items: [
- {
- label: 'GitHub',
- href: 'https://github.com/l4dsr/l4dsr-wiki',
- },
- ],
- },
- ],
- copyright: `Made with 💚 by the L4D Speedrunning Community`,
- },
- prism: {
- theme: prismThemes.github,
- darkTheme: prismThemes.dracula,
- },
- }),
- };
- export default config;
|