Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wlai-axway opened this issue Jun 11, 2020 · 3 comments
Closed

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

wlai-axway opened this issue Jun 11, 2020 · 3 comments
Labels

Comments

@wlai-axway
Copy link

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

@LisaFC
Copy link
Collaborator

LisaFC commented Jun 12, 2020

Hmm, I'll have a look. We built the theme before Hugo modules existed so it may need some tweaking to work with them.

@d-henn
Copy link

d-henn commented Nov 22, 2020

Is this still something being looked at? Would love to be able to convert to hugo modules!

@deining
Copy link
Collaborator

deining commented Mar 8, 2022

Support for using the theme as hugo module was introduced with #871, so this ticket can be closed.

@deining deining closed this as completed Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants