-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (39 loc) · 1.1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
DEV_DIR=/home/rossi/.dev
THEME_DIR=$(DEV_DIR)/themes
THEME_DIGINAMIC=$(THEME_DIR)/asciidoctor-playground/slides/themes/diginamic-light-theme.yml
THEME_DIGINAMIC_FONT_DIR=$(THEME_DIR)/asciidoctor-playground/slides/themes/fonts/diginamic
add:
sudo ln -s $(DEV_DIR)/dev.sh /usr/local/bin/dev
install:
sudo gem install asciidoctor-pdf --pre
sudo gem install coderay
pdft:
asciidoctor-pdf *.adoc -a pdf-style=$(THEME_DIR)/docs.yml
cp *.pdf pdf/
rm *.pdf
rm *.png
pdftdigi:
asciidoctor-pdf *.adoc -r asciidoctor-diagram -a pdf-style=$(THEME_DIR)/docs-diginamic.yml
cp *.pdf pdf/
rm *.pdf
rm *.png
pdfc:
asciidoctor-pdf *.adoc -r asciidoctor-diagram -a pdf-style=$(THEME_DIR)/slides.yml
cp *.pdf pdf/
rm *.pdf
rm *.png
pdfdigi:
asciidoctor-pdf *.adoc -r asciidoctor-diagram -a pdf-style=$(THEME_DIGINAMIC) -a pdf-fontsdir=$(THEME_DIGINAMIC_FONT_DIR)
cp *.pdf pdf/
rm *.pdf
rm *.png
rmnodemodules:
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
gbs:
gitbook serve
gbi:
gitbook install
gbis:
gitbook install && gitbook serve
pr:
node $(DEV_DIR)/scripts/photos/rename.js $(param1) $(param2)