forked from galio-org/galio-org.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
234 lines (220 loc) · 10.3 KB
/
docusaurus.config.ts
File metadata and controls
234 lines (220 loc) · 10.3 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
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
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import tailwindPlugin from "./src/plugins/tailwind-config.cjs"; // add this
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
title: 'React Native | Galio Framework',
tagline: 'Galio is cool',
favicon: 'img/galio.png',
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
future: {
v4: true, // Improve compatibility with the upcoming Docusaurus v4
},
// Set the production url of your site here
url: 'https://galio.io',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'galio-org',
projectName: 'galio-org.github.io',
deploymentBranch: 'gh-pages',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
trailingSlash: false,
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en','es'],
localeConfigs: {
en: {
htmlLang: 'en',
},
es: {
htmlLang: 'es',
},
},
},
plugins: [
tailwindPlugin
],
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
editUrl:
'https://github.com/galio-org/galio-org.github.io/tree/main/',
},
theme: {
customCss: './src/css/custom.css',
},
gtag: {
trackingID: 'G-TD1M1WBJ07',
anonymizeIP: true,
},
googleTagManager: {
containerId: 'GTM-MJ9SQDH',
},
} satisfies Preset.Options,
],
],
themeConfig: {
algolia: {
appId: '4F7NXVPO9O',
indexName: 'galio-crawl',
apiKey: 'ea4cee702ec7abcb065d4eb647fcb3bd',
contextualSearch: true,
searchParameters: {},
searchPagePath: 'search',
insights: false,
},
image: 'img/galio.png',
navbar: {
title: 'Galio',
logo: {
alt: 'My Site Logo',
src: 'img/galio.png',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Get Started',
},
{
label: 'Starter Kit',
to: 'https://github.com/galio-org/galio-starter-kit',
position: 'left',
},
{
label: 'Components',
to: '/docs/components',
position: 'left',
},
{
label: 'Examples',
to: '/examples',
position: 'left',
},
{
label: 'Premium Themes',
to: '/premium-themes',
position: 'left'
},
{
href: 'https://github.com/galio-org/galio',
position: 'right',
className: 'header-github-link',
},
{
type: 'localeDropdown',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Galio Docs',
to: '/docs',
},
{
label: 'Get Started',
to: '/docs/get-started/install',
},
{
label: 'Components',
to: '/docs/components',
},
],
},
{
title: 'Community',
items: [
{
html: `
<div style="display: flex; flex-direction: column; gap: 20px; align-items: flex-start;">
<div style="display: flex; gap: 20px; align-items: center;">
<a href="https://www.instagram.com/galio.framework/" target="_blank" rel="noopener noreferrer" aria-label="Instagram" style="transition: opacity 0.2s;" onmouseover="this.style.opacity='0.7'" onmouseout="this.style.opacity='1'">
<svg width="28" height="28" viewBox="0 0 24 24" fill="#e4e6ea">
<path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/>
</svg>
</a>
<a href="https://www.facebook.com/GalioFramework/" target="_blank" rel="noopener noreferrer" aria-label="Facebook" style="transition: opacity 0.2s;" onmouseover="this.style.opacity='0.7'" onmouseout="this.style.opacity='1'">
<svg width="28" height="28" viewBox="0 0 24 24" fill="#e4e6ea">
<path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
</svg>
</a>
<a href="https://twitter.com/galioframework" target="_blank" rel="noopener noreferrer" aria-label="Twitter" style="transition: opacity 0.2s;" onmouseover="this.style.opacity='0.7'" onmouseout="this.style.opacity='1'">
<svg width="28" height="28" viewBox="0 0 24 24" fill="#e4e6ea">
<path d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"/>
</svg>
</a>
<a href="https://github.com/galio-org/galio-org.github.io" target="_blank" rel="noopener noreferrer" aria-label="GitHub" style="transition: opacity 0.2s;" onmouseover="this.style.opacity='0.7'" onmouseout="this.style.opacity='1'">
<svg width="28" height="28" viewBox="0 0 24 24" fill="#e4e6ea">
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/>
</svg>
</a>
</div>
<div>
Galio works many wonders for those who look to use it.
So here use it.
</div>
</div>
`,
},
],
},
{
title: 'Preview on Expo',
items: [
{
html: `
<div style="display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 400px;">
<p style="margin: 0; font-size: 14px; color: #e4e6ea; font-weight: 500;">Download on Expo Client</p>
<div style="display: flex; align-items: center; gap: 16px;">
<img src="/img/QR_expo.png" alt="Expo QR Code" style="width: 150px; height: 150px; border-radius: 0px; border: 2px solid #444;" />
<div style="display: flex; flex-direction: column; gap: 8px;">
<p style="margin: 0; font-size: 12px; color: #b0b3b8; line-height: 1.4;">Scan to view on your phone</p>
<a href="https://expo.io" target="_blank" rel="noopener noreferrer" style="
background: rgb(238, 23, 59);
color: white;
padding: 6px 12px;
border-radius: 10px;
text-decoration: none;
font-size: 12px;
font-weight: 600;
display: inline-block;
text-align: center;
transition: transform 0.2s;
" onmouseover="this.style.transform='translateY(-1px)'" onmouseout="this.style.transform='translateY(0)'">
Download App
</a>
</div>
</div>
</div>
`,
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Galio, by <a href="https://www.creative-tim.com/" style="color: inherit;">Creative Tim</a>`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;