forked from airsdk/airsdk.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
174 lines (172 loc) · 5.58 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'AIR SDK',
tagline:
'Develop beautiful cross-platform applications from a single code base using the AIR SDK and ActionScript',
url: 'https://airsdk.dev',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'favicon.ico',
organizationName: 'airsdk', // Usually your GitHub org/user name.
projectName: 'airsdk.dev', // Usually your repo name.
trailingSlash: false,
stylesheets: [
{
href: 'https://fonts.googleapis.com/css2?family=Roboto+Mono&family=Noto+Sans+JP&family=Open+Sans&family=Roboto&family=Lato&display=swap',
type: 'text/css',
},
],
themeConfig: {
announcementBar: {
id: 'support_us', // Any value that will identify this message.
content:
'This site is under construction. We need your <a target="_blank" rel="noopener noreferrer" href="https://github.com/airsdk/airsdk.dev/blob/main/CONTRIBUTING.md">contributions</a> to fill out the documentation.',
backgroundColor: '#8BE8CB', // Defaults to `#fff`.
textColor: '#091E42', // Defaults to `#000`.
isCloseable: false, // Defaults to `true`.
},
prism: {
theme: require('prism-react-renderer/themes/vsDark'),
darkTheme: require('prism-react-renderer/themes/vsDark'),
additionalLanguages: ['actionscript', 'csharp'],
// defaultLanguage: 'actionscript',
},
navbar: {
title: 'AIR SDK',
logo: {
alt: 'AIR SDK',
src: 'images/logo.svg',
},
items: [
{ to: '/docs', label: 'Docs', position: 'left' },
// { type: 'dropdown', label: 'Reference', position: 'left', items: [
// { to: '/reference/latest', label: 'Latest' },
// { to: '/reference/33.1.1', label: '33.1.1' },
// ]},
{ to: '/reference', label: 'Reference', position: 'left' },
{ to: '/showcase', label: 'Showcase', position: 'left' },
{ to: '/community', label: 'Community', position: 'left' },
{ to: '/news', label: 'News', position: 'left' },
{
href: 'https://github.com/airsdk/airsdk.dev',
'aria-label': 'GitHub repository',
position: 'right',
className: 'header-github-link',
},
],
},
colorMode: {
defaultMode: 'light',
disableSwitch: true,
},
footer: {
logo: {
alt: 'AIR',
src: 'images/logo.svg',
href: '/',
},
links: [
{
title: 'Docs',
items: [
{
label: 'Features',
to: '/docs/features',
className: 'footer__link-item',
},
{
label: 'Getting Started',
to: '/docs/basics/getting-started',
className: 'footer__link-item',
},
{
label: 'Tutorials',
to: '/docs/tutorials',
},
{
label: 'Reference',
to: '/reference',
},
],
},
{
title: 'Community',
items: [
{ to: '/community', label: 'Community' },
{ to: '/showcase', label: 'Showcase' },
{
label: 'Discussions',
href: 'https://github.com/airsdk/Adobe-Runtime-Support/discussions',
},
{
label: 'Starling Forum',
href: 'https://forum.starling-framework.org/',
},
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/actionscript-3',
},
],
},
{
title: 'More',
items: [
{
label: 'News',
to: '/news',
},
{
label: 'GitHub',
href: 'https://github.com/airsdk/airsdk.dev',
},
],
},
],
copyright: `Except as otherwise noted, this work is licensed under a <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution 3.0</a> License, and code samples are licensed under the MIT License. <br/>Adobe, the Adobe logo, Adobe AIR, ActionScript, AIR, Flash, Flash Builder, Flash Lite, Flex, MXML, and Pixel Bender are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries.<br/>Much of this content is based on the original <a href="https://help.adobe.com/en_US/air/build/index.html">Adobe developer documentation</a>`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: 'reference',
routeBasePath: 'reference',
// sidebarPath: require.resolve('./reference-sidebars.js'),
},
blog: {
blogDescription: 'AIR SDK News',
showReadingTime: true,
blogSidebarTitle: "Latest News",
blogSidebarCount: 10,
routeBasePath: 'news',
path: './news',
feedOptions: {
type: 'all',
},
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
gtag: {
trackingID: 'G-PBLKC63BP2',
anonymizeIP: false,
},
},
],
],
plugins: [
'@docusaurus/plugin-ideal-image',
[
'@docusaurus/plugin-content-docs',
{
id: 'docs',
path: 'docs',
routeBasePath: 'docs',
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/airsdk/airsdk.dev/edit/main/',
},
],
],
};