Laufende Arbeiten am reDesign2018

- urlRewriting für "schönere" URL
	neue Datei:     markdownExperiment/.htaccess
	neue Datei:     markdownExperiment/.htaccess-phpAppender
- Ergänzungen im buildProzess
	geändert:       markdownExperiment/Makefile
- Umstellung auf externe yamlNavTargets

- buildFiles sind wiederherstellbar und müsen nicht getrackt werden
	gelöscht:       markdownExperiment/build/.uploadMarker/css/cwsvJudo.css
	gelöscht:       markdownExperiment/build/.uploadMarker/kontakt.php
	gelöscht:       markdownExperiment/build/.uploadMarker/verein.php
	gelöscht:       markdownExperiment/build/.uploadMarker/wkKalender.php
	gelöscht:       markdownExperiment/build/css/cwsvJudo.css
	gelöscht:       markdownExperiment/build/kontakt.php
	gelöscht:       markdownExperiment/build/verein.php
	gelöscht:       markdownExperiment/build/wkKalender.php
- ein config Verzeichnis für .. configDateien
	neue Datei:     markdownExperiment/config/.htaccess
	neue Datei:     markdownExperiment/config/cwsvJudo.config.php
	neue Datei:     markdownExperiment/config/db.inc
	neue Datei:     markdownExperiment/config/phpcount.config.php
- Änderungen/Ergänzungen/Verbesserungen am cssDesign
	neue Datei:     markdownExperiment/css/cwsvJudo-2018-galTable.css
	geändert:       markdownExperiment/css/cwsvJudo-2018-mainNav.css
	neue Datei:     markdownExperiment/css/cwsvJudo-2018-news.css
	geändert:       markdownExperiment/css/cwsvJudo-2018-subNav.css
	geändert:       markdownExperiment/css/cwsvJudo-2018-wkKalender.css
- neue Seiten
- Umstellung auf referenzierte navTargets
	neue Datei:     markdownExperiment/md/galerien.md
	neue Datei:     markdownExperiment/md/index.md
	neue Datei:     markdownExperiment/md/indexTest.md
	geändert:       markdownExperiment/md/kontakt.md
	neue Datei:     markdownExperiment/md/trainingszeiten.md
	geändert:       markdownExperiment/md/verein.md
	geändert:       markdownExperiment/md/wkKalender.md
- kleinere Änderungen
	geändert:       markdownExperiment/pandocTemplate/cwsvJudo.html5.pandocTemplate
- dynamische Inhalte werden mittels phpAufrufen realisiert
	neue Datei:     markdownExperiment/phpLib/cwsvJudo/galTable.php
	geändert:       markdownExperiment/phpLib/cwsvJudo/newsLib.php
	neue Datei:     markdownExperiment/phpLib/cwsvJudo/newsTableHtml.php
	geändert:       markdownExperiment/phpLib/cwsvJudo/wkKalender.php
- neuer Counter
	neue Datei:     markdownExperiment/phpLib/phpcount
- Experimente zu Anchor/References in yamlFiles im Zusammenspiel mit pandoc
	neue Datei:     markdownExperiment/temp/testingYamlRef/refTest.yaml
	neue Datei:     markdownExperiment/temp/testingYamlRef/refTestB.yaml
	neue Datei:     markdownExperiment/temp/testingYamlRef/refTestWikipedia.md
	neue Datei:     markdownExperiment/temp/testingYamlRef/refTestWikipedia.yaml
	neue Datei:     markdownExperiment/temp/testingYamlRef/yamltest.pandocTemplate
- pythonTool zum Mergen von yamlFiles
	neue Datei:     markdownExperiment/tools/yamlMerge.py
- Auslagerungen von navTargets in eigene yamlFiles, damit mehrfach vorkommende Ziele referenziert werden können (DRY)
	neue Datei:     markdownExperiment/index.yaml
	neue Datei:     markdownExperiment/yaml/galerien.subNav.yaml
	neue Datei:     markdownExperiment/yaml/index.subNav.yaml
	neue Datei:     markdownExperiment/yaml/kontakt.subNav.yaml
	neue Datei:     markdownExperiment/yaml/mainNav.yaml
	neue Datei:     markdownExperiment/yaml/navTargets.yaml
	neue Datei:     markdownExperiment/yaml/trainingszeiten.subNav.yaml
	neue Datei:     markdownExperiment/yaml/verein.subNav.yaml
	neue Datei:     markdownExperiment/yaml/wkKalender.subNav.yaml
