From 9f74233ffedb0609d43d54b6169dc47dd6337803 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Wed, 10 Mar 2021 22:21:35 +0100 Subject: Add plumbing for English website No link to switch from one language to the other yet. Also, some pages are now out-of-date wrt their French version; not a big deal, since we'll need to go over each page anyway. --- build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 74e9ab8..a9035f3 100755 --- a/build.sh +++ b/build.sh @@ -4,9 +4,10 @@ set -eu input=$1 parameters=$2 -output=$3 +template=$3 +output=$4 -cp template.html ${output} +cp ${template} ${output} transform-li-current-a () { @@ -31,8 +32,9 @@ sed -i s/'{TITLE}'/"${title}"/ ${output} link_stylesheets='' for s in "${stylesheets[@]}" do - link_template='\n' - link_stylesheets+=$(printf "${link_template}" "${s}") + spath=$(realpath --relative-to $(dirname "${input}") stylesheets/"${s}".css) + link_template='\n' + link_stylesheets+=$(printf "${link_template}" "${spath}") done sed -i /'{STYLESHEETS}'/'c\'"${link_stylesheets}" ${output} -- cgit v1.2.3