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 1
1
* ~
2
2
* # *#
3
3
* .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 "
14
14
15
15
.PHONY : clean shell
16
16
17
- all : $(HTML_FILES )
17
+ all : $(HTML_FILES ) copy
18
18
19
19
shell :
20
20
$(DOCKER_RUN ) -i --entrypoint=/bin/zsh $(DOCKER_IMG )
@@ -24,8 +24,21 @@ shell:
24
24
@$(DOCKER_RUN ) $(DOCKER_IMG ) $< $(EMACS_FLAGS ) -f org-html-export-to-html
25
25
@$(DOCKER_RUN ) --entrypoint=/bin/chown $(DOCKER_IMG ) $(USER ) " $* .html"
26
26
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
+
27
40
server :
28
- python3 -m http.server 8000
41
+ python3 -m http.server 8000 --directory ./static
29
42
30
43
clean :
31
- rm -rf * .html
44
+ rm -rf ./static
You can’t perform that action at this time.
0 commit comments