How to build only content/<product>
subdirectory in Hugo
#1358
Nadine2016
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
we have multiple doc sets for different products that we implemented with Docsy. To create these different doc sets, we duplicated the
content/docs
directory and renamed it to our product. Example file structure:We use Hugo to build our site and tried to build only the
content/product-1
doc set. Hugo has a setting in the config.toml file that lets you define thecontentDir
and set it to the directory you want to build. When we do that, the output seems correct and it builds only this particular product, including a css/ scss, content, etc. folder. But somehow the left and right-hand navigation is removed, and the footer and header seem off too.If everything in our project is built (without filtering to a particular product), everything works and the layout of the page is correct.
I was wondering if building from a subdirectory only is supported by the theme and if so, if you have an idea what file we might be missing in the product-specific directories that would make the site render correctly.
Thank you so much for your support.
Beta Was this translation helpful? Give feedback.
All reactions