Compare commits
2 Commits
drone-test
...
test-parco
Author | SHA1 | Date | |
---|---|---|---|
bed179c84c | |||
65040b39dc |
44
.drone.yml
Normal file
44
.drone.yml
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: submodules
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git submodule init
|
||||||
|
- git submodule update --recursive --remote
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
|
- name: pandoc
|
||||||
|
image: pandoc/alpine:2.14
|
||||||
|
commands:
|
||||||
|
- ls
|
||||||
|
- sh build-pandoc.sh latex > user-manual.tex
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
|
- name: build-latex
|
||||||
|
image: ghcr.io/xu-cheng/texlive-full:latest
|
||||||
|
commands:
|
||||||
|
- latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode -xelatex user-manual.tex
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
|
- name: release
|
||||||
|
image: plugins/gitea-release
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea_key
|
||||||
|
base_url: https://gitea.champs-libres.be
|
||||||
|
files:
|
||||||
|
- user-manual.pdf
|
||||||
|
checksum:
|
||||||
|
- sha512
|
||||||
|
title: ${DRONE_COMMIT_REF}
|
||||||
|
prerelease: true
|
||||||
|
when:
|
||||||
|
event: tag
|
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,2 @@
|
|||||||
build/*
|
build/*
|
||||||
user-manual.pdf
|
user-manual.*
|
||||||
|
@@ -18,3 +18,8 @@ Le fichier généré est `user-manual.pdf`
|
|||||||
|
|
||||||
L'utilisateur qui exécute la compilation est, par défaut, l'utilisateur ayant l'id `1000`.
|
L'utilisateur qui exécute la compilation est, par défaut, l'utilisateur ayant l'id `1000`.
|
||||||
|
|
||||||
|
## Dépendances latex
|
||||||
|
|
||||||
|
### Awesomebox
|
||||||
|
|
||||||
|
Pour créer des "box": https://www.ctan.org/tex-archive/graphics/awesomebox
|
||||||
|
@@ -1,14 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
echo "This script is for building pandoc natively"
|
|
||||||
|
|
||||||
# enter the current directory
|
# enter the current directory
|
||||||
cd "$(dirname $0)"
|
cd "$(dirname $0)"
|
||||||
export PANDOC_DIR=pandoc/cl
|
export PANDOC_DIR=pandoc/cl
|
||||||
|
|
||||||
files=(
|
export files="
|
||||||
src/parcours.md
|
src/parcours.md
|
||||||
)
|
"
|
||||||
|
|
||||||
if [ -z $1 ]; then
|
if [ -z $1 ]; then
|
||||||
export target=pdf
|
export target=pdf
|
||||||
@@ -28,7 +26,7 @@ export LATEX_ARGS="
|
|||||||
"
|
"
|
||||||
|
|
||||||
|
|
||||||
if [ $target == "debug" ]; then
|
if [ $target == "latex" ]; then
|
||||||
pandoc $ARGS $LATEX_ARGS \
|
pandoc $ARGS $LATEX_ARGS \
|
||||||
--to latex \
|
--to latex \
|
||||||
$files;
|
$files;
|
||||||
|
@@ -57,6 +57,5 @@ Par ailleurs,
|
|||||||
|
|
||||||
Une adresse temporaire peut être attribuée à un parcours.
|
Une adresse temporaire peut être attribuée à un parcours.
|
||||||
|
|
||||||
|
Dans ce cas, cette localisation est associée au parcours, et ne sera pas automatiquement modifiée si un usager déménageait. Pour éviter cette situation, un message d'avertissement rappelle qu'il est préférable d'indiquer une réelle localisation pour le parcours.
|
||||||
|
|
||||||
|
|
||||||
###
|
|
||||||
|
Reference in New Issue
Block a user