-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·59 lines (52 loc) · 1.34 KB
/
Copy pathMakefile
File metadata and controls
executable file
·59 lines (52 loc) · 1.34 KB
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
51
52
53
54
55
56
57
58
59
.PHONY: deploy init serve gitc log up initpi
initpi:
@cd ./.pi/npm && npm install
up:
sudo apt-get update && sudo apt-get install -y \
libnss3 \
libatk-bridge2.0-0 \
libgtk-3-0 \
libgbm-dev \
libasound2 \
libx11-xcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxi6 \
libxtst6 \
libxrandr2 \
libxss1
serve:
@echo "Starting the MkDocs server..."
@source .env && mkdocs serve
log:
@echo "Starting the MkDocs server..."
@source ./.env && mkdocs serve 2>&1 | tee mkdocs.log
init: gitc
@echo "Configure container"
@sudo apt-get update && sudo apt-get install -y \
libnss3 \
libatk-bridge2.0-0 \
libgtk-3-0 \
libgbm-dev \
libasound2 \
libx11-xcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxi6 \
libxtst6 \
libxrandr2 \
libxss1
@echo "Start PIP configuration"
@pip3 install --break-system-packages --upgrade pip
@pip3 install --break-system-packages mkdocs mkdocs-material mkdocs-git-authors-plugin mkdocs-git-revision-date-localized-plugin mkdocs-git-committers-plugin
@echo "Configuration is done"
gitc:
git config pull.rebase false
git config --global user.name "Serhioromano"
git config --global user.email "Serhioromano@outlook.com"
deploy:
@echo "Deploying the application..."
@mkdocs gh-deploy
@echo "Deployment complete."