-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
108 lines (99 loc) · 3.12 KB
/
docusaurus.config.ts
File metadata and controls
108 lines (99 loc) · 3.12 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
import type * as Preset from '@docusaurus/preset-classic';
import type { Config } from '@docusaurus/types';
import { themes as prismThemes } from 'prism-react-renderer';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
favicon: 'img/favicon.ico',
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en']
},
onBrokenLinks: 'throw',
// Set the /<baseUrl>/ pathname under which your site is served
onBrokenMarkdownLinks: 'warn',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'MatiPl01', // Usually your GitHub org/user name.
presets: [
[
'classic',
{
blog: {
editUrl:
'https://github.com/MatiPl01/react-native-sortables/edit/main/packages/docs/',
feedOptions: {
type: ['rss', 'atom'],
xslt: true
},
onInlineAuthors: 'warn',
// Useful options to enforce blogging best practices
onInlineTags: 'warn',
onUntruncatedBlogPosts: 'warn',
showReadingTime: true
},
docs: {
editUrl:
'https://github.com/MatiPl01/react-native-sortables/edit/main/packages/docs/',
routeBasePath: '/',
// Please change this to your repo.
sidebarPath: './sidebars.ts'
},
theme: {
customCss: './src/css/custom.css'
}
} satisfies Preset.Options
]
],
projectName: 'react-native-sortables', // Usually your repo name.
tagline: 'React Native Sortables',
// 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
themeConfig: {
algolia: {
apiKey: '8a07143e93904e0bcdc9e2286393b107',
appId: 'I4ZZR4R13B',
indexName: 'react-native-sortables-vercel'
},
footer: {
copyright: `Copyright © ${new Date().getFullYear()} | React Native Sortables by MatiPl01`,
links: [],
style: 'dark'
},
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg', // TODO - change image
navbar: {
items: [
{
label: 'Docs',
position: 'left',
sidebarId: 'tutorialSidebar',
type: 'docSidebar'
},
// { label: 'Blog', position: 'left', to: '/blog' },
{
href: 'https://github.com/MatiPl01/react-native-sortables',
label: 'GitHub',
position: 'right'
}
],
logo: {
alt: 'React Native Sortables Logo',
src: 'img/logo.svg'
},
title: 'Sortables'
},
prism: {
darkTheme: prismThemes.vsDark,
theme: prismThemes.github
}
} satisfies Preset.ThemeConfig,
title: 'Sortables',
// Set the production url of your site here
// TODO - change url
url: 'https://your-docusaurus-site.example.com'
};
// eslint-disable-next-line import/no-unused-modules
export default config;