You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot generate the website using either hugo or the generatepdf.js script.
Expected behavior
Having the same result as on the demo website.
How to reproduce
I've probably missed something but when following the instructions on the README I'm not able to generate the PDF. Those are the commands I ran:
git clone https://github.com/gohugoio/hugoBasicExample.git
cd hugoBasicExample
git clone --recursive https://github.com/cssandstuff/hugo-theme-winning.git themes/winning
cp themes/winning/exampleSite/content/_index.md content/_index.md
HUGO_THEME=winning hugo server
npm i html-pdf -g
cp themes/winning/exampleSite/generatepdf.js .
node ./generatepdf.js
But I get the following error code:
internal/fs/utils.js:307
throw err;
^
Error: ENOENT: no such file or directory, open './public/index.html'
at Object.openSync (fs.js:476:3)
at Object.readFileSync (fs.js:377:35)
at Object.<anonymous> (/home/snow/winning/test/hugoBasicExample/generatepdf.js:3:15)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: './public/index.html'
}
Then I tried to generate the public HTML files using hugo but that gave me the following error:
Start building sites …
Total in 11 ms
Error: Error building site: "/home/snow/winning/test/hugoBasicExample/content/_index.md:7:1": failed to extract shortcode: template for shortcode "grid" not found
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered:
snowc0de
changed the title
Cannot generate PDF
Cannot generate the PDF or the website
May 13, 2021
An idea of how it may be solved, is there some incompatibility with versions? Also, is there even still people that uses this? The last commit was 1 year ago and the last active issue was also created one year ago...
Environement
Current behavior
Cannot generate the website using either
hugo
or thegeneratepdf.js
script.Expected behavior
Having the same result as on the demo website.
How to reproduce
I've probably missed something but when following the instructions on the README I'm not able to generate the PDF. Those are the commands I ran:
But I get the following error code:
Then I tried to generate the public HTML files using
hugo
but that gave me the following error:Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: