diff --git a/.gitmodules b/.gitmodules index 5c6ecb4..350a7a9 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "git"] url = https://git.kernel.org/pub/scm/git/git.git path = git +[submodule "themed/htmlcc"] + path = themed/htmlcc + url = https://yingtongli.me/git/htmlcc.git diff --git a/cgit.mk b/cgit.mk index 8817ae7..f66c985 100644 --- a/cgit.mk +++ b/cgit.mk @@ -139,7 +139,7 @@ $(CGIT_PREFIX)themed/.depend: @mkdir -p $@ $(CGIT_PREFIX)themed/themed.c: $(CGIT_THEMED_INPUTS) - cd $(CGIT_PREFIX)themed; python -m htmlcc --emitter cgit $^ > $@ + cd $(CGIT_PREFIX)themed; PYTHONPATH=htmlcc python -m htmlcc --emitter cgit $^ > $@ $(CGIT_PREFIX)themed/themed.css: $(CGIT_PREFIX)themed/themed.in.css $(CGIT_THEMED_INPUTS) cd $(CGIT_PREFIX)themed; tailwindcss -i $< -o $@ diff --git a/themed/htmlcc b/themed/htmlcc deleted file mode 120000 index 7f04398..0000000 --- a/themed/htmlcc +++ /dev/null @@ -1 +0,0 @@ -../../htmlcc/htmlcc \ No newline at end of file diff --git a/themed/htmlcc b/themed/htmlcc new file mode 160000 index 0000000..ab72cef --- /dev/null +++ b/themed/htmlcc @@ -0,0 +1 @@ +Subproject commit ab72cefd6745a647dbd41a9814397873ab198e48