codex.storage/docusaurus.config.js

167 lines
3.8 KiB
JavaScript
Raw Normal View History

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