website/docusaurus.config.ts (72 lines of code) (raw):
import type * as Preset from '@docusaurus/preset-classic';
import type { Config } from '@docusaurus/types';
import { themes as prismThemes } from 'prism-react-renderer';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const isDeployPreview = !!process.env.NETLIFY && process.env.CONTEXT === 'deploy-preview';
const config: Config = {
title: 'RDMA over InfiniBand on AKS',
tagline: 'RDMA over InfiniBand on AKS',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://Azure.github.io',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: isDeployPreview ? '/' : '/aks-rdma-infiniband/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'Azure', // Usually your GitHub org/user name.
projectName: 'aks-rdma-infiniband', // Usually your repo name.
onBrokenLinks: 'warn',
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: {
routeBasePath: '/',
sidebarPath: './sidebars.ts',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/Azure/aks-rdma-infiniband/blob/main/website/',
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
// Replace with your project's social card
image: 'img/logo.png',
navbar: {
title: 'RDMA over InfiniBand on AKS',
logo: {
alt: 'Microsoft Azure logo',
src: 'img/favicon.ico',
},
items: [
{
href: 'https://github.com/Azure/aks-rdma-infiniband',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub Repository',
},
],
},
footer: {
style: 'dark',
links: [],
copyright: `Copyright © ${new Date().getFullYear()} Microsoft Azure. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ["bash", "yaml"],
},
colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: true,
},
} satisfies Preset.ThemeConfig,
themes: [
'@saucelabs/theme-github-codeblock',
]
};
export default config;