diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index ab295b3..0000000 --- a/.drone.yml +++ /dev/null @@ -1,49 +0,0 @@ -kind: pipeline -name: create_pdf_release - -steps: - - name: rebuild_cache - image: appleboy/drone-sftp-cache - settings: - server: 192.168.10.5 - port: 22 - username: thomas - password: - from_secret: ssh_password - path: /tmp/resumemd - rebuild: true - mount: - - src - - - name: convert - image: appleboy/drone-ssh - settings: - host: 192.168.10.5 - username: thomas - password: - from_secret: ssh_password - 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 --stylesheet /tmp/resumemd/stylesheet.css --config-file /tmp/resumemd/config.js /tmp/resumemd/Resume.md - - - name: restore_cache - image: appleboy/drone-sftp-cache - settings: - server: 192.168.10.5 - port: 22 - username: thomas - password: - from_secret: ssh_password - path: /tmp/resumemd - restore: true - mount: - - src - - - name: gitea_release - image: plugins/gitea-release - settings: - api_key: - from_secret: api_key - base_url: https://git.thomaspcole.com - files: Resume.pdf \ No newline at end of file diff --git a/package.json b/package.json index c5767d0..c686dd9 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 --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" + "build": "md-to-pdf --config-file src/config.js --launch-options '{ \"args\": [\"--no-sandbox\", \"--disable-setuid-sandbox\"] }' src/Resume.md", + "dev": "md-to-pdf --config-file src/config.js --devtools Resume.md" }, "repository": { "type": "git", diff --git a/src/config.js b/src/config.js index baed925..5131cbd 100644 --- a/src/config.js +++ b/src/config.js @@ -1,5 +1,5 @@ module.exports = { - stylesheet: ['stylesheet.css'], + stylesheet: ['src/stylesheet.css'], pdf_options: { format: 'Letter', margin: '0mm',