I embedded a documentation (which actually is its own Hugo website in itself) inside a website using a module:
[module]
[[module.imports]]
disable = false
ignoreConfig = true
ignoreImports = true
path = "github.com/aurelienpierreeng/ansel-doc"
[[module.imports.mounts]]
source = 'content/'
target = 'content/doc/'
lang= "en"
[[module.imports.mounts]]
source = 'content/'
target = 'content/doc/'
lang= "fr"
Note: The primary language is EN, and not everything is translated into FR yes.
Up to Hugo 0.122, when building the website, the module gets updated and the documentation gets rendered properly in /en/doc
and /fr/doc
:
Hugo 0.111.3 installed from Fedora repo:
hugo: downloading modules …
hugo: collected modules in 106781 ms
Start building sites …
hugo v0.111.3+extended linux/amd64 BuildDate=2023-07-26T00:00:00+00:00 VendorInfo=Fedora:0.111.3-4.fc39
| EN | FR
-------------------+-----+------
Pages | 506 | 296
Paginator pages | 0 | 0
Non-page files | 417 | 237
Static files | 59 | 59
Processed images | 188 | 174
Aliases | 2 | 0
Sitemaps | 2 | 1
Cleaned | 0 | 0
Total in 134429 ms
Hugo 122.0 Go package downloaded straight from Github (something wrong seems to happen with images, we lost 176 of them in EN ?):
Start building sites …
hugo v0.122.0-b9a03bd59d5f71a529acb3e33f995e0ef332b3aa+extended linux/amd64 BuildDate=2024-01-26T15:54:24Z VendorInfo=gohugoio
| EN | FR
-------------------+-----+------
Pages | 288 | 39
Paginator pages | 0 | 0
Non-page files | 217 | 31
Static files | 147 | 147
Processed images | 19 | 19
Aliases | 2 | 0
Sitemaps | 2 | 1
Cleaned | 0 | 0
Total in 1143 ms
Starting at Hugo 0.123, the module is not loaded at all and the documentation (from the module) is not rendered:
Start building sites …
hugo v0.123.8-5fed9c591b694f314e5939548e11cc3dcb79a79c+extended linux/amd64 BuildDate=2024-03-07T13:14:42Z VendorInfo=gohugoio
| EN | FR
-------------------+-----+------
Pages | 44 | 40
Paginator pages | 0 | 0
Non-page files | 30 | 30
Static files | 147 | 147
Processed images | 19 | 0
Aliases | 1 | 0
Cleaned | 0 | 0
Total in 264 ms
We are missing 462 pages in the EN version and the 2 sitemaps. What could be the issue ?