From d8957a4023bf47090909bc90b201de784787411e Mon Sep 17 00:00:00 2001 From: Reily Siegel Date: Wed, 11 Jan 2023 12:33:49 -0500 Subject: [PATCH] Use docker to generate PDF, and add CI. --- .drone.yml | 23 +++++++++++++++++++++++ README.org | 4 +--- manifest.scm | 6 ------ startup.el | 6 +++--- 4 files changed, 27 insertions(+), 12 deletions(-) create mode 100644 .drone.yml delete mode 100644 manifest.scm diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..c80d3b3 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,23 @@ +kind: pipeline +name: ccr +type: docker + +steps: + - name: generate-pdf + image: git.axpdsp.org/parliamentarian/bylaw-builder + commands: + - "make" + - "date -I > title" + - name: publish + image: plugins/gitea-release + settings: + base_url: https://git.axpdsp.org + api_key: + from_secret: api_key + files: + - code.pdf + title: title + +trigger: + event: + - tag diff --git a/README.org b/README.org index 48ea87b..c10ff86 100644 --- a/README.org +++ b/README.org @@ -3,7 +3,5 @@ * Generating PDFs A PDF can be generated using the following command: #+begin_src bash -guix shell -m manifest.scm -- make +docker run --rm -v $PWD:/data -w /data git.axpdsp.org/parliamentarian/bylaw-builder make #+end_src -Assuming that [[https://guix.gnu.org/][GNU Guix]] is installed, this command will handle downloading all -dependencies, generating a pdf, and cleaning up temporary files. diff --git a/manifest.scm b/manifest.scm deleted file mode 100644 index cdfd137..0000000 --- a/manifest.scm +++ /dev/null @@ -1,6 +0,0 @@ -;; What follows is a "manifest" equivalent to the command line you gave. -;; You can store it in a file that you may then pass to any 'guix' command -;; that accepts a '--manifest' (or '-m') option. - -(specifications->manifest - (list "emacs-next" "texlive" "make" "git")) diff --git a/startup.el b/startup.el index 1b139ac..81db46f 100644 --- a/startup.el +++ b/startup.el @@ -6,12 +6,12 @@ ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}")))) -(setopt org-latex-hyperref-template " +(setq org-latex-hyperref-template " \\hypersetup{\n pdfauthor={%a},\n pdftitle={%t},\n pdfkeywords={%k}, pdfsubject={%d},\n pdfcreator={%c},\n pdflang={%L},\n colorlinks=true}\n") -(keymap-local-set - "C-c t" +(local-set-key + (kbd "C-c t") (lambda nil (interactive) (save-match-data