mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
Update website/scripts/build-static-content.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
9f9f9bc6a7
commit
1ff944b69b
1 changed files with 1 additions and 1 deletions
2
website/scripts/build-static-content.js
vendored
2
website/scripts/build-static-content.js
vendored
|
|
@ -759,7 +759,7 @@ module.exports = {
|
|||
throw new Error(`Failed compiling markdown content: A whitepaper article is missing a 'formCallToAction' meta tag at ${path.join(topLvlRepoPath, pageSourcePath)}. To resolve, add a formCallToAction meta tag with a value set to the heading that should be displayed on the form to download the whitepaper (e.g., "Learn how GitOps transforms device management") and try running this script again.`);
|
||||
}
|
||||
if(!embeddedMetadata.whitepaperFilename){
|
||||
throw new Error(`Failed compiling markdown content: A whitepaper article is missing a 'whitepaperFilename' meta tag at ${path.join(topLvlRepoPath, pageSourcePath)}. To resolve, add a whitepaperFilename meta tag with a value that is the filename of a PDF whitepaper in the website/assets/pdf folder and try running this script again.`);
|
||||
throw new Error(`Failed compiling markdown content: A whitepaper article is missing a 'whitepaperFilename' meta tag at ${path.join(topLvlRepoPath, pageSourcePath)}. To resolve, add a whitepaperFilename meta tag with a value that is the filename of a PDF whitepaper in the website/assets/pdfs folder and try running this script again.`);
|
||||
} else {
|
||||
let whitePaperPdfExists = await sails.helpers.fs.exists(path.join(topLvlRepoPath, 'website/assets/pdfs/'+embeddedMetadata.whitepaperFilename));
|
||||
if(!whitePaperPdfExists){
|
||||
|
|
|
|||
Loading…
Reference in a new issue