1+ PY_PORT ?= 9011
2+
13md-update-deps :
24 cd docGen && go get github.com/aquasecurity/defsec \
35 && go mod tidy
@@ -49,23 +51,14 @@ remove-all-repos:
4951 rm -rf avd-repo/cloudsploit-repo
5052
5153sync-all :
52- rsync -av ./ avd-repo/ --exclude=.idea --exclude=go.mod --exclude=go.sum --exclude=nginx.conf --exclude= main.go --exclude=main_test.go --exclude=README.md --exclude=avd-repo --exclude=.git --exclude=.gitignore --exclude=.github --exclude=content --exclude=docs --exclude=Makefile --exclude=goldens
54+ rsync -av ./ avd-repo/ --exclude=.idea --exclude=go.mod --exclude=go.sum --exclude=main.go --exclude=main_test.go --exclude=README.md --exclude=avd-repo --exclude=.git --exclude=.gitignore --exclude=.github --exclude=content --exclude=docs --exclude=Makefile --exclude=goldens
5355
5456md-generate :
5557 cd avd-repo && ./generator
5658
57- nginx-start :
58- -cd avd-repo/docs && nginx -p . -c ../../nginx.conf
59-
60- nginx-stop :
61- @if pgrep nginx > /dev/null; then \
62- cd avd-repo/docs && nginx -s stop -p . -c ../../nginx.conf; \
63- else \
64- echo " Nginx is not running." ; \
65- fi
66-
67- nginx-restart :
68- make nginx-stop nginx-start
59+ serve :
60+ @echo " Serving static site at http://localhost:${PY_PORT} "
61+ @cd avd-repo/docs && python3 -m http.server ${PY_PORT}
6962
7063hugo-devel :
7164 hugo server -D --debug
@@ -77,18 +70,13 @@ hugo-generate: hugo-clean
7770 cd avd-repo && ./ci/nvd_pages_build.sh
7871 echo " avd.aquasec.com" > avd-repo/docs/CNAME
7972
80- simple-host :
81- cd avd-repo/docs && python3 -m http.server
82-
8373copy-assets :
8474 cp -R avd-repo/remediations-repo/resources avd-repo/docs/resources
8575 touch avd-repo/docs/.nojekyll
8676
87- build-all-no-clone : md-clean md-build sync-all md-generate hugo-generate copy-assets nginx-restart
88- echo " Build Done, navigate to http://localhost:9011/ to browse"
77+ build-all-no-clone : md-clean md-build sync-all md-generate hugo-generate copy-assets serve
8978
90- build-all : md-clean md-build md-clone-all sync-all md-generate hugo-generate copy-assets nginx-restart
91- echo " Build Done, navigate to http://localhost:9011/ to browse"
79+ build-all : md-clean md-build md-clone-all sync-all md-generate hugo-generate copy-assets serve
9280
9381compile-theme-sass :
9482 cd themes/aquablank/static/sass && sass avdblank.scss:../css/avdblank.css && sass avdblank.scss:../css/avdblank.min.css --style compressed
0 commit comments