Skip to content
Snippets Groups Projects
Commit 932a967d authored by orestis.malaspin's avatar orestis.malaspin
Browse files

ajout divers

parent 8cc631b8
No related branches found
No related tags found
No related merge requests found
index.html index.html
site
FROM nginx FROM nginx
COPY site/index.html /usr/share/nginx/html/
COPY site/css /usr/share/nginx/html/css
RUN ls /usr/share/nginx/html/
STYLES := ../css/tufte-css/tufte.css \ STYLES := css/tufte-css/tufte.css \
../css/pandoc.css \ css/pandoc.css \
../css/pandoc-solarized.css \ css/pandoc-solarized.css \
../css/tufte-extra.css css/tufte-extra.css
all: index.html all: index.html
index.html: index.md Makefile index.html: index.md Makefile
pandoc -o $@ $< -t html5 -c ../css/styling.css pandoc -o $@ $< -t html5 -c css/styling.css --self-contained
deploy: all deploy: all
mkdir -p site mkdir -p site
......
...@@ -5,7 +5,7 @@ if [ -z ${SL_CLASS_ROOT+x} ]; then echo "SL_CLASS_ROOT is unset"; else echo "var ...@@ -5,7 +5,7 @@ if [ -z ${SL_CLASS_ROOT+x} ]; then echo "SL_CLASS_ROOT is unset"; else echo "var
if [ -z ${MTI_CLASS_ROOT+x} ]; then echo "MTI_CLASS_ROOT is unset"; else echo "var is set to '$MTI_CLASS_ROOT'"; fi if [ -z ${MTI_CLASS_ROOT+x} ]; then echo "MTI_CLASS_ROOT is unset"; else echo "var is set to '$MTI_CLASS_ROOT'"; fi
## declare classes directories ## declare classes directories
declare -a arr=("$RUST_CLASS_ROOT" "$SL_CLASS_ROOT" "$MTI_CLASS_ROOT") declare -a arr=("$RUST_CLASS_ROOT" "$SL_CLASS_ROOT" "$MTI_CLASS_ROOT" "$(pwd)")
## now loop through the above array ## now loop through the above array
for i in "${arr[@]}" for i in "${arr[@]}"
...@@ -17,6 +17,8 @@ do ...@@ -17,6 +17,8 @@ do
make deploy -C $i make deploy -C $i
done done
echo "$(pwd)"/site/
docker stop rustclass docker stop rustclass
docker build -t rustclasscont . docker build -t rustclasscont .
docker run --rm \ docker run --rm \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment