File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 11* ~
22* #* #
33* .pdf
4- * .html
4+
5+ static
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ ATTENTION_PREFIX := "\033[1;36m[!]\033[0m "
1414
1515.PHONY : clean shell
1616
17- all : $(HTML_FILES )
17+ all : $(HTML_FILES ) copy
1818
1919shell :
2020 $(DOCKER_RUN ) -i --entrypoint=/bin/zsh $(DOCKER_IMG )
@@ -24,8 +24,21 @@ shell:
2424 @$(DOCKER_RUN ) $(DOCKER_IMG ) $< $(EMACS_FLAGS ) -f org-html-export-to-html
2525 @$(DOCKER_RUN ) --entrypoint=/bin/chown $(DOCKER_IMG ) $(USER ) " $* .html"
2626
27+ copy :
28+ @mkdir -p static
29+ @find . \
30+ " (" -name " *.html" -o -name " *.css" -o -name " *.js" " )" \
31+ -not -path " ./static/*" \
32+ -not -path " ./.github/*" \
33+ -exec cp {} static \;
34+ @find . \
35+ -name " *.html" \
36+ -not -path " ./static/*" \
37+ -not -path " ./.github/*" \
38+ -exec mv {} static \;
39+
2740server :
28- python3 -m http.server 8000
41+ python3 -m http.server 8000 --directory ./static
2942
3043clean :
31- rm -rf * .html
44+ rm -rf ./static
You can’t perform that action at this time.
0 commit comments