Commit a8b56973 authored by brospars's avatar brospars

Re-add index with all generated html

parent 24c0a06b
...@@ -3,16 +3,14 @@ pages: ...@@ -3,16 +3,14 @@ pages:
stage: deploy stage: deploy
script: script:
- pandoc --version - pandoc --version
# - pandoc --help
# - pandoc --list-input-formats # Broken as pandoc dates from 2013 on this image! :(
- for file in $(find -name "*.md") $(find -name "*.org"); do - for file in $(find -name "*.md") $(find -name "*.org"); do
bin/pandoc_fixer.pl ${file}; bin/pandoc_fixer.pl ${file};
echo "Creating" public/`dirname ${file}`; echo "Creating" public/`dirname ${file}`;
echo "<a style='display:block;' href='${file%.*}.html'>${file%.*}.html</a>" >> index.html
mkdir -p public/`dirname ${file}`; mkdir -p public/`dirname ${file}`;
mv ${file%.*}.html public/`dirname ${file}`/; mv ${file%.*}.html public/`dirname ${file}`/;
done done
- shopt -s extglob - shopt -s extglob
# - mv !(public) public
artifacts: artifacts:
paths: paths:
- public - public
......
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