forked from pawelsikora/mkdocs-with-confluence
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
27 lines (18 loc) · 782 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
build:
poetry build
venv-prepare:
python3 -m venv venv
source venv/bin/activate &&\
python3 -m pip install mkdocs-material mdx_truly_sane_lists mkdocs pymdown-extensions
venv-tar-install:
source venv/bin/activate &&\
python3 -m pip install ./dist/mkdocs_with_confluence-$(shell poetry version -s).tar.gz
venv-serve-example:
source venv/bin/activate &&\
cd ./example && python3 -m mkdocs serve
venv-run: build venv-tar-install venv-serve-example
run_example:
@docker build -t mkdocs-example -f ./example/Dockerfile --build-arg MKDOCS_TO_CONFLUENCE_PASSWORD=$(shell sops --decrypt ./example/secret.yaml | yq '.JIRA_PASSWORD' ) .
@docker run -p 8000:8000 mkdocs-example
lint:
@docker run --rm -v ${PWD}:/data cytopia/pylint ./mkdocs_with_confluence/plugin.py