fix: export pdf

This commit is contained in:
Ryan Yin 2023-08-15 15:32:28 +08:00
parent cadfceaae4
commit d88a30e973
2 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,7 @@
# Set Puppeteer to not download Chrome, cause it doesn't work on NixOS # Set Puppeteer to not download Chrome, cause it doesn't work on NixOS
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
# Set Puppeteer to use Chromium from Nixpkgs # Set Puppeteer to use Chromium from Nixpkgs
export PUPPETEER_EXECUTABLE_PATH=${pkgs.chromium.outPath}/bin/chromium
''; '';
}; };
}); });

View File

@ -1,7 +1,8 @@
{ {
"type": "module", "type": "module",
"devDependencies": { "devDependencies": {
"vitepress": "1.0.0-rc.4" "vitepress": "1.0.0-rc.4",
"vitepress-export-pdf": "1.0.0-beta.0"
}, },
"scripts": { "scripts": {
"docs:dev": "vitepress dev docs", "docs:dev": "vitepress dev docs",