mkdir test
cd test
git clone [email protected]:vielhuber/test.git .
# clone empty repository
- create
.gitignore
, README.MD
, index.html
, index.md
- follow
README.MD
cd test
cd reveal.js
npm start
npm start -- --host=0.0.0.0 --port=8080
# serve so that you can access it on other pcs (with http://192.168.0.2:8080)
npm install -g html-inline
cd reveal.js
cp ./../index.html ./tmp1.html
awk 'BEGIN{RS="</section>"; ORS=""} \
/<section[^>]*data-markdown="[^"]+"/ { \
match($0, /data-markdown="([^"]+)"/, m); \
f=m[1]; \
gsub(/data-markdown="[^"]+"/,"data-markdown"); \
print $0; \
print " <script type=\"text/template\">\n"; \
while((getline l < f)>0) print " " l "\n"; \
close(f); \
print " </script>\n</section>\n"; \
next \
} \
{ print $0 "</section>\n" }' tmp1.html > tmp2.html
html-inline -i ./tmp2.html -o ./../presentation.html
rm ./tmp1.html ./tmp2.html