Skip to content

Commit

Permalink
presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mivano committed Feb 9, 2023
1 parent 68af4ad commit 16b93b9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Empty file added assets/.keep
Empty file.
15 changes: 15 additions & 0 deletions marp.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const canonicalUrl = process.env.URL || undefined
const ogImage = (() => {
if (canonicalUrl) return `${canonicalUrl}/og-image.jpg`
if (process.env.VERCEL_URL)
return `https://${process.env.VERCEL_URL}/og-image.jpg`

return undefined
})()

module.exports = {
allowLocalFiles: true,
ogImage,
themeSet: 'themes',
url: canonicalUrl,
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"scripts": {
"build": "rimraf public && npm run -s og-image && npm run -s deck",
"deck": "marp --no-stdin PITCHME.md -o public/index.html && ncp assets public/assets",
"og-image": "marp --no-stdin PITCHME.md -o public/og-image.jpg",
"deck": "marp --no-stdin workshop.md -o public/index.html && ncp assets public/assets",
"og-image": "marp --no-stdin workshop.md -o public/og-image.jpg",
"start": "marp -ps .",
"vercel-build": "npm i puppeteer --no-save && MARP_USER=root CHROME_PATH=$(node -e \"console.log(require('puppeteer').executablePath())\") npm run build"
},
Expand Down

0 comments on commit 16b93b9

Please sign in to comment.