Select Git revision
docusaurus.config.ts
Forked from
Ilya Zhukov / PerfAnalysisHandsOn
17 commits behind the upstream repository.
Ilya Zhukov authored
docusaurus.config.ts 4.21 KiB
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
title: 'Performance Analysis',
tagline: 'Hands-On',
favicon: 'img/logo.ico',
// Set the production url of your site here
url: 'https://your-docusaurus-site.example.com',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/perf_analysis',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
//organizationName: 'facebook', // Usually your GitHub org/user name.
//projectName: 'docusaurus', // Usually your repo name.
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'],
},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
//editUrl:
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
/* blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},*/
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themes: [
// ... Your other themes.
[
require.resolve("@easyops-cn/docusaurus-search-local"),
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
({
// ... Your options.
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
// For Docs using Chinese, The `language` is recommended to set to:
// ```
// language: ["en", "zh"],
// ```
indexDocs: true,
}),
],
],
themeConfig: {
colorMode: {
defaultMode: 'light',
disableSwitch: true,
// respectPrefersColorScheme: false,
},
// Replace with your project's social card
//image: 'img/docusaurus.png',
navbar: {
title: 'Home',
/* logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
},*/
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Hands-On',
},
/*
{to: '/blog', label: 'Blog', position: 'left'},
*/
],
},
footer: {
style: 'dark',
links: [
/* {
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
},
],
},*/
{
title: 'Communication',
items: [
{
label: 'Zoom',
href: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
},
{
label: 'Slack',
href: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
},
],
},
{
title: 'Useful Links',
items: [
{
label: 'Hands-On',
to: '/docs/intro',
},
{
label: 'Agenda',
href: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
},
],
},
{
title: 'More',
items: [
{
label: 'Authors',
href: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Forschungszentrum Jülich`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;