-
My docs site currently uses Docsy as as submodule (docsy @ efdc5bf) and Hugo 0.71. So I am trying to migrate to the Go module v0.60.0 and Hugo v0.110.0. I followed the https://www.docsy.dev/docs/updating/convert-site-to-module/ instructions. Compile errors because Hugo couldn't locate my custom shortcodes. I searched and found a discussion item that mentions I have to map the local theme directories in config.yaml. (#1095, https://github.com/google/docsy/pull/1184/files, https://github.com/fluxcd/website/pull/1136/files). I did that, but the build still fails locally and in Netlify with the SCSS error. The error: Repo: https://github.com/armory/docs Local build error:
Netlify build error:
Relevant section of config.yaml:
Does anyone know what's causing the build error and how to fix it? I've never been a web developer so I am beyond lost with this one. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You came quite far with your upgrade! The error message
indicates that you are using bootstrap 5.2.3, but docsy 0.6.0 needs v4.6.2. The solution is quite easy. At project root, issue:
This will bring bootstrap dependency to the correct version. Afterwards, you can successful preview your project via |
Beta Was this translation helpful? Give feedback.
-
Thank you @deining for the quick reply and solution! |
Beta Was this translation helpful? Give feedback.
You came quite far with your upgrade!
The error message
indicates that you are using bootstrap 5.2.3, but docsy 0.6.0 needs v4.6.2.
The solution is quite easy. At project root, issue:
This will bring bootstrap dependency to the correct version. Afterwards, you can successful preview your project via
hugo server
.