-
I'm in the process of building a documentation site, which is only going to be available on my LAN. It contains info that's not supposed to be public, so I have no repo to share. I also haven't been able to find a way to replicate the issue in a good way. I figured that while I troubleshoot this to try and find the issue, I'll post a question here and see if someone might be able to help me figure out what's going on. Before the upgrade, the site worked fine. After the upgrade:
The only way to access any part of the rest of the site is through the link card I've placed on the main page. But, that link only leads to the main article in the documentation, which also:
Some censored screenshots below to illustrate the issue more clearly. Main docs page before the upgrade Main docs page after the upgrade Environment before the upgrade
Package.json "dependencies": {
"@tabler/icons": "^3.12.0",
"@thulite/doks-core": "^1.8.1",
"@thulite/images": "^3.3.1",
"@thulite/inline-svg": "^1.1.0",
"@thulite/seo": "^2.4.1",
"thulite": "^2.5.0"
},
"devDependencies": {
"prettier": "^3.3.3",
"vite": "^7.0.5"
},
"engines": {
"node": ">=20.11.0"
} Environment after the upgrade
Package.json "dependencies": {
"@tabler/icons": "^3.34.1",
"@thulite/doks-core": "^1.8.3",
"@thulite/images": "^3.3.1",
"@thulite/inline-svg": "^1.2.0",
"@thulite/seo": "^2.4.1",
"thulite": "^2.6.3"
},
"devDependencies": {
"prettier": "^3.6.2",
"vite": "^7.0.6"
},
"engines": {
"node": ">=20.11.0"
} To upgrade, the first thing I did was run the command from the upgrade documentation. And upgraded Hugo by replacing the 0.145.0 Since the upgrade command above does not cover all dependencies, I also tested with the command below. npm install @tabler/icons@latest @thulite/doks-core@latest @thulite/images@latest @thulite/inline-svg@latest @thulite/seo@latest thulite@latest It made a difference in that the sidebar menu and TOC returned on the main docs page, but everything was still stretched out over the entire width of the screen, and it still does not detect dark automatically, and there are more CSS issues, such as callouts not having the correct color for both the card and text. I've ran I've tried editing I've tried other versions of Hugo, such as v0.146.0, but it made no difference. Running Hugo v0.145.0 does not work after upgrading Doks and it's dependencies as per above. The console in the browser shows errors about the search feature, but no further errors. Considering that this looks like a CSS issue, I figured that I would see a bunch of CSS related errors there, but nope. ![]() I've done some edits to the theme, but I don't understand how this upgrade can break the whole layout, especially as it's only a patch release. Any help in figuring this out is much appreciated. I've hit a wall in my troubleshooting for the moment, and will proceed with the downgraded version until I can get this sorted out. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I think you've hit a module mounting order issue — I upgraded the Doks site and hit a similar /the same one. What worked for me, update the From: ## layouts
[[mounts]]
source = "node_modules/@thulite/doks-core/layouts"
target = "layouts"
[[mounts]]
source = "node_modules/@thulite/core/layouts"
target = "layouts"
[[mounts]]
source = "node_modules/@thulite/seo/layouts"
target = "layouts"
[[mounts]]
source = "node_modules/@thulite/images/layouts"
target = "layouts"
[[mounts]]
source = "node_modules/@thulite/inline-svg/layouts"
target = "layouts"
[[mounts]]
source = "layouts"
target = "layouts" To: ## layouts
[[mounts]]
source = "layouts"
target = "layouts"
[[mounts]]
source = "node_modules/@thulite/doks-core/layouts"
target = "layouts"
[[mounts]]
source = "node_modules/@thulite/core/layouts"
target = "layouts"
[[mounts]]
source = "node_modules/@thulite/seo/layouts"
target = "layouts"
[[mounts]]
source = "node_modules/@thulite/images/layouts"
target = "layouts"
[[mounts]]
source = "node_modules/@thulite/inline-svg/layouts"
target = "layouts" Can you let me know if this works for you? Then I will put out a fix release — thx! |
Beta Was this translation helpful? Give feedback.
I think you've hit a module mounting order issue — I upgraded the Doks site and hit a similar /the same one.
What worked for me, update the
layouts
part order inconfig/_default/module.toml
—From:
To: