-
Notifications
You must be signed in to change notification settings - Fork 82
/
config.js
155 lines (154 loc) · 4.85 KB
/
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
const { slugify } = require('@vuepress/shared-utils')
const customBlock = require('markdown-it-custom-block')
const youtubeEmbed = path => `<div class="ytEmbed"><iframe src="https://www.youtube-nocookie.com/embed/${path}" frameborder="0" allow="autoplay;encrypted-media;picture-in-picture" allowfullscreen></iframe></div>`
module.exports = {
title: "Wasabi",
description: "Wasabi is an open-source, non-custodial, privacy focused Bitcoin wallet for desktop.",
head: [
["link", { rel: "icon", href: "/favicon.ico" }],
["link", { rel: "stylesheet", href: "https://fonts.googleapis.com/css?family=Inconsolata:400,700|Playfair+Display:700&display=swap" }]
],
plugins: [
"@vuepress/back-to-top",
["container", {
type: "details",
render (tokens, idx) {
const token = tokens[idx]
// turn details headline into summary
if (token.type === 'container_details_open') {
const next = tokens[idx + 1]
const match = token.info.trim().match(/^details\s+(.*)$/)
let title = match && match[1]
if (next.type === 'heading_open' && !title) {
const headContent = tokens[idx + 2]
const headClose = tokens[idx + 3]
// hide headline and its contents
next.hidden = headClose.hidden = headContent.hidden = true
headContent.children = []
// extract title
title = headContent.content || ''
} else {
title = ''
}
const slug = slugify(title)
return `<details id="${slug}"><summary><a href="#${slug}" aria-hidden="true" class="header-anchor">#</a> ${title}</summary>`
} else if (token.type === 'container_details_close') {
return '</details>'
}
}
}]
],
markdown: {
extendMarkdown (md) {
md.use(customBlock, {
youtube (arg) {
const [id, start] = arg.split(',')
const path = start ? `${id}?start=${start}` : id
return youtubeEmbed(path)
},
youtubePlaylist (arg) {
const [id, index = 1] = arg.split(',')
const path = `videoseries?list=${id}&index=${index}`
return youtubeEmbed(path)
}
})
}
},
themeConfig: {
logo: "/Logo_without_text.png",
displayAllHeaders: false,
sidebarDepth: 0,
repo: "zkSNACKs/WasabiDoc",
docsDir: "docs",
editLinks: true,
lastUpdated: 'Last Updated',
nav: [
{
text: "Why Wasabi",
link: "/why-wasabi/"
},
{
text: "Using Wasabi",
link: "/using-wasabi/"
},
{
text: "Building Wasabi",
link: "/building-wasabi/"
},
{
text: "FAQ",
link: "/FAQ/"
}
],
sidebar: {
"/why-wasabi/": [
{
title: "Why Wasabi",
collapsable: false,
sidebarDepth: 2,
children: [
"/why-wasabi/WhyPrivacyImportant.md",
"/why-wasabi/BitcoinPrivacy.md",
"/why-wasabi/10Commandments.md"
]
}
],
"/using-wasabi/": [
{
title: "Using Wasabi",
collapsable: false,
sidebarDepth: 2,
children: [
"/using-wasabi/InstallPackage.md",
"/using-wasabi/BuildSource.md",
"/using-wasabi/DeterministicBuild.md",
"/using-wasabi/AddressReuse.md",
"/using-wasabi/NetworkLevelPrivacy.md",
"/using-wasabi/BIP.md",
"/using-wasabi/LostPassword.md",
"/using-wasabi/PasswordFinder.md",
"/using-wasabi/Daemon.md",
"/using-wasabi/PayToEndPoint.md"
]
}
],
"/building-wasabi/": [
{
title: "Building Wasabi",
collapsable: false,
sidebarDepth: 2,
children: [
"/building-wasabi/TechnicalOverview.md",
"/building-wasabi/ContributionChecklist.md",
"/building-wasabi/Dojo.md",
"/building-wasabi/ToDo.md",
"/building-wasabi/CodingConventions.md",
"/building-wasabi/DemoGuide.md",
"/building-wasabi/ContributionGame.md",
"/building-wasabi/Security.md",
"/building-wasabi/CodeCoverage.md",
"/building-wasabi/ManualTesting.md",
"/building-wasabi/HardwareWalletTestingGuide.md",
"/building-wasabi/HowToDebug.md",
"/building-wasabi/Ports.md",
"/building-wasabi/LICENSE.md"
]
}
],
"/FAQ/": [
{
title: "FAQ",
collapsable: false,
sidebarDepth: 2,
children: [
"/FAQ/FAQ-Introduction.md",
"/FAQ/FAQ-Installation.md",
"/FAQ/FAQ-UseWasabi.md",
"/FAQ/FAQ-GeneralBitcoinPrivacy.md",
"/FAQ/FAQ-Contribution.md"
]
}
]
}
}
}