diff options
author | techknowlogick <techknowlogick@users.noreply.github.com> | 2018-07-05 17:25:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-05 17:25:04 -0400 |
commit | f1d6a1fffc9d9712f0973b51c850f10d0872a7ea (patch) | |
tree | 990007d38f5d69da4d0c7d4320f6d71856666411 /Makefile | |
parent | 28c1c90230efd926d1c54a293b57139ff1fc5323 (diff) | |
download | gitea-f1d6a1fffc9d9712f0973b51c850f10d0872a7ea.tar.gz gitea-f1d6a1fffc9d9712f0973b51c850f10d0872a7ea.zip |
Add the ability to have built in themes in Gitea (#4198)
This makes it easier for user who want to theme but
don't have the ability to know how to customize templates
all that is required is a change in a config option
The reason why I chose the DEFAULT_THEME as variable,
as perhaps in the future we will allow users to chose their
theme whon logged in just like we do with languages
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -55,6 +55,9 @@ else endif endif +# $(call strip-suffix,filename) +strip-suffix = $(firstword $(subst ., ,$(1))) + .PHONY: all all: build @@ -301,7 +304,7 @@ public/js/index.js: $(JAVASCRIPTS) .PHONY: stylesheets-check stylesheets-check: generate-stylesheets - @diff=$$(git diff public/css/index.css); \ + @diff=$$(git diff public/css/*); \ if [ -n "$$diff" ]; then \ echo "Please run 'make generate-stylesheets' and commit the result:"; \ echo "$${diff}"; \ @@ -311,6 +314,7 @@ stylesheets-check: generate-stylesheets .PHONY: generate-stylesheets generate-stylesheets: node_modules/.bin/lessc --clean-css public/less/index.less public/css/index.css + $(foreach file, $(filter-out public/less/themes/_base.less, $(wildcard public/less/themes/*)),node_modules/.bin/lessc --clean-css public/less/themes/$(notdir $(file)) > public/css/theme-$(notdir $(call strip-suffix,$(file))).css;) .PHONY: swagger-ui swagger-ui: |