codex.storage/docusaurus.config.js

163 lines
3.7 KiB
JavaScript
Raw Normal View History

2022-10-31 11:29:47 +00:00
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
require('dotenv').config()
/** @type {import('@docusaurus/types').Config} */
const config = {
2023-06-01 09:37:39 +00:00
title: 'Codex',
2023-06-02 15:00:21 +00:00
url: 'https://codex.storage/',
2022-10-31 11:29:47 +00:00
baseUrl: '/',
2023-06-02 18:51:34 +00:00
customFields: {},
2023-06-01 09:37:39 +00:00
markdown: {
mermaid: true,
},
2022-10-31 11:29:47 +00:00
// 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')],
2023-06-02 19:09:19 +00:00
docs: {
default: {
sidebar: {
hide: false,
},
2023-06-02 18:51:34 +00:00
},
},
},
2022-10-31 11:29:47 +00:00
},
2023-06-01 09:37:39 +00:00
docs: {
2023-09-20 14:26:17 +00:00
breadcrumbs: false, // TODO: not working
2023-06-02 15:00:21 +00:00
routeBasePath: '/',
path: 'root-pages',
2023-06-01 09:37:39 +00:00
},
2023-11-16 17:55:18 +00:00
generated: {
jobList: {
jobBoard: 'codex',
},
},
2023-07-11 13:30:58 +00:00
og: {},
2022-10-31 11:29:47 +00:00
}),
],
],
2023-06-02 15:00:21 +00:00
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'about',
routeBasePath: '/about',
path: 'about',
},
],
],
2022-10-31 11:29:47 +00:00
themeConfig:
/** @type {import('@acid-info/logos-docusaurus-preset').ThemeConfig} */
2023-06-01 09:37:39 +00:00
({
2023-11-28 13:29:44 +00:00
colorMode: {
disableSwitch: false,
respectPrefersColorScheme: true,
},
2023-06-01 09:37:39 +00:00
navbar: {
2023-06-02 18:51:34 +00:00
hideOnScroll: true,
2023-06-01 09:37:39 +00:00
items: [
{
type: 'search',
},
{
2023-09-20 14:26:17 +00:00
label: 'About Codex',
2023-06-01 09:37:39 +00:00
to: '/about',
},
2023-09-20 14:26:17 +00:00
{
label: 'Community',
to: '/community',
},
{
title: 'Codex GitHub repository',
href: 'https://github.com/codex-storage',
position: 'right',
className: 'header-github-link',
},
2023-06-06 09:55:42 +00:00
{
label: 'Docs',
2023-09-20 14:26:17 +00:00
href: 'https://docs.codex.storage',
2023-06-06 09:55:42 +00:00
},
{
label: 'Blog',
href: 'https://blog.codex.storage',
},
2023-12-14 16:14:15 +00:00
{
label: 'News',
to: 'https://codex.storage/news',
},
2023-11-16 17:55:18 +00:00
{
label: 'Join Us',
href: '/join-us',
},
2023-06-01 09:37:39 +00:00
],
},
footer: {
copyright: 'Codex @2023<br/>All Rights Reserved.',
links: [
{
items: [
{
2023-06-02 15:00:21 +00:00
href: 'https://twitter.com/Codex_storage',
2023-06-01 09:37:39 +00:00
label: 'Twitter',
},
{
href: 'https://discord.gg/codex-storage',
2023-06-01 09:37:39 +00:00
label: 'Discord',
},
{
href: 'https://docs.codex.storage',
2023-06-01 09:37:39 +00:00
label: 'Docs',
},
{
href: 'https://blog.codex.storage',
label: 'Blog',
},
2023-06-01 09:37:39 +00:00
{
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',
},
2023-06-01 09:37:39 +00:00
{
2023-06-02 15:00:21 +00:00
href: '/terms',
2023-06-02 10:05:22 +00:00
label: 'Terms & conditions',
2023-06-01 09:37:39 +00:00
},
],
},
],
},
}),
2022-10-31 11:29:47 +00:00
}
module.exports = config