diff --git a/homepage/cwsvHomepage/forms/cwsvGebuehrenordnung.pdf b/homepage/cwsvHomepage/forms/cwsvGebuehrenordnung.pdf index fff21bc..90f3541 100644 Binary files a/homepage/cwsvHomepage/forms/cwsvGebuehrenordnung.pdf and b/homepage/cwsvHomepage/forms/cwsvGebuehrenordnung.pdf differ diff --git a/homepage/cwsvJudo/Makefile.heliohost b/homepage/cwsvJudo/Makefile.heliohost new file mode 100644 index 0000000..819dd2e --- /dev/null +++ b/homepage/cwsvJudo/Makefile.heliohost @@ -0,0 +1,175 @@ +#! /usr/bin/env make -f + +include Makefile.heliohost.config + +cssFiles = $(wildcard src/css/materialize/*.css) +mdFiles = $(wildcard src/md/*.md) +phpFiles = $(patsubst src/md/%.md, build/materialize/%.php, $(mdFiles)) +ampFiles = $(patsubst src/md/%.md, build/amp/%.php, $(mdFiles)) +phpLibFiles = $(wildcard phpLib/cwsvJudo/*.php) phpLib/phpcount/phpcount.php +wallpapersSrc = $(wildcard graphiken/wallpapers/*.*) +wallpapers = $(patsubst graphiken/wallpapers/%, build/graphiken/wallpapers/%, $(wallpapersSrc)) + +configFiles = $(wildcard config/*.php) + +LN = ln -f + +.PHONY: all +all: build/css/cwsvJudo.css pages images +# @todo This should only be temporary. Better outsource the graphics to it's own Makefile. + make -j graphiken + make build/css/cwsvJudo.css + +# minimizing wallpaper sizes +build/graphiken/wallpapers/%.jpg: graphiken/wallpapers/%.jpg + guetzli $^ $@ +build/graphiken/wallpapers/%.svg: graphiken/wallpapers/%.svg + cp $^ $@ + +.PHONY: images +images: $(wallpapers) + echo $(wallpapersSrc) + echo $(wallpapers) + + +.PHONY: clean +clean: + $(RM) -rf build + +.PHONY: installDependencies +installDependencies: + if [ ! -d "submodules" ]; then mkdir submodules; fi +# - nodejs + # if [ ! -d "submodules/node" ]; then cd submodules; git clone https://github.com/nodejs/node.git; fi + # cd submodules/node; git fetch; git checkout v22.12.0; ./configure; make -j4; +# - bulma +# - bulma.css + # if [ ! -d "submodules/bulma" ]; then cd submodules; git clone https://github.com/jgthms/bulma; fi + # cd submodules/bulma; git fetch; git checkout 1.0.2; +# - bulma templates + # if [ ! -d "submodules/bulma-templates" ]; then cd submodules; git clone https://github.com/BulmaTemplates/bulma-templates; fi + # cd submodules/bulma-templates; git fetch; git checkout 0.9.4.2; +# - materialize-css + if [ ! -d "submodules/materialize" ]; then cd submodules; git clone https://github.com/materializecss/materialize; fi + cd submodules/materialize; git fetch; git checkout $(VERSION_MATERIALIZE); npm install; npm audit fix; npm run release; +# - google material icons + if [ ! -d "submodules/material-design-icons" ]; then cd submodules; git clone --filter=tree:0 https://github.com/google/material-design-icons.git; fi + cd submodules/material-design-icons; git fetch; git checkout $(VERSION_GOOGLE_MATERIAL_ICONS); + + +# copy/link all together to get a "distributable" package +# (distributable means: That directory can be uploaded va ftp) +.PHONY: dist +dist: all + rm -rf $(distDir) + mkdir -p $(distDir) + +# external dependencies + mkdir -p $(distDir)/httpdocs/ressourcen/css + mkdir -p $(distDir)/httpdocs/ressourcen/js +# - bulma + # $(LN) ./submodules/bulma/css/bulma.min.css $(distDir)/httpdocs/ressourcen/css/ + # $(LN) ./submodules/bulma-templates/css/hello-parallax.css $(distDir)/httpdocs/ressourcen/css/ +# - materializeCss + $(LN) ./submodules/materialize/dist/css/materialize.min.css $(distDir)/httpdocs/ressourcen/css/ + $(LN) ./submodules/materialize/dist/css/materialize.min.css.map $(distDir)/httpdocs/ressourcen/css/ + $(LN) ./submodules/materialize/dist/js/materialize.min.js $(distDir)/httpdocs/ressourcen/js/ + +# page data + mkdir -p $(distDir)/httpdocs/pages/responsive + find ./build/materialize/ -type f -exec $(LN) {} $(distDir)/httpdocs/pages/responsive \; + mkdir -p $(distDir)/httpdocs/pages/shared + find ./src/shared/ -type f -exec $(LN) {} $(distDir)/httpdocs/pages/shared \; + +# structured data + mkdir -p $(distDir)/httpdocs/ressourcen/structuredData/json + find src/jsonSd -type f -exec $(LN) {} $(distDir)/httpdocs/ressourcen/structuredData/json \; + +# php libs +# - leagacy cwsvJudoLib + mkdir -p $(distDir)/httpdocs/ressourcen/phpLib/cwsvJudo + find ./phpLib/cwsvJudo -type f -exec $(LN) {} $(distDir)/httpdocs/ressourcen/phpLib/cwsvJudo \; +# - QR code generator + mkdir -p $(distDir)/httpdocs/ressourcen/phpLib/phpqrcode + find ./phpLib/phpqrcode -type f -exec $(LN) {} $(distDir)/httpdocs/ressourcen/phpLib/phpqrcode \; +# - api + mkdir -p $(distDir)/ + +# graphics +# - wappen + mkdir -p $(distDir)/httpdocs/ressourcen/graphiken/logos + find ./build/graphiken/cwsvJudoLogoWappen -type f -exec $(LN) {} $(distDir)/httpdocs/ressourcen/graphiken/logos \; +# - wallpapers + mkdir -p $(distDir)/httpdocs/ressourcen/graphiken/wallpapers + find ./build/graphiken/wallpapers -type f -exec $(LN) {} $(distDir)/httpdocs/ressourcen/graphiken/wallpapers \; +# - icons + mkdir -p $(distDir)/httpdocs/ressourcen/graphiken/icons + find ./graphiken/icons -type f -exec $(LN) {} $(distDir)/httpdocs/ressourcen/graphiken/icons \; + $(LN) ./build/graphiken/favIcons/favicon.ico $(distDir)/httpdocs/favicon.ico +# - banner graphics + mkdir -p $(distDir)/httpdocs/ressourcen/graphiken/banner + find ./graphiken/banner -type f -exec $(LN) {} $(distDir)/httpdocs/ressourcen/graphiken/banner \; +# - videos + mkdir -p $(distDir)/httpdocs/videos.d + find ./res/videos.d -type f -exec $(LN) {} $(distDir)/httpdocs/videos.d \; +# - others + $(LN) ./res/IntegrationDurchSport2018.250x.png $(distDir)/httpdocs/ressourcen/graphiken/logos +# - api + mkdir -p $(distDir)/.local/lib/php/cwsvJudo/api + find ./src/api -type f -exec $(LN) {} $(distDir)/.local/lib/php/cwsvJudo/api \; +# css + mkdir -p $(distDir)/httpdocs/ressourcen/css + $(LN) ./build/css/cwsvJudo.css $(distDir)/httpdocs/ressourcen/css/cwsvJudo.css + +# fonts + mkdir -p $(distDir)/httpdocs/ressourcen/fonts + find ./res/fonts -type f -exec $(LN) {} $(distDir)/httpdocs/ressourcen/fonts \; + +# htaccess + $(LN) ./src/htaccess/heliohost/.htaccess $(distDir)/httpdocs/.htaccess + $(LN) ./src/htaccess/heliohost/pages/responsive/.htaccess $(distDir)/httpdocs/pages/responsive/.htaccess + +# config files + $(LN) ./configs/heliohost/pages.config.inc.php $(distDir)/httpdocs/pages/responsive/config.inc.php + +# @todo shouldn't be used any more + mkdir -p $(distDir)/.local + $(LN) configs/local/db.config.php $(distDir)/.local/db.config.php + + docker-compose restart + +.PHONY: pages +pages: Makefile.heliohost.config $(pandocTemplate) $(phpFiles) + +# build the materialize version of the page +build/materialize/%.php: src/md/%.md build/yaml/%.yaml $(pandocTemplate) Makefile.heliohost.config + mkdir -p build/materialize + # create html/php code + pandoc \ + --standalone \ + --css="ressourcen/css/cwsvJudo.css" \ + --template=$(pandocTemplate) \ + --to=html \ + --wrap=preserve \ + --output=$@ \ + $< $(word 2,$^) +# npx prettier --check $@ + +# @toDo: Verzeichnisstruktur überdenken +build/yaml/%.yaml: src/yaml/images.yaml src/yaml/navTargets.yaml src/yaml/mainNav.yaml src/yaml/%.subNav.yaml + mkdir -p build/yaml + python tools/yamlMerge.py $^ > $@ + + +# combine css files into one +build/css/cwsvJudo.css: $(cssFiles) + cat $^ | $(CSSO) -o $@ + +# .PHONY: download_material_icons +# download_material_icons: +# curl + +.PHONY: upload +upload: all + lftp -f scripts/upload-heliohost + diff --git a/homepage/cwsvJudo/pandocTemplate/materialize-fromScratch.html b/homepage/cwsvJudo/pandocTemplate/materialize-fromScratch.html new file mode 100644 index 0000000..52834bd --- /dev/null +++ b/homepage/cwsvJudo/pandocTemplate/materialize-fromScratch.html @@ -0,0 +1,191 @@ + + + + + +
+ + + + $for(author-meta)$ + $endfor$ + $if(date-meta)$ + $endif$ + $if(keywords)$ + + $endif$ + $if(canonicalPath)$ + + $endif$ + $if(ampVersionLink)$ + + $endif$ + $if(phpTitleString)$ +
+
+