new things

This commit is contained in:
ackman678
2021-03-30 00:37:43 -07:00
parent 14f1c48838
commit 6e92164bc3
8 changed files with 235 additions and 16 deletions

View File

@@ -5,7 +5,7 @@ if [ "$1" == "-h" ] ; then
Useful for serving markdown text files locally with reveal.js
Usage: reveal.sh neuroanatomy1.md
reveal.sh neuroanatomy1.md 8001
"
echo "$(tput setaf 6)$EDITOR $(tput setaf 7)is currently set as editor"
exit 0
@@ -13,8 +13,9 @@ fi
set -e
appPath="$HOME/projects/dev/reveal.js"
# appPath="$HOME/projects/dev/reveal.js"
appPath="$HOME/projects/archive/external/reveal.js"
portNumber=${2:-8000}
if [[ ! -d $appPath ]]; then
echo "reveal.js not found"
@@ -30,5 +31,5 @@ fi
#add markdown filename to reveal placeholder start file
sed -i -E "s|(<section data-markdown=\")[A-Za-z0-9\.-]*(\" )|\1$fn\2|" index.html
npm start
npm start -- --port=$portNumber
# npm start