Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
mkdocs-template/Makefile_Slides
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (20 sloc)
930 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REVEAL_URL=https://github.coventry.ac.uk/pages/aa9863/RevealTemplate/reveal.js | |
REVEAL_TEMPLATE="/home/dang/Github/RevealPres/reveal_template.html" | |
REVEAL_THEME=simple | |
HTML_PANDOC_OPTIONS = --standalone -t revealjs -V revealjs-url=$(REVEAL_URL) -V theme=$(REVEAL_THEME) --template=$(REVEAL_TEMPLATE) --mathjax | |
#Default Sources to the input provide | |
ifndef SOURCES | |
SOURCES = $< | |
endif | |
ifndef TARGET | |
TARGET = $@ | |
endif | |
%.html: %.md | |
pandoc $(HTML_PANDOC_OPTIONS) $(SOURCES) -o $(TARGET) | |
sed -i 's/data-auto-animate"/" data-auto-animate/' $(TARGET) | |
sed -i "s/navigationMode: 'default'/navigationMode: 'linear'/" $(TARGET) | |
# sed -i 's/navigationMode: "default"/navigationMode: "linear"/' $(TARGET) | |
#%.pdf: %.html | |
# docker run --rm -t -v `pwd`:/slides -v .:/home/user astefanutti/decktape $(SOURCES) $(TARGET) | |
%.pdf: %.html | |
docker run --rm -t -v `pwd`:/slides -v .:/home/user astefanutti/decktape $(SOURCES) $(TARGET) |