add netlify publish
This commit is contained in:
parent
b148784d21
commit
6f1f854406
64
.drone.yml
64
.drone.yml
|
@ -1,57 +1,27 @@
|
|||
pipeline:
|
||||
build-latex:
|
||||
image: jess/texlive
|
||||
inkscape:
|
||||
image: jess/inkscape
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get install -y --no-install-recommends wget rubber make inkscape
|
||||
- apt-get update && apt-get -y install make
|
||||
- ./compile.sh inkscape
|
||||
|
||||
latex:
|
||||
image: tianon/latex
|
||||
commands:
|
||||
- apt-get update && apt-get -y install wget
|
||||
- ./compile.sh latex
|
||||
|
||||
build-libreoffice:
|
||||
image: olbat/libreoffice
|
||||
libreoffice:
|
||||
image: jess/libreoffice
|
||||
commands:
|
||||
- apt-get update
|
||||
- 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
|
||||
- apk add --no-cache make
|
||||
- ./compile.sh libreoffice
|
||||
|
||||
build-revealjs:
|
||||
revealjs:
|
||||
image: node
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get install make
|
||||
- ./compile.sh revealjs
|
||||
|
||||
publish:
|
||||
image: sbruder/drone-netlify
|
||||
secrets: [ "netlify_key" ]
|
||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,6 +1,8 @@
|
|||
# LaTeX build files
|
||||
/latex/**/*.aux
|
||||
/latex/**/*.eps
|
||||
/latex/**/*.fdb_latexmk
|
||||
/latex/**/*.fls
|
||||
/latex/**/*.log
|
||||
/latex/**/*.nav
|
||||
/latex/**/*.out
|
||||
|
|
1
.netlify
Normal file
1
.netlify
Normal file
|
@ -0,0 +1 @@
|
|||
{"site_id":"0fc5c646-d2c5-4e08-8496-3389d55ac4f5","path":"./"}
|
2
Makefile
2
Makefile
|
@ -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 $@
|
||||
|
||||
latex/%/index.pdf: latex/%/index.tex
|
||||
(cd $(@D) && rubber --module xelatex index.tex)
|
||||
(cd $(@D) && latexmk -xelatex index.tex)
|
||||
|
||||
%.eps: %.svg
|
||||
inkscape -D -z --file="$<" --export-eps="$@"
|
||||
|
|
13
compile.sh
13
compile.sh
|
@ -2,14 +2,17 @@
|
|||
set -e
|
||||
|
||||
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")
|
||||
make fonts
|
||||
|
||||
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
|
||||
done
|
||||
;;
|
||||
|
@ -27,6 +30,6 @@ case "$1" in
|
|||
;;
|
||||
*)
|
||||
echo "USAGE: $0 [MODE]"
|
||||
echo "modes: latex libreoffice revealjs"
|
||||
echo "modes: inkscape latex libreoffice revealjs"
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -18,27 +18,27 @@
|
|||
%\usetheme[numbering=none, progressbar=frametitle, background=light]{metropolis}
|
||||
|
||||
\usepackage{fontspec}
|
||||
\setsansfont{}[ % Default
|
||||
Path = /home/simon/.fonts/non-free/FF Din/,
|
||||
\setsansfont{FiraSans}[ % Default
|
||||
Path = ../fonts/,
|
||||
Extension = .ttf,
|
||||
UprightFont = DINW07-Regular,
|
||||
BoldFont = DINW07-Bold,
|
||||
ItalicFont = DINW07-Italic
|
||||
UprightFont = *-Regular,
|
||||
BoldFont = *-Bold,
|
||||
ItalicFont = *-Italic
|
||||
]
|
||||
\setmainfont{}[ % Activate with \textrm{}
|
||||
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/,
|
||||
%\setmainfont{Vollkorn}[ % Activate with \textrm{}
|
||||
% Path = /usr/share/fonts/truetype/vollkorn/,
|
||||
% Extension = .ttf,
|
||||
% UprightFont = Roboto Mono_regular,
|
||||
% BoldFont = Roboto Mono_300,
|
||||
% ItalicFont = Roboto Mono_italic
|
||||
% UprightFont = *-Regular,
|
||||
% BoldFont = *-Bold,
|
||||
% ItalicFont = *-Italic
|
||||
%]
|
||||
\setmonofont{FiraMono}[ % Activate with \texttt{}
|
||||
Path = ../fonts/,
|
||||
Extension = .ttf,
|
||||
UprightFont = *-Regular,
|
||||
BoldFont = *-Bold,
|
||||
ItalicFont = *-Bold
|
||||
]
|
||||
|
||||
\setbeamercovered{transparent}
|
||||
\beamertemplatenavigationsymbolsempty
|
||||
|
@ -153,13 +153,13 @@
|
|||
|
||||
\begin{frame}
|
||||
\begin{itemize}
|
||||
\item{CC-BY-SA 3.0 Wilco Oelen\footnote{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{ECHA – European Chemicals Agency\footnote{https://www.echa.europa.eu/web/guest/brief-profile/-/briefprofile/100.028.890}}
|
||||
\item{PubChem Project\footnote{https://pubchem.ncbi.nlm.nih.gov/}}
|
||||
\item{Wolfram|Alpha\footnote{https://www.wolframalpha.com/}}
|
||||
\item{Bromine: Ocurrence\footnote{http://nautilus.fis.uc.pt/st2.5/scenes-e/elem/e03520.html}}
|
||||
\item{Duden | Brom\footnote{https://www.duden.de/rechtschreibung/Brom}}
|
||||
\item{\url{http://woelen.homescience.net/science/chem/compounds/bromine.jpg}}
|
||||
\item{\url{https://commons.wikimedia.org/wiki/File:Periodic\_Table\_Armtuk3.svg}}
|
||||
\item{\url{https://www.echa.europa.eu/web/guest/brief-profile/-/briefprofile/100.028.890}}
|
||||
\item{\url{https://pubchem.ncbi.nlm.nih.gov/}}
|
||||
\item{\url{https://www.wolframalpha.com/}}
|
||||
\item{\url{http://nautilus.fis.uc.pt/st2.5/scenes-e/elem/e03520.html}}
|
||||
\item{\url{https://www.duden.de/rechtschreibung/Brom}}
|
||||
\end{itemize}
|
||||
\end{frame}
|
||||
|
||||
|
|
3855
revealjs/package-lock.json
generated
3855
revealjs/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -8,7 +8,6 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"highlight.js": "^9.12.0",
|
||||
"npm": "^5.8.0",
|
||||
"phantomjs-prebuilt": "^2.1.16",
|
||||
"reveal.js": "^3.6.0"
|
||||
},
|
||||
|
|
Binary file not shown.
Reference in a new issue