Browse Source

build.sh: take session number instead of md path

master
Dimitri Merejkowsky 6 years ago
parent
commit
0c86e57ca3
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      sessions/build.sh

+ 2
- 3
sessions/build.sh View File

@@ -3,10 +3,9 @@
set -e set -e


if [[ -z $1 ]]; then if [[ -z $1 ]]; then
echo "Usage: build.sh INPUT.md"
echo "Usage: build.sh NUMBER"
exit 1 exit 1
fi fi




out=${1:s/.md/.html}
darkslide --linenos=no $1 --destination ${out}
darkslide --linenos=no "${1}.md" --destination "${1}.html"