-
Notifications
You must be signed in to change notification settings - Fork 3
/
docusaurus.config.ts
139 lines (136 loc) · 4.06 KB
/
docusaurus.config.ts
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
import { themes as prismThemes } from 'prism-react-renderer';
import type { Config } from '@docusaurus/types';
import { config as dotenvConfig } from 'dotenv';
import type * as Preset from '@docusaurus/preset-classic';
dotenvConfig();
const config: Config = {
title: 'Misti',
tagline: 'TON Static Analyzer',
favicon: 'img/misti.svg',
url: 'https://nowarp.io/',
baseUrl: '/',
organizationName: 'nowarp',
projectName: 'misti',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'throw',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
routeBasePath: 'tools/misti/docs',
editUrl: 'https://github.com/nowarp/nowarp.github.io/tree/master/',
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
plugins: [
[
'@docusaurus/plugin-google-gtag',
({
trackingID: 'G-8VLF6VGHH5',
anonymizeIP: true,
}),
],
],
themeConfig: {
algolia: {
appId: process.env.ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_API_KEY,
indexName: process.env.ALGOLIA_INDEX_NAME,
contextualSearch: true,
},
navbar: {
title: 'Misti',
logo: {
alt: 'Misti Logo',
src: 'img/misti.svg',
},
items: [
{
type: 'search',
position: 'left',
},
{
type: 'docsVersionDropdown',
position: 'right',
},
{
label: 'API Reference',
position: 'right',
items: [
{
label: 'Misti',
to: '/tools/misti/api',
target: '_blank',
rel: 'noopener noreferrer',
},
{
label: 'Souffle.js',
to: '/lib/souffle-js/api',
target: '_blank',
rel: 'noopener noreferrer',
},
],
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Community',
items: [
{
label: 'Telegram',
href: 'https://t.me/misti_dev',
},
{
label: 'GitHub',
href: 'https://github.com/nowarp/misti',
},
],
},
{
title: 'Developers',
items: [
{
label: 'API Reference',
href: 'https://nowarp.io/tools/misti/api/',
},
{
label: 'Changelog',
href: 'https://github.com/nowarp/misti/blob/master/CHANGELOG.md',
},
{
label: 'Roadmap',
href: 'https://github.com/nowarp/misti/milestones',
},
],
},
],
copyright: `
<div style="display: flex; justify-content: center; align-items: center; text-align: center; width: 100%;">
Supported by <a href="https://ton.foundation">TF</a><svg width="1.5em" height="1.5em" viewBox="0 0 32 32" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="vertical-align: middle; margin-left: 8px;">
<path d="M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z" fill="#0098EA"></path>
<path d="M21.4629 8.92969H10.5363C8.52724 8.92969 7.25388 11.0969 8.26459 12.8488L15.0081 24.5372C15.4482 25.3004 16.551 25.3004 16.9911 24.5372L23.736 12.8488C24.7453 11.0996 23.472 8.92969 21.4643 8.92969H21.4629ZM15.0026 21.0321L13.534 18.1897L9.99036 11.8518C9.75659 11.4461 10.0454 10.9264 10.5349 10.9264H15.0013V21.0334L15.0026 21.0321ZM22.0061 11.8504L18.4638 18.1911L16.9952 21.0321V10.925H21.4616C21.9511 10.925 22.2399 11.4448 22.0061 11.8504Z" fill="white"></path>
</svg>
</a>
</div>
`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.oneDark,
},
} satisfies Preset.ThemeConfig,
};
export default config;