Closed sawp-d closed 2 years ago
To set a new site up from scratch, please follow the instructions given here.
You wrote:
2. Add in module in config.toml:
[[module.imports]] path = 'github.com/google/docsy'
This is not enough. You have to add github.com/google/docsy/dependencies
to your config.toml, too. For a proper setup, you have to specify inside your config.toml
:
[[module.imports]]
path = "github.com/google/docsy"
[[module.imports]]
path = "github.com/google/docsy/dependencies"
With this in place, you may check your proper setup with the following command:
$ hugo mod graph
This should result in an output of:
$ hugo mod graph
hugo: collected modules in 1008 ms
github.com/me/my-new-site github.com/google/docsy@v0.2.0-pre
github.com/me/my-new-site github.com/google/docsy/dependencies@v0.2.0-pre
github.com/google/docsy/dependencies@v0.2.0-pre github.com/twbs/bootstrap@v4.6.1+incompatible
github.com/google/docsy/dependencies@v0.2.0-pre github.com/FortAwesome/Font-Awesome@v0.0.0-20210804190922-7d3d774145ac
With this output, your site will start up without problems.
Please let me know if this cures your problem.
Thanks for the quick reply, @deining! Looks like that fixed it, and helpful instructions! Excited to use this theme!
Hello!
Very excited that you just released a Hugo module for docsy! I have spun up a simple demo project using the following steps:
hugo new site
hugo mod init -u
thenhugo server -D/--minify
and ran into this error:I see that there are related PRs for vendor/bootstrap, but is there anything I can do to fix this in my project or do I need to return to submodules and wait for a bit?