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

Error: from config: failed to resolve output format "print" from site config #166

Open
bhawanasachdeva opened this issue Mar 29, 2022 · 6 comments

Comments

@bhawanasachdeva
Copy link

I have added docsy theme to my hugo site while running the below command
hugo serve -D

I am getting below error :
Error: from config: failed to resolve output format "print" from site config

@wtchangdm
Copy link

Just remove the "print" in the following section of config.toml:

# Comment out if you don't want the "print entire section" link enabled.
[outputs]
section = ["HTML", "print", "RSS"]

@JamesCacioppo
Copy link

I had the same error. When I followed the advise above I got the following error:

shortcode: template for shortcode "blocks/cover" not found

When using the provided compose file everything works fine. Investigating my local env installed with brew:

hugo version
hugo v0.97.3+extended darwin/amd64 BuildDate=unknown

@mcsage
Copy link

mcsage commented Apr 27, 2022

Check if all submodules are in place
git submodule update --init --recursive

@froboy
Copy link

froboy commented May 16, 2022

@mcsage I'm having the same issue but I've already switched to the hugo module instead of git submodules. (more info in the linked comment) The only thing I see consistent about the issues is that it's happening in Mac builds but not linux.

@divinerites
Copy link

divinerites commented Jun 14, 2022

Same issue here (using hugo module and not submodules.
Strange because it worked some days ago.

  1. I need to remove the printformat.
  2. Then I can hugo mod get -u and the "block/cover" problem is no more.
  • hugo v0.100.2
  • Stock docsy-example latest from April 7 2022
  • Using hugo module
$ hugo mod graph
github.com/google/docsy-example github.com/google/[email protected]
github.com/google/docsy-example github.com/google/docsy/[email protected]
github.com/google/docsy/[email protected] github.com/twbs/[email protected]+incompatible
github.com/google/docsy/[email protected] github.com/FortAwesome/[email protected]

@LisaFC
Copy link
Collaborator

LisaFC commented Jul 27, 2022

This seems to be some kind of cache issue (it's cropped up a few times) - looks like @ivan3bx has come up with a workaround here for those who aren't on the duplicate bug in the theme repo: google/docsy#805

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants