diff --git a/.drone.yml b/.drone.yml index 8d5cddf..44cc6a2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,7 +25,7 @@ steps: port: 22 command_timeout: 2m script: - - /home/thomas/.nvm/versions/node/v17.4.0/bin/node /home/thomas/.nvm/versions/node/v17.4.0/bin/md-to-pdf --config-file /tmp/resumemd/config.js /tmp/resumemd/Resume.md + - /home/thomas/.nvm/versions/node/v17.4.0/bin/node /home/thomas/.nvm/versions/node/v17.4.0/bin/md-to-pdf --stylesheet stylesheet.css --config-file /tmp/resumemd/config.js /tmp/resumemd/Resume.md - name: return_pdf image: appleboy/drone-scp diff --git a/config.js b/config.js index baed925..2e5d40a 100644 --- a/config.js +++ b/config.js @@ -1,5 +1,4 @@ module.exports = { - stylesheet: ['stylesheet.css'], pdf_options: { format: 'Letter', margin: '0mm', diff --git a/package.json b/package.json index 4d829a0..c5767d0 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "Markdown version of my resume.", "main": "render.js", "scripts": { - "build": "md-to-pdf --config-file config.js --launch-options '{ \"args\": [\"--no-sandbox\", \"--disable-setuid-sandbox\"] }' Resume.md", - "dev": "md-to-pdf --config-file config.js --devtools Resume.md" + "build": "md-to-pdf --config-file config.js --stylesheet stylesheet.css --launch-options '{ \"args\": [\"--no-sandbox\", \"--disable-setuid-sandbox\"] }' Resume.md", + "dev": "md-to-pdf --config-file config.js --stylesheet stylesheet.css --devtools Resume.md" }, "repository": { "type": "git",