-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathdocusaurus.config.js
163 lines (156 loc) · 4.83 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
import {themes as prismThemes} from 'prism-react-renderer';
const logo = {
alt: 'Country State City API Documentation',
src: 'img/world.svg',
// srcDark: 'img/docusaurus_keytar.svg',
};
module.exports = {
title: 'Country State City API',
tagline: 'Documentation Website',
url: 'https://countrystatecity.in',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
onDuplicateRoutes: 'warn',
favicon: 'img/world.png',
deploymentBranch: 'gh-pages',
organizationName: 'dr5hn', // Usually your GitHub org/user name.
projectName: 'csc-website', // Usually your repo name.
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
trailingSlash: true,
customFields: {
description:
'🌍 World countries, states, regions, provinces, cities, towns in JSON, SQL, XML, PLIST, YAML, and CSV. All Countries, States, Cities with ISO2, ISO3, Country Code, Phone Code, Capital, Native Language, Timezones, Latitude, Longitude, Region, Subregion, Flag Emoji, and Currency. #countries #states #cities - dr5hn/countries-states-cities-database',
},
plugins: [
'docusaurus-plugin-sass',
],
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
{
docs: {
sidebarPath: './sidebars.js',
// Please change this to your repo.
editUrl:
'https://github.com/dr5hn/csc-website/edit/main/',
showLastUpdateAuthor: false,
showLastUpdateTime: true,
},
theme: {
customCss: require.resolve('./src/css/custom.scss'),
},
sitemap: {
changefreq: 'weekly',
priority: 0.5,
ignorePatterns: ['/tags/**'],
},
gtag: {
trackingID: 'G-XPF0QLDXVS',
// Optional fields.
anonymizeIP: true, // Should IPs be anonymized?
},
},
],
],
themeConfig: {
colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: true,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['php', 'dart', 'ruby', 'rust', 'go', 'swift', 'java']
},
announcementBar: {
id: 'supportus',
backgroundColor: '#cddc39',
textColor: '#000', // Defaults to `#000`.
isCloseable: false, // Defaults to `true`.
// content: '<h3 style="margin:0; font-weight: normal;">Maintenance is scheduled on <b>Sunday, October 9 at 00:00 IST</b>. Access to API will be unavailable.</h3>'
content: '⭐️ If you like CountryStateCity DB, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/dr5hn/countries-states-cities-database">GitHub</a>! ⭐️',
},
image: 'img/api.png',
navbar: {
hideOnScroll: false,
title: 'Country State City API',
logo: logo,
items: [
{
to: "/docs/",
activeBasePath: "docs",
label: "Documentation",
position: "left",
},
{
href: "https://api.countrystatecity.in/play",
label: "Playground",
position: "left",
target: '_blank',
},
{
href: "https://dr5hn.github.io/countries-states-cities-database/",
label: "Demo",
position: "left",
target: '_blank',
},
{
href: "https://status.countrystatecity.in/",
label: "Status",
position: "left",
target: '_blank',
},
{
href: "/faq/",
activeBasePath: "faq",
label: "FAQs",
position: "right",
},
{
href: "https://forms.gle/ckZ8Gub6jS9sUihJA",
label: "Request API Key",
position: "right",
target: '_blank',
},
{
href: "/donate/",
activeBasePath: "donate",
label: "Donate",
position: "right",
},
{
href: 'https://github.com/dr5hn/countries-states-cities-database',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub repository',
target: '_blank',
},
{
href: 'https://twitter.com/dr5hn',
position: 'right',
className: 'header-twitter-link',
'aria-label': 'Follow me on Twitter',
target: '_blank',
},
{
href: 'https://www.linkedin.com/in/dr5hn/',
position: 'right',
className: 'header-linkedin-link',
'aria-label': 'Follow me on Twitter',
target: '_blank',
},
],
},
footer: {
style: 'dark',
logo,
copyright: `Made with 💚 in India<img src="/img/india.svg" width="16"> <br>Built with <a href="https://docusaurus.io/" target="_blank" rel="noreferrer">Docusaurus</a>`,
},
},
};