-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.ts
136 lines (132 loc) · 3.78 KB
/
docusaurus.config.ts
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
const { themes } = require('prism-react-renderer')
const lightCodeTheme = themes.github
const darkCodeTheme = themes.github
// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'Hypotheses Briefs',
tagline: 'Charting the Course of Customer Discovery',
url: 'https://hypotheses-briefs.span.land',
baseUrl: '/',
projectName: 'hypotheses-briefs',
organizationName: 'Spantree',
trailingSlash: false,
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
'https://github.com/spantree/hypotheses-briefs/edit/main/website/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
plugins: [
async function tailwind(context, options) {
return {
name: 'docusaurus-tailwindcss',
configurePostCss(postcssOptions) {
// Appends TailwindCSS and AutoPrefixer.
postcssOptions.plugins.push(require('tailwindcss'))
postcssOptions.plugins.push(require('autoprefixer'))
return postcssOptions
},
}
},
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
{
colorMode: {
defaultMode: 'dark',
},
navbar: {
// title: 'Spantree Docs',
title: 'Hypotheses Briefs',
logo: {
alt: 'Spantree Logo',
src: 'img/logos/spantree-long-gray-800.svg',
srcDark: 'img/logos/spantree-long-gray-50.svg',
},
items: [
{
type: 'doc',
docId: 'hypotheses-briefs/index',
position: 'left',
label: 'About',
},
{
type: 'doc',
docId: 'examples/index',
position: 'left',
label: 'Examples',
},
{
href: 'https://github.com/spantree/hypotheses-briefs',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
// {
// title: 'Community',
// items: [
// {
// label: 'Github',
// href: 'https://github.com/Spantree',
// },
// {
// label: 'Twitter',
// href: 'https://twitter.com/spantreellc',
// },
// ],
// },
// {
// title: 'Resources',
// items: [
// {
// label: 'The Four Steps to the Ephiphany',
// href: 'https://www.amazon.com/Four-Steps-Epiphany-Steve-Blank/dp/0989200507',
// },
// {
// label: 'Steve Blank',
// href: 'https://steveblank.com/',
// },
// {
// label: 'Google Design Sprints',
// href: 'http://www.gv.com/sprint/',
// },
// ],
// },
],
copyright: `Copyright © ${new Date().getFullYear()} Spantree, LLC. Built with Docusaurus.`,
},
metadata: [
{
name: 'font-inter',
content: `https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap`,
tagName: 'link',
attributes: {
rel: 'stylesheet',
},
},
],
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
},
}