mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-21 19:03:26 +01:00
Build docs in venv
This commit is contained in:
parent
df6d760844
commit
c0fab933a5
3 changed files with 18 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -14,3 +14,4 @@ node_modules/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
__pycache__
|
__pycache__
|
||||||
web/dev-dist/
|
web/dev-dist/
|
||||||
|
venv/
|
||||||
|
|
|
@ -11,7 +11,9 @@ RUN apt-get update && apt-get install -y \
|
||||||
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" >> /etc/apt/sources.list.d/nodesource.list \
|
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" >> /etc/apt/sources.list.d/nodesource.list \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
python3-pip nodejs \
|
python3-pip \
|
||||||
|
python3-venv \
|
||||||
|
nodejs \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
17
Makefile
17
Makefile
|
@ -95,6 +95,7 @@ docker-dev:
|
||||||
--build-arg COMMIT=$(COMMIT) \
|
--build-arg COMMIT=$(COMMIT) \
|
||||||
./
|
./
|
||||||
|
|
||||||
|
|
||||||
# Ubuntu-specific
|
# Ubuntu-specific
|
||||||
|
|
||||||
build-deps-ubuntu:
|
build-deps-ubuntu:
|
||||||
|
@ -103,21 +104,27 @@ build-deps-ubuntu:
|
||||||
curl \
|
curl \
|
||||||
gcc-aarch64-linux-gnu \
|
gcc-aarch64-linux-gnu \
|
||||||
gcc-arm-linux-gnueabi \
|
gcc-arm-linux-gnueabi \
|
||||||
|
python3 \
|
||||||
|
python3-venv \
|
||||||
jq
|
jq
|
||||||
which pip3 || sudo apt-get install -y python3-pip
|
which pip3 || sudo apt-get install -y python3-pip
|
||||||
|
|
||||||
|
|
||||||
# Documentation
|
# Documentation
|
||||||
|
|
||||||
docs: docs-deps docs-build
|
docs: docs-deps docs-build
|
||||||
|
|
||||||
docs-build: .PHONY
|
docs-venv: .PHONY
|
||||||
mkdocs build
|
python3 -m venv ./venv
|
||||||
|
|
||||||
docs-deps: .PHONY
|
docs-build: docs-venv
|
||||||
pip3 install -r requirements.txt
|
(. venv/bin/activate && mkdocs build)
|
||||||
|
|
||||||
|
docs-deps: docs-venv
|
||||||
|
(. venv/bin/activate && pip3 install -r requirements.txt)
|
||||||
|
|
||||||
docs-deps-update: .PHONY
|
docs-deps-update: .PHONY
|
||||||
pip3 install -r requirements.txt --upgrade
|
(. venv/bin/activate && pip3 install -r requirements.txt --upgrade)
|
||||||
|
|
||||||
|
|
||||||
# Web app
|
# Web app
|
||||||
|
|
Loading…
Reference in a new issue