Files

175 lines
4.2 KiB
JavaScript
Raw Permalink Normal View History

2023-06-08 00:42:28 +03:30
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
require('dotenv').config()
const remarkMath = require('remark-math').default
const rehypeKatex = require('rehype-katex').default
2023-06-08 00:42:28 +03:30
/** @type {import('@docusaurus/types').Config} */
const config = {
2026-02-13 14:02:09 +01:00
title: 'Logos Research',
url: 'https://research.logos.co/',
2023-06-08 00:42:28 +03:30
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} */
({
businessUnit: 'VacResearch',
theme: {
name: 'default',
options: {
customCss: [require.resolve('./src/css/custom.scss')],
},
},
docs: {
2023-06-19 16:05:59 +03:30
id: 'Docs',
2023-09-21 02:40:59 +09:00
breadcrumbs: false,
routeBasePath: '/',
2023-06-08 00:42:28 +03:30
sidebarPath: 'docs/sidebars.js',
2025-04-24 02:36:32 +09:00
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
2023-06-08 00:42:28 +03:30
},
og: {},
2025-03-14 03:54:13 +09:00
localSearch: {
blogDir: 'rlog',
blogRouteBasePath: '/rlog',
},
2023-11-15 17:42:16 +00:00
generated: {
jobList: {
jobBoard: 'vac',
},
},
2023-06-08 00:42:28 +03:30
}),
],
],
2023-06-13 18:29:56 +03:30
plugins: [
[
'@docusaurus/plugin-content-blog',
/** @type {import('@docusaurus/plugin-content-blog').PluginOptions} */
({
id: 'blog',
routeBasePath: '/rlog',
path: 'rlog',
2023-09-21 02:40:59 +09:00
blogTitle: 'Research Blog',
blogSidebarCount: 0,
2023-06-13 18:29:56 +03:30
authorsMapPath: 'authors.yml',
2025-04-24 02:36:32 +09:00
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
2023-06-13 18:29:56 +03:30
}),
],
[
'@docusaurus/plugin-client-redirects',
{
2023-07-18 09:43:47 +03:30
redirects: [{ from: '/research', to: '/rlog' }],
createRedirects(existingPath) {
return existingPath.startsWith('/rlog') && existingPath !== '/rlog'
? [existingPath.replace('/rlog', '')]
: undefined
},
},
],
2023-06-13 18:29:56 +03:30
],
2023-06-08 00:42:28 +03:30
themeConfig:
/** @type {import('@acid-info/logos-docusaurus-preset').ThemeConfig} */
({
2023-11-28 22:41:23 +09:00
colorMode: {
disableSwitch: false,
respectPrefersColorScheme: true,
},
2023-06-13 18:29:56 +03:30
navbar: {
items: [
{
type: 'search',
},
{
label: 'About Logos Research',
to: '/',
2023-09-21 02:40:59 +09:00
activeBaseRegex: '^/$',
2023-06-13 18:29:56 +03:30
},
{
2023-09-21 02:40:59 +09:00
label: 'Community',
to: '/community',
activeBasePath: 'community',
},
{
label: 'Research Blog',
to: '/rlog',
2023-09-21 02:40:59 +09:00
activeBasePath: 'rlog',
2023-06-13 18:29:56 +03:30
},
2023-11-15 17:42:16 +00:00
{
label: 'Join Us',
to: '/join-us',
activeBasePath: 'join-us',
},
2023-06-13 18:29:56 +03:30
],
},
2023-06-08 00:42:28 +03:30
footer: {
links: [
{
items: [
{
label: 'Twitter',
href: 'https://x.com/LogosRnD',
2023-06-08 00:42:28 +03:30
},
{
label: 'Discord',
href: 'https://discord.gg/PQFdubGt6d',
},
{
label: 'Github',
href: 'https://github.com/vacp2p',
},
],
},
{
items: [
{
label: 'Work With Us',
href: 'https://jobs.status.im/',
},
{
label: 'Terms & Conditions',
2023-06-16 00:50:05 +03:30
to: '/terms',
2023-06-08 00:42:28 +03:30
},
2024-02-02 22:52:22 +09:00
{
href: '/privacy-policy',
label: 'Privacy Policy',
},
2024-05-16 23:20:42 +09:00
{
href: '/security',
label: 'Security',
},
2023-06-08 00:42:28 +03:30
],
},
],
},
}),
stylesheets: [
{
2025-04-24 02:36:32 +09:00
href: 'https://cdn.jsdelivr.net/npm/katex@0.13.24/dist/katex.min.css',
2023-06-08 00:42:28 +03:30
type: 'text/css',
integrity:
2025-04-24 02:36:32 +09:00
'sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM',
2023-06-08 00:42:28 +03:30
crossorigin: 'anonymous',
},
],
}
module.exports = config