test
|
@ -1,16 +1,11 @@
|
||||||
compile_pdf:
|
image: aergus/latex # use a Docker image for LaTeX from https://hub.docker.com/
|
||||||
stage: build
|
|
||||||
image: timnn/texlive # use a Docker image for LaTeX from https://hub.docker.com/
|
|
||||||
script: pdflatex main.tex # build the pdf just as you would on your computer
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- main.pdf # instruct GitLab to keep the main.pdf file
|
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
variables:
|
||||||
|
USER: "gitlab-runner"
|
||||||
script:
|
script:
|
||||||
- mkdir public # create a folder called public
|
- ./compile.sh # build the pdf
|
||||||
- cp main.pdf public # copy the pdf file into the public folder
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public # instruct GitLab to keep the public folder
|
- public # instruct GitLab to keep the public folder
|
||||||
|
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 158 KiB After Width: | Height: | Size: 158 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 105 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 121 KiB |
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 105 KiB |
Before Width: | Height: | Size: 190 KiB After Width: | Height: | Size: 190 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 221 KiB After Width: | Height: | Size: 221 KiB |
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 326 KiB After Width: | Height: | Size: 326 KiB |
|
@ -2,9 +2,13 @@
|
||||||
|
|
||||||
# Pour compiler tous les fichiers sources du dépot:
|
# Pour compiler tous les fichiers sources du dépot:
|
||||||
|
|
||||||
find . -name "main.tex" -execdir sh -c " pwd && latexmk {} -pdf main.tex -e '$latex=q/latex %O -shell-escape %S/' -quiet | grep 'Latexmk'" \;
|
find . -name "main.tex" -execdir sh -c "pwd && latexmk {} -pdf main.tex -e '$latex=q/latex %O -shell-escape %S/' -quiet | grep 'Latexmk'" \;
|
||||||
|
|
||||||
|
mkdir "public"
|
||||||
|
for i in `find . -maxdepth 1 -type d -regex \.\/[0-9].*?`;do
|
||||||
|
cp $i/Cours/main.pdf ./public/${i:2}.pdf;
|
||||||
|
done;
|
||||||
#clean up :
|
#clean up :
|
||||||
shopt -s globstar
|
shopt -s globstar
|
||||||
rm -f **/*.aux **/*.log **/*.out
|
#rm -f **/*.aux **/*.log **/*.out
|
||||||
#**/*.fls **/*.fdb_latexmk **/*.toc
|
#**/*.fls **/*.fdb_latexmk **/*.toc
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
\NeedsTeXFormat{LaTeX2e}
|
||||||
\ProvidesClass{cours}[2019/01/09 LaTeX class for Lessons]
|
\ProvidesClass{../../cours}[2019/01/09 LaTeX class for Lessons]
|
||||||
\makeatletter
|
\makeatletter
|
||||||
% Base Class
|
% Base Class
|
||||||
|
|
||||||
|
|