2023-11-24 14:50:07 +00:00
|
|
|
// @ts-check
|
|
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
|
|
|
require('dotenv').config()
|
|
|
|
|
|
|
|
const downloadRemoteContent =
|
|
|
|
process.env.SKIP_DOWNLOAD !== '1' && process.env.NODE_ENV !== 'production'
|
|
|
|
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
|
|
const config = {
|
2023-12-05 16:03:56 +00:00
|
|
|
title: 'Nomos',
|
|
|
|
url: 'https://guide.nomos.tech/',
|
2023-11-24 14:50:07 +00:00
|
|
|
baseUrl: '/',
|
|
|
|
|
|
|
|
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} */
|
|
|
|
({
|
2023-12-05 16:03:56 +00:00
|
|
|
businessUnit: 'Nomos',
|
2023-11-24 14:50:07 +00:00
|
|
|
customSiteConfig: true,
|
|
|
|
theme: {
|
|
|
|
name: 'default',
|
|
|
|
options: {
|
|
|
|
customCss: [require.resolve('./src/css/custom.scss')],
|
|
|
|
docs: {
|
|
|
|
default: {
|
|
|
|
sidebar: {
|
|
|
|
hide: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
docs: {
|
|
|
|
routeBasePath: '/',
|
|
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
|
|
},
|
|
|
|
og: {},
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
[
|
|
|
|
'@docusaurus/plugin-ideal-image',
|
|
|
|
{
|
|
|
|
quality: 100,
|
2023-12-05 16:03:56 +00:00
|
|
|
sizes: [400],
|
2023-11-24 14:50:07 +00:00
|
|
|
disableInDev: true,
|
|
|
|
},
|
|
|
|
],
|
2023-12-05 16:03:56 +00:00
|
|
|
downloadRemoteContent && [
|
2023-11-24 14:50:07 +00:00
|
|
|
'@acid-info/docusaurus-remote-content',
|
|
|
|
/** @type {import('@acid-info/docusaurus-remote-content').PluginOptions} */
|
|
|
|
({
|
|
|
|
remote: {
|
|
|
|
type: 'zip',
|
2023-12-05 16:03:56 +00:00
|
|
|
url: 'https://github.com/acid-info/guide.logos.co/archive/refs/heads/develop.zip',
|
2023-11-24 14:50:07 +00:00
|
|
|
dir: 'guide.logos.co-develop',
|
|
|
|
},
|
|
|
|
outDir: 'docs',
|
|
|
|
sourceDir: 'docs',
|
|
|
|
keepLocal: ['./visual-language/logo.mdx'],
|
2023-12-05 16:03:56 +00:00
|
|
|
keepStatic: ['nomos/**/*'],
|
2023-11-24 14:50:07 +00:00
|
|
|
}),
|
2023-12-05 16:03:56 +00:00
|
|
|
],
|
2023-11-24 14:50:07 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
themes: [
|
|
|
|
[
|
|
|
|
'@acid-info/logos-docusaurus-brand-guidelines-theme',
|
|
|
|
/** @type {import('@acid-info/logos-docusaurus-brand-guidelines-theme').ThemeOptions} */
|
|
|
|
({
|
|
|
|
customCss: [],
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
themeConfig:
|
|
|
|
/** @type {import('@acid-info/logos-docusaurus-preset').ThemeConfig} */
|
|
|
|
({
|
|
|
|
navbar: {
|
|
|
|
hideOnScroll: true,
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
type: 'search',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
2023-12-05 16:03:56 +00:00
|
|
|
copyright: 'Nomos @2023<br/>All Rights Reserved.',
|
2023-11-24 14:50:07 +00:00
|
|
|
links: [
|
|
|
|
{
|
|
|
|
items: [
|
|
|
|
{
|
2023-12-05 16:03:56 +00:00
|
|
|
href: 'https://twitter.com/Nomos_tech',
|
2023-11-24 14:50:07 +00:00
|
|
|
label: 'Twitter',
|
|
|
|
},
|
|
|
|
{
|
2023-12-05 16:03:56 +00:00
|
|
|
href: 'https://discord.gg/NYDm83h46b',
|
2023-11-24 14:50:07 +00:00
|
|
|
label: 'Discord',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
href: 'https://jobs.status.im/',
|
|
|
|
label: 'Work with us',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: '/terms',
|
|
|
|
label: 'Terms & conditions',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = config
|