forked from contao/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (32 loc) · 749 Bytes
/
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
.PHONY: build
build: build-dev build-manual
# Build a single documentation
build-dev:
cd page; hugo \
--cleanDestinationDir \
--environment dev \
--destination ../build/dev \
--logLevel info \
--baseURL https://docs.contao.org/dev/
build-manual:
cd page; hugo \
--cleanDestinationDir \
--environment manual \
--destination ../build/manual \
--logLevel info \
--baseURL https://docs.contao.org/manual/
# Start a live reload server
live-dev:
cd page; hugo server \
--cleanDestinationDir \
--environment dev \
--destination ../build/dev \
--logLevel info
live-manual:
cd page; hugo server \
--cleanDestinationDir \
--environment manual \
--destination ../build/manual \
--logLevel info
clean:
rm -r build