Skip to content

Commit c9de8c6

Browse files
[update] Add checker on broken links
1 parent 08967f0 commit c9de8c6

1 file changed

Lines changed: 32 additions & 54 deletions

File tree

docusaurus.config.js

Lines changed: 32 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -131,26 +131,12 @@ module.exports = {
131131
baseUrl: '/richtext/',
132132
onBrokenLinks: 'warn',
133133
onBrokenMarkdownLinks: 'warn',
134+
onBrokenAnchors: 'warn',
134135
favicon: 'img/favicon.ico',
135136
organizationName: 'DHTMLX',
136137
projectName: 'docs-richtext',
137138
trailingSlash: true,
138139
themeConfig: {
139-
/*colorMode: {
140-
defaultMode: 'light',
141-
disableSwitch: false,
142-
respectPrefersColorScheme: false,
143-
switchConfig: {
144-
darkIcon: '🌙',
145-
darkIconStyle: {
146-
marginLeft: '0px',
147-
},
148-
lightIcon: '☀️',
149-
lightIconStyle: {
150-
marginLeft: '0px',
151-
},
152-
},
153-
},*/
154140
algolia: {
155141
// This is a read-only, search-only key served directly by the front-end, managed by Algolia via their
156142
// free DocSearch program. The key is not sensitive. See https://docsearch.algolia.com/ for more details.
@@ -175,14 +161,13 @@ module.exports = {
175161
logo: {
176162
alt: 'DHTMLX RichText Documentation',
177163
src: 'img/dhtmlx_logo.svg',
178-
href: 'https://docs.dhtmlx.com/',
179-
164+
href: 'https://docs.dhtmlx.com/'
180165
},
181166
items: [
182167
{
183168
label: 'Examples',
184169
href: 'https://snippet.dhtmlx.com/pdh5buvg?tag=richtext',
185-
position: 'right',
170+
position: 'right'
186171
},
187172
{
188173
label: 'Forum',
@@ -192,14 +177,14 @@ module.exports = {
192177
{
193178
label: 'Support',
194179
href: 'https://dhtmlx.com/docs/technical-support.shtml',
195-
position: 'right',
180+
position: 'right'
196181
},
197182
{
198183
label: 'Download',
199184
href: 'https://dhtmlx.com/docs/products/dhtmlxRichText/download.shtml',
200-
position: 'right',
201-
},
202-
],
185+
position: 'right'
186+
}
187+
]
203188
},
204189
footer: {
205190
style: 'dark',
@@ -210,70 +195,68 @@ module.exports = {
210195
{
211196
label: 'Download RichText',
212197
href: 'https://dhtmlx.com/docs/products/dhtmlxRichText/download.shtml',
213-
position: 'right',
198+
position: 'right'
214199
},
215200
{
216201
label: 'Examples',
217202
href: 'https://snippet.dhtmlx.com/pdh5buvg?tag=richtext',
218-
position: 'right',
203+
position: 'right'
219204
},
220205
{
221206
label: 'Blog',
222-
href: 'https://dhtmlx.com/blog/tag/richtext/',
207+
href: 'https://dhtmlx.com/blog/tag/richtext/'
223208
},
224209
{
225210
label: 'Forum',
226211
href: 'https://forum.dhtmlx.com/c/richtext/',
227212
position: 'right'
228-
},
229-
],
213+
}
214+
]
230215
},
231216
{
232217
title: 'Community',
233218
items: [
234219
{
235220
label: 'GitHub',
236-
href: 'https://github.com/DHTMLX',
221+
href: 'https://github.com/DHTMLX'
237222
},
238-
239223
{
240224
label: 'Youtube',
241-
href: 'https://www.youtube.com/user/dhtmlx',
225+
href: 'https://www.youtube.com/user/dhtmlx'
242226
},
243227
{
244228
label: 'Facebook',
245-
href: 'https://www.facebook.com/dhtmlx',
229+
href: 'https://www.facebook.com/dhtmlx'
246230
},
247231
{
248232
label: 'Twitter',
249-
href: 'https://twitter.com/dhtmlx',
233+
href: 'https://twitter.com/dhtmlx'
250234
},
251235
{
252236
label: 'Linkedin',
253-
href: 'https://www.linkedin.com/groups/3345009/',
254-
},
255-
256-
],
237+
href: 'https://www.linkedin.com/groups/3345009/'
238+
}
239+
]
257240
},
258241
{
259242
title: 'Company',
260243
items: [
261244
{
262245
label: 'About us',
263-
href: 'https://dhtmlx.com/docs/company.shtml',
246+
href: 'https://dhtmlx.com/docs/company.shtml'
264247
},
265248
{
266249
label: 'Contact us',
267-
href: 'https://dhtmlx.com/docs/contact.shtml',
250+
href: 'https://dhtmlx.com/docs/contact.shtml'
268251
},
269252
{
270253
label: 'Licensing',
271-
href: 'https://dhtmlx.com/docs/products/dhtmlxRichText/#editions-licenses',
272-
},
273-
],
274-
},
275-
],
276-
},
254+
href: 'https://dhtmlx.com/docs/products/dhtmlxRichText/#editions-licenses'
255+
}
256+
]
257+
}
258+
]
259+
}
277260
},
278261
presets: [
279262
[
@@ -285,16 +268,11 @@ module.exports = {
285268
editUrl: 'https://github.com/DHTMLX/docs-richtext/edit/master/',
286269
routeBasePath: '/',
287270
},
288-
// blog: {
289-
// showReadingTime: true,
290-
// // Please change this to your repo.
291-
// editUrl: 'https://github.com/facebook/docusaurus/edit/master/website/blog/',
292-
// },
293271
theme: {
294-
customCss: require.resolve('./src/css/custom.css'),
295-
},
296-
},
297-
],
272+
customCss: require.resolve('./src/css/custom.css')
273+
}
274+
}
275+
]
298276
],
299277
plugins:[
300278
'docusaurus-plugin-sass',
@@ -311,7 +289,7 @@ module.exports = {
311289
[
312290
require.resolve('docusaurus-gtm-plugin'),
313291
{
314-
id: 'GTM-5M5RCSJ',
292+
id: 'GTM-5M5RCSJ'
315293
}
316294
]
317295
]

0 commit comments

Comments
 (0)