-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
236 lines (235 loc) · 8.42 KB
/
astro.config.mjs
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
// Astro configuration with Starlight integration
// https://astro.build/config
export default defineConfig({
site: 'https://docs.ir.world', // Set your site URL here
integrations: [
starlight({
title: 'iR Engine Documentation',
description: 'Create realistic immersive experiences directly on the web.',
logo: {
dark: '/src/assets/site-logo-white.png',
light: '/src/assets/site-logo-black.png',
replacesTitle: true,
},
favicon: '/favicon-32x32.png',
customCss: [
// Relative path to the custom CSS file
'./src/styles/custom.css',
],
social: {
github: 'https://github.com/EtherealEngine',
},
sidebar: [
{
label: 'Site navigation',
slug: 'site-navigation',
},
{
label: 'Introduction',
collapsed: false,
items: [
{ label: 'About this site', slug: 'introduction/about-this-site' },
{ label: 'What is iR Engine', slug: 'introduction/ir-engine-overview' },
{ label: 'Glossary', slug: 'introduction/glossary' },
],
},
{
label: 'Get started',
collapsed: false,
items: [
{
label: 'Initial setup',
collapsed: true,
items: [
{ label: 'Sign up and login', slug: 'get-started/initial-setup/sign-up-and-login' },
{ label: 'Start a new project', slug: 'get-started/initial-setup/start-a-new-project' },
],
},
{
label: 'The iR Engine Studio',
collapsed: true,
items: [
{ label: 'Introduction to Studio', slug: 'get-started/ir-engine-studio/introduction-to-studio' },
{
label: 'Studio interface',
collapsed: true,
items: [
{ label: 'Hamburger menu (☰)', slug: 'get-started/ir-engine-studio/studio-interface/hamburger-menu' },
{ label: 'Viewport panel', slug: 'get-started/ir-engine-studio/studio-interface/viewport-panel' },
{ label: 'Hierarchy tab', slug: 'get-started/ir-engine-studio/studio-interface/hierarchy-tab' },
{ label: 'Properties panel', slug: 'get-started/ir-engine-studio/studio-interface/properties-panel' },
{ label: 'Materials inspector', slug: 'get-started/ir-engine-studio/studio-interface/materials-inspector' },
{ label: 'File browser panel', slug: 'get-started/ir-engine-studio/studio-interface/file-browser-panel' },
],
},
{ label: 'Navigation controls', slug: 'get-started/ir-engine-studio/navigation-controls' },
{ label: 'Shortcuts and hotkeys', slug: 'get-started/ir-engine-studio/shortcuts-and-hotkeys' },
],
},
],
},
{
label: 'Scene development',
collapsed: false,
items: [
{
label: 'Build and manage scenes',
collapsed: true,
items: [
{ label: 'Add scenes to your project', slug: 'scene-development/building-and-managing-scenes/add-scenes-to-your-project' },
{ label: 'Scene resource guidelines', slug: 'scene-development/building-and-managing-scenes/scene-resource-guidelines' },
],
},
{
label: 'Work with assets',
collapsed: true,
items: [
{ label: 'Asset types guide', slug: 'scene-development/working-with-assets/asset-types-guide' },
{ label: 'Import files and assets', slug: 'scene-development/working-with-assets/import-files-and-assets' },
{ label: 'Load assets into scenes', slug: 'scene-development/working-with-assets/load-assets-into-scenes' },
{ label: 'Optimize assets for performance', slug: 'scene-development/working-with-assets/optimize-assets-for-performance' },
],
},
],
},
{
label: 'Publishing',
collapsed: false,
items: [
{ label: 'Publish your projects', slug: 'publishing/publish-your-projects' },
{ label: 'Embed worlds into websites', slug: 'publishing/embed-worlds-into-websites' },
],
},
{
label: 'Tutorials and examples',
collapsed: false,
items: [
{
label: 'Build an Ecommerce store with Shopify integration',
collapsed: true,
items: [
{ label: 'Introduction and requirements', slug: 'tutorials-and-examples/build-an-ecommerce-store/introduction-and-prerequisites' },
{ label: 'Configure the Shopify plugin', slug: 'tutorials-and-examples/build-an-ecommerce-store/configure-shopify-plugin' },
{ label: 'Build your store: Templates and ambiance', slug: 'tutorials-and-examples/build-an-ecommerce-store/build-your-store-templates-and-ambiance' },
{ label: 'Load and place Shopify products', slug: 'tutorials-and-examples/build-an-ecommerce-store/load-and-place-shopify-products' },
{ label: 'Add videos to your store', slug: 'tutorials-and-examples/build-an-ecommerce-store/add-videos-to-your-store' },
{ label: 'Set up spatial audio', slug: 'tutorials-and-examples/build-an-ecommerce-store/set-up-spatial-audio' },
{ label: 'Publish your store', slug: 'tutorials-and-examples/build-an-ecommerce-store/publish-your-store' },
],
},
],
},
{
label: 'Release notes',
slug: 'release-notes',
},
],
components: {
// Use the custom PageFrame component for layout
PageFrame: './src/components/CustomPageFrame.astro',
},
head: [
// HTML Meta Tags
{
tag: 'title',
content: 'iR Engine Documentation',
},
{
tag: 'meta',
attrs: {
name: 'description',
content: 'Create realistic immersive experiences directly on the web.',
},
},
// Open Graph Meta Tags for Facebook
{
tag: 'meta',
attrs: {
property: 'og:url',
content: 'https://docs.ir.world/',
},
},
{
tag: 'meta',
attrs: {
property: 'og:type',
content: 'website',
},
},
{
tag: 'meta',
attrs: {
property: 'og:title',
content: 'iR Engine Documentation',
},
},
{
tag: 'meta',
attrs: {
property: 'og:description',
content: 'Create realistic immersive experiences directly on the web.',
},
},
{
tag: 'meta',
attrs: {
property: 'og:image',
content: 'https://docs.ir.world/assets/link-preview-background.png',
},
},
{
tag: 'meta',
attrs: {
property: 'og:image:alt',
content: 'iR Engine - Create realistic immersive experiences directly on the web',
},
},
// Twitter Meta Tags
{
tag: 'meta',
attrs: {
name: 'twitter:card',
content: 'summary_large_image',
},
},
{
tag: 'meta',
attrs: {
property: 'twitter:domain',
content: 'docs.ir.world',
},
},
{
tag: 'meta',
attrs: {
property: 'twitter:url',
content: 'https://docs.ir.world/',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:title',
content: 'iR Engine Documentation',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:description',
content: 'Create realistic immersive experiences directly on the web.',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:image',
content: 'https://docs.ir.world/assets/link-preview-background.png',
},
},
],
}),
],
});