Compare commits
1 Commits
36e6f6b8c0
...
49786e0536
| Author | SHA1 | Date |
|---|---|---|
|
|
49786e0536 |
22
.drone.yml
22
.drone.yml
|
|
@ -1,22 +0,0 @@
|
||||||
kind: pipeline
|
|
||||||
name: ccr
|
|
||||||
type: docker
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: generate-pdf
|
|
||||||
image: git.axpdsp.org/parliamentarian/bylaw-builder
|
|
||||||
commands:
|
|
||||||
- "make"
|
|
||||||
- name: publish
|
|
||||||
image: plugins/gitea-release
|
|
||||||
settings:
|
|
||||||
base_url: https://git.axpdsp.org
|
|
||||||
api_key:
|
|
||||||
from_secret: api_key
|
|
||||||
files:
|
|
||||||
- bylaws.pdf
|
|
||||||
title: $DRONE_TAG
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
|
|
@ -3,5 +3,7 @@
|
||||||
* Generating PDFs
|
* Generating PDFs
|
||||||
A PDF can be generated using the following command:
|
A PDF can be generated using the following command:
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
docker run --rm -v $PWD:/data -w /data git.axpdsp.org/parliamentarian/bylaw-builder make
|
guix shell -m manifest.scm -- make
|
||||||
#+end_src
|
#+end_src
|
||||||
|
Assuming that [[https://guix.gnu.org/][GNU Guix]] is installed, this command will handle downloading all
|
||||||
|
dependencies, generating PDF, and cleaning up temporary files.
|
||||||
|
|
|
||||||
6
local.el
6
local.el
|
|
@ -6,12 +6,12 @@
|
||||||
("\\chapter{%s}" . "\\chapter*{%s}")
|
("\\chapter{%s}" . "\\chapter*{%s}")
|
||||||
("\\section{%s}" . "\\section*{%s}"))))
|
("\\section{%s}" . "\\section*{%s}"))))
|
||||||
|
|
||||||
(setq org-latex-hyperref-template "
|
(setopt org-latex-hyperref-template "
|
||||||
\\hypersetup{\n pdfauthor={%a},\n pdftitle={%t},\n pdfkeywords={%k},
|
\\hypersetup{\n pdfauthor={%a},\n pdftitle={%t},\n pdfkeywords={%k},
|
||||||
pdfsubject={%d},\n pdfcreator={%c},\n pdflang={%L},\n colorlinks=true}\n")
|
pdfsubject={%d},\n pdfcreator={%c},\n pdflang={%L},\n colorlinks=true}\n")
|
||||||
|
|
||||||
(local-set-key
|
(keymap-local-set
|
||||||
(kbd "C-c t")
|
"C-c t"
|
||||||
(lambda nil
|
(lambda nil
|
||||||
(interactive)
|
(interactive)
|
||||||
(save-match-data
|
(save-match-data
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
;; 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"))
|
||||||
Loading…
Reference in New Issue