Skip to content

Can't get docsy to work with hugo modules. #283

@wlai-axway

Description

@wlai-axway

Hi, I am trying to use hugo modules to manage dependencies. When using hugo modules then everything has to be configured this way and the theme = ["docsy"] configuration needs to be replaced by:

[module]
[[module.imports]]
path = "github.com/google/docsy"
#theme = ["docsy"]

That doesn't work because docsy uses submodules and hugo modules doesn't seem to take care of that so hugo build results in failure due to missing bootstrap or Font-Awesome files.

Alternatively the docsy theme can still be kept as a git submodule and you tell hugo to load it as a module using this configuration:

[module]
[[module.imports]]
path = "docsy"
#theme = ["docsy"]

That configuration seems to work fine and hugo builds with no errors but the generated pages doesn't seem right. Here's a test using https://github.com/google/docsy-example :
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions