Skip to content

Commit 73b923c

Browse files
authored
chore(all): bump deps (#81)
Hugo changed their mounts loading order (IMO to the better); adjust accordingly. They also changed things with regards to layouts and shortcodes, which we have to adjust as well (duh). Doks released a new MINOR version with migrations to match Hugo. Obviously migrate that as well. Signed-off-by: Luca Zeuch <[email protected]>
1 parent f5d0044 commit 73b923c

File tree

10 files changed

+1376
-1541
lines changed

10 files changed

+1376
-1541
lines changed

assets/scss/common/_custom.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ a.broken {
55
padding: 0.1em 0.2em;
66
}
77

8+
.docs-content p a {
9+
text-decoration: underline;
10+
}
11+
812
// Reduce spacing between cards on the homepage.
913
.home .card {
1014
margin-top: 2rem;

config/_default/module.toml

Lines changed: 49 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,11 @@
1-
# mounts
2-
## archetypes
3-
[[mounts]]
4-
source = "node_modules/@thulite/doks-core/archetypes"
5-
target = "archetypes"
6-
7-
[[mounts]]
8-
source = "archetypes"
9-
target = "archetypes"
10-
11-
## assets
12-
[[mounts]]
13-
source = "node_modules/@thulite/core/assets"
14-
target = "assets"
15-
16-
[[mounts]]
17-
source = "node_modules/@thulite/images/assets"
18-
target = "assets"
19-
20-
[[mounts]]
21-
source = "node_modules/@thulite/doks-core/assets"
22-
target = "assets"
23-
24-
[[mounts]]
25-
source = "node_modules/@tabler/icons/icons"
26-
target = "assets/svgs/tabler-icons"
27-
28-
[[mounts]]
29-
source = "assets"
30-
target = "assets"
1+
# Module Configuration File
2+
#
3+
# This file configures Hugo module settings, particularly module mounts which
4+
# define how content is organized within the project.
5+
#
6+
# Mounts specify file paths in your project that Hugo should use when building
7+
# the site. They allow for custom directory structures and integrating content
8+
# from different locations.
319

3210
## content
3311
[[mounts]]
@@ -43,21 +21,14 @@
4321
source = "data"
4422
target = "data"
4523

46-
## i18n
47-
[[mounts]]
48-
source = "node_modules/@thulite/doks-core/i18n"
49-
target = "i18n"
50-
51-
[[mounts]]
52-
source = "i18n"
53-
target = "i18n"
54-
5524
## layouts
5625
[[mounts]]
5726
source = "layouts"
5827
target = "layouts"
5928

6029
[[mounts]]
30+
# Exclude 'home.html' to avoid conflicts with a custom home page layout defined in the local 'layouts' directory.
31+
excludeFiles = "home.html"
6132
source = "node_modules/@thulite/doks-core/layouts"
6233
target = "layouts"
6334

@@ -77,6 +48,45 @@
7748
source = "node_modules/@thulite/inline-svg/layouts"
7849
target = "layouts"
7950

51+
## i18n
52+
[[mounts]]
53+
source = "node_modules/@thulite/doks-core/i18n"
54+
target = "i18n"
55+
56+
[[mounts]]
57+
source = "i18n"
58+
target = "i18n"
59+
60+
## archetypes
61+
[[mounts]]
62+
source = "node_modules/@thulite/doks-core/archetypes"
63+
target = "archetypes"
64+
65+
[[mounts]]
66+
source = "archetypes"
67+
target = "archetypes"
68+
69+
## assets
70+
[[mounts]]
71+
source = "node_modules/@thulite/core/assets"
72+
target = "assets"
73+
74+
[[mounts]]
75+
source = "node_modules/@thulite/doks-core/assets"
76+
target = "assets"
77+
78+
[[mounts]]
79+
source = "node_modules/@tabler/icons/icons"
80+
target = "assets/svgs/tabler-icons"
81+
82+
[[mounts]]
83+
source = "node_modules/@thulite/images/assets"
84+
target = "assets"
85+
86+
[[mounts]]
87+
source = "assets"
88+
target = "assets"
89+
8090
## static
8191
[[mounts]]
8292
source = "node_modules/@thulite/doks-core/static"

config/postcss.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
const autoprefixer = require('autoprefixer');
2-
const purgecss = require('@fullhuman/postcss-purgecss');
2+
const { purgeCSSPlugin } = require('@fullhuman/postcss-purgecss');
33
const whitelister = require('purgecss-whitelister');
44

55
module.exports = {
66
plugins: [
77
autoprefixer(),
8-
purgecss({
8+
purgeCSSPlugin({
99
content: ['./hugo_stats.json'],
1010
extractors: [
1111
{
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)