add netlify publish

This commit is contained in:
Simon Bruder 2018-04-28 12:27:08 +00:00
parent b148784d21
commit 6f1f854406
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
9 changed files with 53 additions and 3933 deletions

View file

@ -1,57 +1,27 @@
pipeline: pipeline:
build-latex: inkscape:
image: jess/texlive image: jess/inkscape
commands: commands:
- apt-get update - apt-get update && apt-get -y install make
- apt-get install -y --no-install-recommends wget rubber make inkscape - ./compile.sh inkscape
latex:
image: tianon/latex
commands:
- apt-get update && apt-get -y install wget
- ./compile.sh latex - ./compile.sh latex
build-libreoffice: libreoffice:
image: olbat/libreoffice image: jess/libreoffice
commands: commands:
- apt-get update - apk add --no-cache make
- apt-get install -y --no-install-recommends wget make
- wget -P /usr/share/fonts -c -q
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraMono-Bold.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraMono-Medium.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraMono-Regular.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-Bold.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-BoldItalic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-Book.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-BookItalic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-Eight.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-EightItalic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-ExtraBold.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-ExtraBoldItalic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-ExtraLight.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-ExtraLightItalic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-Four.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-FourItalic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-Hair.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-HairItalic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-Heavy.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-HeavyItalic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-Light.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-Italic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-LightItalic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-Medium.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-MediumItalic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-Regular.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-SemiBold.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-SemiBoldItalic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-Thin.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-ThinItalic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-Two.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-TwoItalic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-Ultra.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-UltraItalic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-UltraLightItalic.ttf
https://cdn.jsdelivr.net/npm/mozilla-fira-pack/Fira/ttf/FiraSans-UltraLight.ttf
- ./compile.sh libreoffice - ./compile.sh libreoffice
build-revealjs: revealjs:
image: node image: node
commands: commands:
- apt-get update
- apt-get install make
- ./compile.sh revealjs - ./compile.sh revealjs
publish:
image: sbruder/drone-netlify
secrets: [ "netlify_key" ]

2
.gitignore vendored
View file

@ -1,6 +1,8 @@
# LaTeX build files # LaTeX build files
/latex/**/*.aux /latex/**/*.aux
/latex/**/*.eps /latex/**/*.eps
/latex/**/*.fdb_latexmk
/latex/**/*.fls
/latex/**/*.log /latex/**/*.log
/latex/**/*.nav /latex/**/*.nav
/latex/**/*.out /latex/**/*.out

1
.netlify Normal file
View file

@ -0,0 +1 @@
{"site_id":"0fc5c646-d2c5-4e08-8496-3389d55ac4f5","path":"./"}

View file

@ -93,7 +93,7 @@ revealjs/%/index.pdf: revealjs/%/index.html
revealjs/node_modules/phantomjs-prebuilt/bin/phantomjs revealjs/node_modules/reveal.js/plugin/print-pdf/print-pdf.js file://$(PWD)/$<?print-pdf $@ revealjs/node_modules/phantomjs-prebuilt/bin/phantomjs revealjs/node_modules/reveal.js/plugin/print-pdf/print-pdf.js file://$(PWD)/$<?print-pdf $@
latex/%/index.pdf: latex/%/index.tex latex/%/index.pdf: latex/%/index.tex
(cd $(@D) && rubber --module xelatex index.tex) (cd $(@D) && latexmk -xelatex index.tex)
%.eps: %.svg %.eps: %.svg
inkscape -D -z --file="$<" --export-eps="$@" inkscape -D -z --file="$<" --export-eps="$@"

View file

