Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

création du html depuis le zip en applicant le style chicagomodified #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions cgi-bin/exportArticle/exec.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,19 @@ mkdir ${GET[version]}
cd ${GET[version]}

curl -o ${GET[id]}.zip https://stylo.ecrituresnumeriques.ca/api/v1/zip${endpoint}/${GET[version]}
curl -o ${GET[id]}.html https://stylo.ecrituresnumeriques.ca/api/v1/html${endpoint}/${GET[version]}

wget -nd -p -H -P media/ -A jpeg,jpg,bmp,gif,png -e robots=off https://stylo.ecrituresnumeriques.ca/api/v1/htmlVersion/${GET[version]}
unzip ${GET[id]}.zip >> bash.log
rm ${GET[id]}.zip

rename "s/${GET[version]}/${GET[id]}/g" *
sed -i -e "s/\/${GET[version]}/${GET[id]}/g" ${GET[id]}.yaml

pandoc --standalone --filter pandoc-citeproc --table-of-contents --template=../templates/templateLaTeX.latex -f markdown -t latex ${GET[id]}.md ${GET[id]}.yaml -o ${GET[id]}.md.tex
#Produce html with csl chicagomodified
pandoc --standalone --ascii --filter pandoc-citeproc --csl=../templates/chicagomodified.csl --template=../templates/templateHtmlDcV2.html5 -f markdown -t html ${GET[id]}.md ${GET[id]}.yaml -o ${GET[id]}.html

#Produce tex with csl chicagomodified
pandoc --standalone --filter pandoc-citeproc --csl=../templates/chicagomodified.csl --table-of-contents --template=../templates/templateLaTeX.latex -f markdown -t latex ${GET[id]}.md ${GET[id]}.yaml -o ${GET[id]}.md.tex


sed -i -e 's/https:\/\/i\.imgur.com\//media\//g' ${GET[id]}.md
Expand Down
12 changes: 0 additions & 12 deletions cgi-bin/exportArticle/templates/Document 1 non enregistré

This file was deleted.

Loading