-
-
Notifications
You must be signed in to change notification settings - Fork 158
Expand file tree
/
Copy pathconfig.mjs
More file actions
90 lines (80 loc) · 2.52 KB
/
config.mjs
File metadata and controls
90 lines (80 loc) · 2.52 KB
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
import { defineConfig } from 'vitepress';
import { generateSidebar } from 'vitepress-sidebar';
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'Drupal at your Fingertips',
description:
'Drupal at your Fingertips: A developers quick reference for Modern Drupal versions 10+',
base: '/',
srcDir: './book',
outDir: './dist',
cleanUrls: true,
lastUpdated: true,
head: [
['link', { rel: 'icon', href: '/images/favicon.ico' }],
],
//rewrites: {
//'nodes_n_fields.md': 'nodes-and-fields.md',
//'off_the_island.md': 'off-island.md',
//},
vite: {
envDir: './../',
ssr: {
noExternal: ['@nolebase/vitepress-plugin-enhanced-readabilities'],
},
build: {
chunkSizeWarningLimit: 1500,
},
},
themeConfig: {
logo: '/images/d9book.svg',
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: 'About', link: '/about' },
{ text: 'Attribution', link: '/attribution' },
{ text: 'Contribute', link: '/contribute' },
{ text: 'Fork me', link: 'https://github.com/selwynpolit/d9book/fork' },
],
outline: {
level: [2, 3],
},
search: {
provider: 'local',
},
editLink: {
pattern: 'https://github.com/selwynpolit/d9book/edit/gh-pages/book/:path',
text: 'Edit this page on GitHub',
},
sidebar: generateSidebar({
documentRootPath: 'book',
useTitleFromFrontmatter: true,
sortMenusByName: true,
hyphenToSpace: true,
excludePattern: [
'about.md',
'attribution.md',
'mysteries.md',
'contribute.md',
'layoutbuilder.md',
'decoupled.md'
],
}),
socialLinks: [
{ icon: 'x', link: '//x.com/selwynpolit' },
{ icon: 'github', link: '//github.com/selwynpolit' },
],
footer: {
message:
'<span>\n' +
' <a property="dct:title" rel="cc:attributionURL" href="//selwynpolit.github.io/d9book">Drupal at your fingertips</a>\n' +
' by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="//drupal.org/u/selwynpolit">Selwyn Polit</a>\n' +
' is licensed under <a href="//creativecommons.org/licenses/by/4.0/" target="_blank" rel="license noopener noreferrer">CC BY 4.0\n' +
' </a><br>Drupal is a registered trademark of Dries Buytaert</span>',
},
},
sitemap: {
hostname: 'https://www.drupalatyourfingertips.com',
lastmodDateOnly: false // Includes exact timestamps
},
});