Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 5bbf0f8b authored by Jerome Touvier's avatar Jerome Touvier
Browse files

documentation howto

parent 932526b5
Pipeline #65269 passed with stage
in 1 minute and 18 seconds
### The HTML documentation located in "templates/" directory is generated as follows:
1) Modify your markdown files: USAGE_*.md
2) Run md2html.sh script:
bash md2html.sh "markdown file name" "html file name" "html page title"
### Examples:
bash md2html.sh USAGE_FR.md doc.html "RESIF: RESIFWS: Statistics Docs: v1"
bash md2html.sh USAGE_EN.md doc_en.html "RESIF: RESIFWS: Statistics Docs: v1"
### Requirements:
pandoc -f markdown -t html -s "$README" -o "$FILE" --metadata title="$TITLE"
perl -i -0pe 's/__\*__/<strong>\*<\/strong>/s' $FILE
perl -i -0pe 's/loc=\–/loc=--/s' $FILE
perl -i -0pe 's/<header.*<\/header>/<p style="text-align:center;"> <img src=".\/static\/images\/logoresif.png" alt="logoresif" width="341" height="95"><\/p>/s' $FILE
if [[ $FILE == *doc.html ]] ; then
perl -i -0pe 's/<\/head>/<link rel="stylesheet" href=".\/static\/resifws.css"\/>
<a href=".\/local=en"> <img src=".\/static\/images\/en.png" alt="Français - Anglais"> <\/a>\n<\/head>/gms' $FILE
elif [[ $FILE == *doc_en.html ]] ; then
perl -i -0pe 's/<\/head>/<link rel="stylesheet" href=".\/static\/resifws.css"\/>
<a href=".\/local=fr"> <img src=".\/static\/images\/fr.png" alt="Anglais - Français"> <\/a>\n<\/head>/gms' $FILE
# perl -i -0pe
# -i in-place
# -0 read entire file in one shot (without the multiline searches failed).
# -p run Perl code
# -e Perl will not look for a script filename in the argument list.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment