-
Notifications
You must be signed in to change notification settings - Fork 1
/
docusaurus.config.js
120 lines (117 loc) · 2.93 KB
/
docusaurus.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
const admonitions = require('remark-admonitions');
const path = require('path');
const fs = require('fs');
const modules = require('./getModules');
const multipleDocs = [
{
id: 'docs',
path: 'docs',
sidebarPath: require.resolve('./sidebars.js'),
// editUrl: `https://github.com/tabetalt/docs/edit/master`,
routeBasePath: 'intro',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
remarkPlugins: [admonitions],
},
].concat(
modules.map((mod) => ({
id: mod.slug,
name: mod.slug,
path: `projects/${mod.slug}`,
sidebarPath: require.resolve(`./projects/${mod.slug}/sidebars.js`),
editUrl: mod.publicRepo && `https://github.com/${mod.repo}/edit/master`,
routeBasePath: mod.slug,
homePageId: mod.homePageId,
showLastUpdateAuthor: true,
showLastUpdateTime: true,
admonitions: true,
remarkPlugins: [admonitions],
}))
);
const links = [
{
to: 'intro/index',
activeBasePath: `intro/index`,
label: `Docs`,
position: 'left',
},
{
to: 'roadmap',
activeBasePath: `roadmap`,
label: `Roadmap`,
position: 'left',
},
// {
// href: 'https://tabetalt.no/blog', label: 'Blog',
// position: 'left',
// },
{
href: `https://github.com/tabetalt`,
label: 'GitHub',
position: 'left',
},
];
module.exports = {
title: 'Tabetalt',
tagline:
'Tabetalt builds modern developer-friendly e-commerce solutions for small to enterprise companies.',
url: `https://docs.tabetalt.no/`,
baseUrl: `/`,
favicon: 'img/favicon.png',
organizationName: 'tabetalt',
projectName: 'docs',
themeConfig: {
navbar: {
logo: {
alt: 'Tabetalt',
src: `img/logo-tabetalt.svg`,
srcDark: `img/logo-tabetalt-dark.svg`,
href: 'https://tabetalt.no/',
},
links,
},
footer: {
style: 'dark',
copyright: `Copyright © ${new Date().getFullYear()} Tabetalt.no AS`,
links: [
{
title: 'Company',
items: [
{
label: 'Privacy',
href: 'https://tabetalt.no/personvern/',
},
],
},
],
},
},
plugins: [
['docusaurus-multiple-docs', multipleDocs],
// [
// '@docusaurus/plugin-content-docs',
// {
// path: 'docs',
// sidebarPath: require.resolve('./sidebars.js'),
// // editUrl: `https://github.com/tabetalt/docs/edit/master`,
// routeBasePath: '',
// showLastUpdateAuthor: true,
// showLastUpdateTime: true,
// remarkPlugins: [admonitions],
// },
// ],
['@docusaurus/plugin-content-pages'],
// ['@docusaurus/plugin-google-analytics'],
['@docusaurus/plugin-sitemap'],
],
themes: [
[
'@docusaurus/theme-classic',
{
customCss: require.resolve('./src/css/theme.css'),
},
],
// ['@docusaurus/theme-search-algolia'],
],
// presets: [['@docusaurus/preset-classic']],
};