@ -2,14 +2,17 @@
set -e set -e
case "$1" in case "$1" in
"inkscape")
for presi in latex/*;do
for file in $presi/*.svg;do
[ -e "$file" ] && make "${file%.svg}".eps || true
done
done
;;
"latex") "latex")
make fonts make fonts
for presi in latex/*;do for presi in latex/*;do
for file in $presi/*.svg;do
[ -e "$file" ] && make "${file%.svg}".eps
done
[ -e "$presi/index.tex" ] && make "$presi/index.pdf" || true [ -e "$presi/index.tex" ] && make "$presi/index.pdf" || true
done done
;; ;;
@ -27,6 +30,6 @@ case "$1" in
;; ;;
*) *)
echo "USAGE: $0 [MODE]" echo "USAGE: $0 [MODE]"
echo "modes: latex libreoffice revealjs" echo "modes: inkscape latex libreoffice revealjs"
;; ;;
esac esac

View file

@ -18,27 +18,27 @@
%\usetheme[numbering=none, progressbar=frametitle, background=light]{metropolis} %\usetheme[numbering=none, progressbar=frametitle, background=light]{metropolis}
\usepackage{fontspec} \usepackage{fontspec}
\setsansfont{}[ % Default \setsansfont{FiraSans}[ % Default
Path = /home/simon/.fonts/non-free/FF Din/, Path = ../fonts/,
Extension = .ttf, Extension = .ttf,
UprightFont = DINW07-Regular, UprightFont = *-Regular,
BoldFont = DINW07-Bold, BoldFont = *-Bold,
ItalicFont = DINW07-Italic ItalicFont = *-Italic
] ]
\setmainfont{}[ % Activate with \textrm{} %\setmainfont{Vollkorn}[ % Activate with \textrm{}
Path = /usr/share/fonts/truetype/vollkorn/, % Path = /usr/share/fonts/truetype/vollkorn/,
Extension = .ttf,
UprightFont = Vollkorn-Regular,
BoldFont = Vollkorn-Bold,
ItalicFont = Vollkorn-Italic
]
%\setmonofont{}[ % Activate with \texttt{}
% Path = /home/simon/.fonts/typecatcher/,
% Extension = .ttf, % Extension = .ttf,
% UprightFont = Roboto Mono_regular, % UprightFont = *-Regular,
% BoldFont = Roboto Mono_300, % BoldFont = *-Bold,
% ItalicFont = Roboto Mono_italic % ItalicFont = *-Italic
%] %]
\setmonofont{FiraMono}[ % Activate with \texttt{}
Path = ../fonts/,
Extension = .ttf,
UprightFont = *-Regular,
BoldFont = *-Bold,
ItalicFont = *-Bold
]
\setbeamercovered{transparent} \setbeamercovered{transparent}
\beamertemplatenavigationsymbolsempty \beamertemplatenavigationsymbolsempty
@ -153,13 +153,13 @@
\begin{frame} \begin{frame}
\begin{itemize} \begin{itemize}
\item{CC-BY-SA 3.0 Wilco Oelen\footnote{http://woelen.homescience.net/science/chem/compounds/bromine.jpg}} \item{\url{http://woelen.homescience.net/science/chem/compounds/bromine.jpg}}
\item{Armtuk: Periodic Table Armtuk3.svg in Wikimedia Commons (CC-BY-SA 3.0)\footnote{https://commons.wikimedia.org/wiki/File:Periodic\_Table\_Armtuk3.svg}} \item{\url{https://commons.wikimedia.org/wiki/File:Periodic\_Table\_Armtuk3.svg}}
\item{ECHA European Chemicals Agency\footnote{https://www.echa.europa.eu/web/guest/brief-profile/-/briefprofile/100.028.890}} \item{\url{https://www.echa.europa.eu/web/guest/brief-profile/-/briefprofile/100.028.890}}
\item{PubChem Project\footnote{https://pubchem.ncbi.nlm.nih.gov/}} \item{\url{https://pubchem.ncbi.nlm.nih.gov/}}
\item{Wolfram|Alpha\footnote{https://www.wolframalpha.com/}} \item{\url{https://www.wolframalpha.com/}}
\item{Bromine: Ocurrence\footnote{http://nautilus.fis.uc.pt/st2.5/scenes-e/elem/e03520.html}} \item{\url{http://nautilus.fis.uc.pt/st2.5/scenes-e/elem/e03520.html}}
\item{Duden | Brom\footnote{https://www.duden.de/rechtschreibung/Brom}} \item{\url{https://www.duden.de/rechtschreibung/Brom}}
\end{itemize} \end{itemize}
\end{frame} \end{frame}

File diff suppressed because it is too large Load diff

View file

@ -8,7 +8,6 @@
}, },
"dependencies": { "dependencies": {
"highlight.js": "^9.12.0", "highlight.js": "^9.12.0",
"npm": "^5.8.0",
"phantomjs-prebuilt": "^2.1.16", "phantomjs-prebuilt": "^2.1.16",
"reveal.js": "^3.6.0" "reveal.js": "^3.6.0"
}, },

Binary file not shown.