-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
executable file
·154 lines (148 loc) · 5.11 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
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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "开源Web3D低代码平台",
tagline: "一条龙可视化搭建Web3D应用、编辑器、引擎,共建开放互助的web3d生态",
// url: 'https://meta3d-4g18u7z10c8427f9-1302358347.tcloudbaseapp.com/website',
url: 'https://meta3d-website.4everland.app/',
baseUrl: '/',
// baseUrl: '/website/build/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'Meta3D', // Usually your GitHub org/user name.
projectName: 'Meta3D-Website', // Usually your repo name.
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Meta3D',
logo: {
alt: 'My Site Logo',
src: 'img/favicon.ico',
},
items: [
{
href: 'https://meta3d-local-9gacdhjl439cff76-1302358347.tcloudbaseapp.com/',
// href: 'https://meta3d-production-6eaj4630a6b9e7-1302358347.tcloudbaseapp.com/platform/',
label: '进入平台',
},
{
type: 'doc',
docId: '简介',
position: 'left',
label: '文档',
},
// {to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/Meta3D-Technology/Meta3D/discussions',
label: '论坛',
},
{
href: 'https://www.zhihu.com/column/c_1521448592849649664',
label: '博客',
},
{
href: 'https://github.com/Meta3D-Technology/Meta3D',
label: 'GitHub',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub repository',
// position: 'right',
},
// {
// type: 'html',
// value: `<iframe
// src="https://ghbtns.com/github-btn.html?user=Meta3D-Technology&repo=Meta3D&type=star&count=true&size=large"
// // frameborder="0"
// style={ReactDOM.Style.make(~borderWidth="0px", ())}
// scrolling="0"
// width="170"
// height="30"
// title="GitHub"
// />`,
// position: 'right',
// },
],
},
footer: {
style: 'dark',
links: [
// {
// title: '文档',
// items: [
// {
// label: '首页',
// to: '/docs/intro',
// },
// ],
// },
{
title: '社区',
items: [
{
label: '论坛',
href: 'https://github.com/Meta3D-Technology/Meta3D/discussions',
},
{
label: '与我们交流加QQ群',
href: 'http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=r1Z4Z5uToIO1dISsXvdJvQOtFr3IoPJx&authKey=Ft1KpywYZrlO4yUGQj5jCliI4DaVf4hkM5jiiZtm195Ei4bSNiwo1SHEogLcrc%2Fp&noverify=0&group_code=568338939'
},
{
label: '一起开发Meta3D加QQ群',
href: 'https://qm.qq.com/cgi-bin/qm/qr?k=Kiaj6UDk6FuKDPHKpHYruzB8eAt0xRRy&jump_from=webapi&authKey=D6yCua8jRdfWgAQqSSRMRQvaYxGVL5XN671Cz/g2CSYRJ9WPPgNPZIzcCZKwQZBC',
},
// {
// label: '商务合作加QQ群',
// href: 'https://qm.qq.com/cgi-bin/qm/qr?k=mpAhyrgUZVkwxpip-cYlHUO9i_kZR-IF&jump_from=webapi&authKey=bEP7ZI5TBy8RLW9qc3jxqnMCTdMCQMtjis3l0Uf/6ntG2cF94neaIdOztVWNbuRi',
// },
],
},
{
title: '更多',
items: [
{
label: '开发者的知乎',
href: 'https://www.zhihu.com/people/dreamforest-yyc',
},
{
label: '开发者的博客',
href: 'https://www.cnblogs.com/chaogex/',
},
],
},
],
// copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;