forked from radoraykov/taiga-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (35 loc) · 1.59 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
# Notes regarding keeping Makefile & Guardfile in sync
# - Guardfile is configured to extract commands from this Makefile
# - If decision is made to break this dependency, all commands from this
# Makefile should be duplicated in the Guardfile
# - Thereafter, every single change will need to be applied in both files
#
# *DO NOT*:
# - Write the whole path/name of one of the .adoc files in any comment
#
# M:1 vs. 1:1 .adoc files:
# - 1:1 is where 1 .adoc file is rendered to 1 output file
# - M:1 is where 1 .adoc file references many other .adoc files, but rendered
# to only 1 output file (such as api.adoc)
#
# Guardfile *DOES require* modification if:
# - A new M:1 .adoc file is added to this file
# - The path/name of an existing M:1 .adoc file is changed
#
# Guardfile *DOES NOT require* modification if:
# - A new 1:1 .adoc file is added to this file
# - The path/name of an existing 1:1 .adoc file is changed
# - More than 1 command is used to render an existing .adoc file
# - Any other part of an existing command is changed, i.e.:
# - OK: Modifying asciidoctor command line switches
# - OK: Changing path/name for HTML output
#
all: doc
doc:
asciidoctor -T custom-html5 -o dist/index.html index.adoc
asciidoctor -T custom-html5 -o dist/setup-production.html setup-production.adoc
asciidoctor -T custom-html5 -o dist/setup-development.html setup-development.adoc
asciidoctor -T custom-html5 -o dist/setup-alternatives.html setup-alternatives.adoc
asciidoctor -T custom-html5 -o dist/api.html api/api.adoc
asciidoctor -T custom-html5 -o dist/webhooks.html webhooks.adoc
cp -r assets/* dist || exit 1