website/docusaurus.config.js (83 lines of code) (raw):
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Apache XTable™ (Incubating)',
favicon: 'images/xtable-favicon.png',
url: 'https://xtable.apache.org',
baseUrl: '/',
// GitHub pages deployment config.
organizationName: 'apache',
projectName: 'incubator-xtable',
onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'warn',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
// add new pages here
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'releases',
path: 'releases',
routeBasePath: 'releases',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'community',
path: 'community',
routeBasePath: 'community',
},
]
],
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
},
blog: {
showReadingTime: true,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Apache XTable™ (Incubating)',
logo: {
alt: 'Apache XTable™ (Incubating) Logo',
href: 'pathname:///',
target: '_self',
src: 'images/xtable-icon.png',
},
items: [
{
type: 'docSidebar',
sidebarId: 'docs',
position: 'left',
label: 'Docs',
},
{
href: 'https://github.com/apache/incubator-xtable',
label: 'GitHub',
position: 'right',
},
{to: 'blog', label: 'Blogs', position: 'left'},
{to: 'releases/downloads', label: 'Downloads', position: 'left'},
{to: 'community/sync', label: 'Community', position: 'left'}
],
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;