docsy-example icon indicating copy to clipboard operation
docsy-example copied to clipboard

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

Open bhawanasachdeva opened this issue 2 years ago • 6 comments

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

bhawanasachdeva avatar Mar 29 '22 06:03 bhawanasachdeva

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"]

wtchangdm avatar Mar 30 '22 06:03 wtchangdm

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

JamesCacioppo avatar Apr 26 '22 00:04 JamesCacioppo

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

mcsage avatar Apr 27 '22 08:04 mcsage

@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.

froboy avatar May 16 '22 18:05 froboy

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]

divinerites avatar Jun 14 '22 16:06 divinerites

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: https://github.com/google/docsy/issues/805

LisaFC avatar Jul 27 '22 15:07 LisaFC