docsy
docsy copied to clipboard
Error: module "github.com/FortAwesome/Font-Awesome" not found;
I'm very new to hugo. I'm running hugo 0.92.0 and installed docsy as a submodule in the themes directory. When running most hugo commands I get an error about Font-Awesome that seems to prevent any progress. It looks like a missing dependency, but I don't see any additional requirements called out in the docs.
$ hugo server
Error: module "github.com/FortAwesome/Font-Awesome" not found; either add it as a Hugo Module or store it in "/home/user/Public/test/themes".: module does not exist
Most likely this is due to errors introduced in #801. I just submitted a PR that addresses these errors.
Meanwhile you can work around this. Inside your config.toml, identify the following line:
theme = ["docsy"]
Remove this line and replace it with the settings given in the code box below:
[module]
replacements = "github.com/FortAwesome/Font-Awesome -> ., github.com/twbs/bootstrap -> ."
[[module.imports]]
path = "docsy"
Does this solve your issue?
I'll give it a shot. Thanks.
On Sun, Jan 16, 2022 at 4:21 PM Andreas Deininger @.***> wrote:
Most likely this is due to errors introduced in #801 https://github.com/google/docsy/pull/801. I just submitted a PR that addresses these errors.
Meanwhile you can work around this. Inside your config.toml, identify the following line:
theme = ["docsy"]
Remove this line and replace it with the settings given in the code box below:
[module] replacements = "github.com/FortAwesome/Font-Awesome -> ., github.com/twbs/bootstrap -> ." [[module.imports]] path = "docsy"
Does this solve your issue?
— Reply to this email directly, view it on GitHub https://github.com/google/docsy/issues/836#issuecomment-1013988874, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGAAJ6TBYJVKBSNNAQZOILUWNOIPANCNFSM5MBSB5EA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
Most likely this is due to errors introduced in #801. I just submitted a PR that addresses these errors.
Meanwhile you can work around this. Inside your
config.toml, identify the following line:theme = ["docsy"]Remove this line and replace it with the settings given in the code box below:
[module] replacements = "github.com/FortAwesome/Font-Awesome -> ., github.com/twbs/bootstrap -> ." [[module.imports]] path = "docsy"Does this solve your issue?
This resolved my issue. Thanks!!
That resolved it for me as well. Thanks!
You are welcome.
Is this placeholder code and eventually using the theme attribute will work
No, the theme attribute is outdated.
or is this the new format going forward?
Yes, that's the new format, it's essential when using hugo modules, so let's use it in all cases!
I too had this error after updating Docsy submodule:
From https://github.com/google/docsy
c9e8363..b6af369 master -> origin/master
Submodule path 'themes/docsy': checked out 'b6af3699c65dd089f453700bee858c1de7d73dd7'
I tried to fix it using the advice by @strattonbrazil. However, I now have an issue where running the server now doesn't default to the /en (English) at the homepage. My documents are stored under content/en/ and the following setting in my config.toml used to ensure that it defaults to English:
contentDir = "content/en"
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = false
Any solutions for this? I would like the localhost:1313 to treat the content/en/ as the contentDir.
Can this issue be closed?
@amirootyet, I think that you're hitting the same problem I did. Can you try the solution documented here: https://discourse.gohugo.io/t/content-mount-problem-for-single-language-multilingual-site/37215/8?u=chalin, that is:
- Delete the
contentDirentry from your config - Add the following config:
[[module.mounts]] source = "content/en" target = "content"
Closing. Create a new issue if the problem persists.