-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
111 lines (109 loc) · 3.58 KB
/
docusaurus.config.js
File metadata and controls
111 lines (109 loc) · 3.58 KB
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
/** @type {import('@docusaurus/types').Config} */
const config = {
title: '8th Wall',
markdown: {
format: 'detect',
mermaid: true,
},
tagline: 'Open Source AR & 3D',
favicon: 'favicon.svg',
url: 'https://8thwall.org',
baseUrl: '/',
organizationName: '8thwall',
projectName: '8thwall.github.io',
trailingSlash: false,
onBrokenAnchors: 'warn',
presets: [
[
'classic',
{
docs: {
routeBasePath: '/docs',
path: 'docs',
sidebarPath: require.resolve('./sidebars.js'),
},
blog: {
path: 'blog',
routeBasePath: 'blog',
showReadingTime: false,
blogSidebarTitle: 'Recent posts',
blogSidebarCount: 10,
feedOptions: {
type: 'all',
title: '8th Wall Blog',
description: 'News and updates from 8th Wall',
copyright: `Copyright © ${new Date().getFullYear()} 8th Wall`,
},
},
theme: {
customCss: './src/css/custom.css',
},
},
],
],
themes: ['@docusaurus/theme-mermaid'],
themeConfig: {
colorMode: {
defaultMode: 'dark',
disableSwitch: true,
respectPrefersColorScheme: false,
},
announcementBar: {
id: 'migration',
content: '<span class="announcement-text">The hosted 8th Wall platform was retired Feb 28, 2026. Existing published experiences continue to run until Feb 28, 2027.</span><span class="announcement-btns"><a target="_blank" rel="noopener" href="https://8th.io/migration" class="banner-btn">View Migration Guide</a><a target="_blank" rel="noopener" href="/blog" class="banner-btn">View Announcements</a></span>',
backgroundColor: '#111',
textColor: '#a1a1a1',
isCloseable: false,
},
navbar: {
title: '',
logo: {
alt: '8th Wall',
src: 'logo.png',
srcDark: 'logo.png',
height: '24px',
style: { height: '24px', width: 'auto' },
},
items: [
{ href: 'https://github.com/8thwall/8thwall', label: 'GitHub', position: 'left' },
{ href: 'https://8th.io/examples', label: 'Samples', position: 'left' },
{ href: 'https://www.youtube.com/@8thwall', label: 'Tutorials', position: 'left' },
{ to: '/blog', label: 'Blog', position: 'left' },
{ href: 'https://8th.io/discord', label: 'Discord', position: 'left' },
{ to: '/docs', label: 'Docs', position: 'left' },
{ type: 'search', position: 'right' },
{
type: 'html',
position: 'right',
value: '<a href="/downloads" class="btn btn-primary navbar-download-btn">Download</a>',
},
],
},
/* Algolia keys are managed here https://dashboard.algolia.com/account/api-keys/all?applicationId=4OEBKHRDF1 */
algolia: {
appId: '4OEBKHRDF1',
apiKey: '1b345ffba80eb2203110909c7cd6775b',
indexName: 'Documentation',
},
footer: {},
metadata: [
{ name: 'algolia-site-verification', content: '9440827CF3D84DC9' },
{ property: 'og:image', content: 'https://8thwall.org/social-cover.png' },
{ property: 'og:type', content: 'website' },
{ name: 'twitter:image', content: 'https://8thwall.org/social-cover.png' },
],
},
clientModules: [require.resolve('./src/clientModules/navbarScroll.js')],
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'legacy-policies',
path: 'legacy-policies',
routeBasePath: 'legacy-policies',
sidebarPath: require.resolve('./sidebars-legacy.js'),
},
],
],
};
module.exports = config;