This commit is contained in:
marko
2018-05-07 17:16:32 +02:00
parent 1372a27f67
commit a3ca5578f1
48 changed files with 697 additions and 1416 deletions

View File

@@ -1,28 +1,43 @@
cssFiles = $(wildcard css/*.css)
mdFiles = $(wildcard md/*.md)
phpFiles = $(patsubst md/%.md, build/%.php, $(mdFiles))
phpLibFiles = $(wildcard phpLib/cwsvJudo/*.php) phpLib/phpcount/phpcount.php
configFiles = $(wildcard config/*.php)
uploadMarker = $(patsubst build/%.php, build/.uploadMarker/%.php, $(phpFiles)) build/.uploadMarker/css/cwsvJudo.css
uploadMarker = \
$(patsubst build/%.php, build/.uploadMarker/%.php, $(phpFiles)) \
$(patsubst phpLib/%.php, build/.uploadMarker/phpLib/%.php, $(phpLibFiles)) \
$(patsubst config/%.php, build/.uploadMarker/config/%.php, $(configFiles)) \
build/.uploadMarker/config/.htaccess \
build/.uploadMarker/css/cwsvJudo.css
# $(patsubst phpLib/cwsvJudo/%.php, build/.uploadMarker/phpLib/cwsvJudo/%.php, $(phpLibFiles)) \
all: $(phpFiles) build/css/cwsvJudo.css
.PHONY: echo
echo:
@echo $(phpFiles)
@echo $(phpLibFiles)
@echo $(cssFiles)
@echo $(uploadMarker)
build/css/cwsvJudo.css: $(cssFiles)
mkdir -p build/css
cat $(cssFiles) > $@
# cat $(cssFiles) | cleancss -o $@
build/%.php: md/%.md pandocTemplate/cwsvJudo.html5.pandocTemplate
build/%.php: md/%.md build/yaml/%.yaml pandocTemplate/cwsvJudo.html5.pandocTemplate
mkdir -p build
pandoc \
--standalone \
--css=css/cwsvJudo.css \
--template=pandocTemplate/cwsvJudo.html5.pandocTemplate \
--output=$@ \
$<
$< $(word 2,$^)
build/yaml/%.yaml: yaml/navTargets.yaml yaml/mainNav.yaml yaml/%.subNav.yaml
mkdir -p build/yaml
python tools/yamlMerge.py $^ > $@
.PHONY: upload
upload: $(uploadMarker)
@@ -41,6 +56,21 @@ build/.uploadMarker/%.php: build/%.php
--ftp-create-dirs
touch $@
build/.uploadMarker/phpLib/%.php: phpLib/%.php
mkdir -p build/.uploadMarker/phpLib/cwsvJudo
mkdir -p build/.uploadMarker/phpLib/phpcount
curl \
--upload-file $^ \
--user cwsvjudo:Dee4oquu \
ftp://cwsvjudo.square7.net/ressourcen/$(patsubst build/%.php,%.php,$^) \
--ftp-create-dirs
curl \
--upload-file $^ \
--user cwsvjudo:***REMOVED*** \
ftp://cwsvjudo.bplaced.net/ressourcen/$(patsubst build/%.php,%.php,$^) \
--ftp-create-dirs
touch $@
build/.uploadMarker/css/%.css: build/css/%.css
mkdir -p build/.uploadMarker/css
curl \
@@ -54,3 +84,17 @@ build/.uploadMarker/css/%.css: build/css/%.css
ftp://cwsvjudo.bplaced.net/pages/responsive/$(patsubst build/%,%,$^) \
--ftp-create-dirs
touch $@
build/.uploadMarker/config/%: config/%
mkdir -p build/.uploadMarker/config
curl \
--upload-file $^ \
--user cwsvjudo:Dee4oquu \
ftp://cwsvjudo.square7.net/$(patsubst build/%,%,$^) \
--ftp-create-dirs
curl \
--upload-file $^ \
--user cwsvjudo:***REMOVED*** \
ftp://cwsvjudo.bplaced.net/$(patsubst build/%,%,$^) \
--ftp-create-dirs
touch $@