Giter Club home page Giter Club logo

Comments (11)

scottcwilson avatar scottcwilson commented on June 12, 2024 6

I also got the Failed to extract shortcode issue, but hugo mod clean --all did fix it for me.

from docsy-example.

willwade avatar willwade commented on June 12, 2024 2

im being an idiot - I didnt do a subclone..

from docsy-example.

prabhatsharma avatar prabhatsharma commented on June 12, 2024 1

@khareyash05 Below command should help you.

git clone https://github.com/google/docsy-example docsy --recursive
cd docsy
hugo serve

from docsy-example.

deining avatar deining commented on June 12, 2024 1

Hi deining, thank you for your suggestion. Unfortunately, the result is still the same.

MacBook-Air-Early-2015:docsy takeyuki$ npm install

up to date, audited 205 packages in 3s

53 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
MacBook-Air-Early-2015:docsy takeyuki$ hugo serve
Built in 40 ms
Error: Error building site: "/Volumes/devtmp/MyHugo/docsy/content/en/_index.md:5:1": failed to extract shortcode: template for shortcode "blocks/cover" not found

What version of hugo you are using? Your version of Hugo must be v0.110.0 or above. See the section Troubleshooting in the README.md of the project.

from docsy-example.

khareyash05 avatar khareyash05 commented on June 12, 2024

Hey @willwade Could you pls help me with this I am getting the same error

from docsy-example.

chalin avatar chalin commented on June 12, 2024

It works fine for me. After doing a cd into the repo, make sure that you first run npm install.

from docsy-example.

afandian avatar afandian commented on June 12, 2024

I'm seeing this. I got my site configured, up and running a few days ago and then it stopped working a few days later. Like this ticket, I see:

hugo v0.103.1-b665f1e8f16bf043b9d3c087a60866159d71b48d+extended darwin/arm64 BuildDate=2022-09-18T13:19:01Z VendorInfo=gohugoio
Error: Error building site: "path_to_repo/content/_index.html:7:1": failed to extract shortcode: template for shortcode "blocks/cover" not found

And like google/docsy#805 I got an error about print format being unrecognised, which I 'fixed' by removing that from the toml file. I tried removing the temp dir per that ticket, no dice.

Here's another example google/docsy#986 but hugo mod clean --all doesn't fix it for me.

This feels like it's an intermittent problem, though I have no idea what the cause is.

from docsy-example.

UedaTakeyuki avatar UedaTakeyuki commented on June 12, 2024

@khareyash05 Below command should help you.

git clone https://github.com/google/docsy-example docsy --recursive
cd docsy
hugo serve

Hello, I'm new to docsy and the issue is not fixed with --recursive as follows:

MacBook-Air-Early-2015:MyHugo takeyuki$ git clone https://github.com/google/docsy-example docsy --recursive
Cloning into 'docsy'...
remote: Enumerating objects: 1565, done.
remote: Counting objects: 100% (150/150), done.
remote: Compressing objects: 100% (92/92), done.
remote: Total 1565 (delta 60), reused 118 (delta 46), pack-reused 1415
Receiving objects: 100% (1565/1565), 2.61 MiB | 5.48 MiB/s, done.
Resolving deltas: 100% (762/762), done.
MacBook-Air-Early-2015:MyHugo takeyuki$ cd docsy
MacBook-Air-Early-2015:docsy takeyuki$ hugo serve
Built in 50 ms
Error: Error building site: "/Volumes/devtmp/MyHugo/docsy/content/en/_index.md:5:1": failed to extract shortcode: template for shortcode "blocks/cover" not found

Thank you for your suggestion.

from docsy-example.

deining avatar deining commented on June 12, 2024

Hello, I'm new to docsy and the issue is not fixed with --recursive as follows:

MacBook-Air-Early-2015:MyHugo takeyuki$ git clone https://github.com/google/docsy-example docsy --recursive
Cloning into 'docsy'...
remote: Enumerating objects: 1565, done.
remote: Counting objects: 100% (150/150), done.
remote: Compressing objects: 100% (92/92), done.
remote: Total 1565 (delta 60), reused 118 (delta 46), pack-reused 1415
Receiving objects: 100% (1565/1565), 2.61 MiB | 5.48 MiB/s, done.
Resolving deltas: 100% (762/762), done.
MacBook-Air-Early-2015:MyHugo takeyuki$ cd docsy
MacBook-Air-Early-2015:docsy takeyuki$ hugo serve
Built in 50 ms
Error: Error building site: "/Volumes/devtmp/MyHugo/docsy/content/en/_index.md:5:1": failed to extract shortcode: template for shortcode "blocks/cover" not found

Thank you for your suggestion.

As suggested above:

Run npm install to install dependencies. Does this cure your problem?

from docsy-example.

UedaTakeyuki avatar UedaTakeyuki commented on June 12, 2024

Hi deining, thank you for your suggestion.
Unfortunately, the result is still the same.

MacBook-Air-Early-2015:docsy takeyuki$ npm install

up to date, audited 205 packages in 3s

53 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
MacBook-Air-Early-2015:docsy takeyuki$ hugo serve
Built in 40 ms
Error: Error building site: "/Volumes/devtmp/MyHugo/docsy/content/en/_index.md:5:1": failed to extract shortcode: template for shortcode "blocks/cover" not found

from docsy-example.

UedaTakeyuki avatar UedaTakeyuki commented on June 12, 2024

Thank you deining! It was 0.71.1, and running well after updated to 0.120.3.
I really appreciate your suggestons.

from docsy-example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.