codex.storage/docusaurus.config.js

163 lines
3.7 KiB
JavaScript

// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
require('dotenv').config()
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Codex',
url: 'https://codex.storage/',
baseUrl: '/',
customFields: {},
markdown: {
mermaid: true,
},
// 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: [
[
'@acid-info/logos-docusaurus-preset',
/** @type {import('@acid-info/logos-docusaurus-preset').PluginOptions} */
({
businessUnit: 'Codex',
theme: {
name: 'default',
options: {
customCss: [require.resolve('./src/css/custom.scss')],
docs: {
default: {
sidebar: {
hide: false,
},
},
},
},
},
docs: {
breadcrumbs: false, // TODO: not working
routeBasePath: '/',
path: 'root-pages',
},
generated: {
jobList: {
jobBoard: 'codex',
},
},
og: {},
}),
],
],
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'about',
routeBasePath: '/about',
path: 'about',
},
],
],
themeConfig:
/** @type {import('@acid-info/logos-docusaurus-preset').ThemeConfig} */
({
colorMode: {
disableSwitch: false,
respectPrefersColorScheme: true,
},
navbar: {
hideOnScroll: true,
items: [
{
type: 'search',
},
{
label: 'About Codex',
to: '/about',
},
{
label: 'Community',
to: '/community',
},
{
title: 'Codex GitHub repository',
href: 'https://github.com/codex-storage',
position: 'right',
className: 'header-github-link',
},
{
label: 'Docs',
href: 'https://docs.codex.storage',
},
{
label: 'Blog',
href: 'https://blog.codex.storage',
},
{
label: 'News',
to: 'https://codex.storage/news',
},
{
label: 'Join Us',
href: '/join-us',
},
],
},
footer: {
copyright: 'Codex @2023<br/>All Rights Reserved.',
links: [
{
items: [
{
href: 'https://twitter.com/Codex_storage',
label: 'Twitter',
},
{
href: 'https://discord.gg/codex-storage',
label: 'Discord',
},
{
href: 'https://docs.codex.storage',
label: 'Docs',
},
{
href: 'https://blog.codex.storage',
label: 'Blog',
},
{
href: 'https://github.com/codex-storage',
label: 'Github',
},
],
},
{
items: [
{
href: 'https://jobs.status.im/',
label: 'Work with us',
},
{
href: 'https://guide.codex.storage/',
label: 'Brand Guidelines',
},
{
href: '/terms',
label: 'Terms & conditions',
},
],
},
],
},
}),
}
module.exports = config