-
-
Notifications
You must be signed in to change notification settings - Fork 400
/
Copy pathdocusaurus.config.js
115 lines (111 loc) · 3.12 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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github')
const darkCodeTheme = require('prism-react-renderer/themes/dracula')
const PACKAGE = require('../package.json')
const GITHUB_URL = 'https://github.com/htmlhint/HTMLHint'
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'HTMLHint',
tagline: 'Static code analysis tool you need for your HTML',
url: PACKAGE.homepage,
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'HTMLHint',
projectName: PACKAGE.name,
scripts: [
'https://buttons.github.io/buttons.js',
{
src: 'https://plausible.io/js/script.hash.outbound-links.pageview-props.tagged-events.js',
defer: true,
'data-domain': 'htmlhint.com',
},
{
src: 'data:text/javascript,window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }',
defer: true,
},
],
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
path: '../docs',
sidebarPath: require.resolve('./sidebars.js'),
showLastUpdateAuthor: true,
showLastUpdateTime: true,
editUrl: `${GITHUB_URL}/edit/master/docs/`,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
googleAnalytics: { trackingID: 'UA-109578378-3' },
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'HTMLHint',
logo: {
alt: 'HTMLHint Logo',
src: 'img/htmlhint.png',
},
items: [
{
type: 'doc',
docId: 'user-guide/getting-started',
position: 'left',
label: 'Docs',
},
{
label: 'Playground',
href: 'https://htmlhint-playground.netlify.app',
position: 'left',
},
{
href: 'https://github.com/HTMLHint/HTMLHint',
label: 'GitHub',
position: 'left',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/htmlhint',
},
{
label: 'X (Twitter)',
href: 'https://x.com/HTMLHint',
},
],
},
{
title: 'More',
items: [
{
label: 'HTMLHint organization',
href: 'https://github.com/HTMLHint',
},
],
},
],
copyright: `${new Date().getFullYear()} HTMLHint. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
}
module.exports = config