Hi,
While working on the Istio documentation, I attempted to split a large topic into smaller topics but I ran into the following issue: https://github.com/gohugoio/hugo/issues/6050
Has anyone else encountered this problem before?
Thanks in advance for any help you can provide.
Regards,
Rigs Caballero
Update: for others, if you want to clone and attempt to reproduce this on your system:
git clone https://github.com/rcaballeromx/istio.github.io.git
cd istio.github.io
git checkout tmc-t
For others, the path in question: https://github.com/istio/istio.io/tree/master/content/docs/concepts/traffic-management
Thank you @zwbetz but to see the file structure that has the issue, please see:
The path you provided shows the flat content structure that I used as a workaround.
Gotcha. So, I cannot reproduce this on my Mac. Here’s my env. I have 0.55.6, whereas your netlify.toml
file has 0.55.5.
$ hugo env
Hugo Static Site Generator v0.55.6-A5D4C82D2/extended darwin/amd64 BuildDate: 2019-05-18T08:06:24Z
GOOS="darwin"
GOARCH="amd64"
GOVERSION="go1.12.2"
I repeatedly run the following commands, with the same result each time:
$ rm -r public
$ hugo
| EN | ZH
+------------------+-----+-----+
Pages | 463 | 405
Paginator pages | 0 | 0
Non-page files | 172 | 155
Static files | 39 | 39
Processed images | 0 | 0
Aliases | 1 | 0
Sitemaps | 2 | 1
Cleaned | 0 | 0
$ find public/docs/concepts/traffic-management -name "*.html" | sort
public/docs/concepts/traffic-management/index.html
public/docs/concepts/traffic-management/network/index.html
public/docs/concepts/traffic-management/overview/index.html
public/docs/concepts/traffic-management/routing/destination-rules/index.html
public/docs/concepts/traffic-management/routing/gateways/index.html
public/docs/concepts/traffic-management/routing/index.html
public/docs/concepts/traffic-management/routing/service-entries/index.html
public/docs/concepts/traffic-management/routing/sidecars/index.html
public/docs/concepts/traffic-management/routing/virtual-services/index.html
Also, your page bundle structure looks valid to me.
$ find content/docs/concepts/traffic-management -name "*.md" | sort
content/docs/concepts/traffic-management/_index.md
content/docs/concepts/traffic-management/network/index.md
content/docs/concepts/traffic-management/overview/index.md
content/docs/concepts/traffic-management/routing/_index.md
content/docs/concepts/traffic-management/routing/destination-rules/index.md
content/docs/concepts/traffic-management/routing/gateways/index.md
content/docs/concepts/traffic-management/routing/service-entries/index.md
content/docs/concepts/traffic-management/routing/sidecars/index.md
content/docs/concepts/traffic-management/routing/virtual-services/index.md
@zwbetz Thanks for looking into this.
The fact that the pages some times get build correctly is part of the issue. On several occasions, I ended up building the site several times until I encountered a build where they disappeared.
Do you think that switching 0.55.6 could solve the issue?
Not sure if it would solve your issue. But it’d be easy enough to test it out.
@zwbetz I’ve been running the new version locally and it eventually failed. I’m happy I didn’t change the version of Hugo used by our infrastructure and test the content with it. Thanks again for the help but updating Hugo didn’t solve the issue. I’ve included the output showing the instance when it failed.
~/github/istio.github.io (tmc-w) $ make clean
~/github/istio.github.io (tmc-w) $ hugo
| EN | ZH
+------------------+-----+-----+
Pages | 464 | 405
Paginator pages | 0 | 0
Non-page files | 175 | 168
Static files | 46 | 46
Processed images | 0 | 0
Aliases | 1 | 0
Sitemaps | 2 | 1
Cleaned | 0 | 0
Total in 4346 ms
~/github/istio.github.io (tmc-w) $ find public/docs/concepts/traffic-management -name "*.html" | sort
public/docs/concepts/traffic-management/index.html
1 Like