diff --git a/Makefile b/Makefile index f7f0727df..ea1cbd5ab 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,7 @@ DESTDIR?=www-export STYLE=xsl/xhtml5.xsl DS_STYLE=xsl/datenspuren/xhtml5.xsl DS_YEAR=2018 +AUTOTOPIA_STYLE=xsl/autotopia/xhtml5.xsl # Document-Type-Definition: DTD:=dtd/c3d2web.dtd # XML-Katalog (Pfad zu den DTDs) - wird benötigt vom Validator @@ -55,7 +56,7 @@ DS_SCHEDULE=$(patsubst content/static/datenspuren/$(DS_YEAR)/fahrplan/schedule/% DATESTAMP=build/.stamp-$(shell date +%Y-%m-%d) # Dateinamen der zu erzeugenden html-Dateien: -CONTENT=$(PAGES) $(NEWS_PAGES) $(DS_PAGES) $(DS_FEEDS) $(NEWSFILES) build/calendar.html build/datenspuren/$(DS_YEAR)/pois.json +CONTENT=$(PAGES) $(NEWS_PAGES) $(DS_PAGES) $(DS_FEEDS) $(AUTOTOPIA_PAGES) $(NEWSFILES) build/calendar.html build/datenspuren/$(DS_YEAR)/pois.json # 'normale' Seiten: PAGES:=$(patsubst content/pages/%.xml, build/%.html, $(wildcard content/pages/*.xml)) @@ -84,6 +85,8 @@ DS_FEEDS:= \ build/datenspuren/2013/mitschnitte-rss.xml \ build/datenspuren/2014/mitschnitte-rss.xml +AUTOTOPIA_PAGES:=$(patsubst content/autotopia/%.xml, build/autotopia/%.html, $(wildcard content/autotopia/*.xml)) + # Quellen NEWSITEMS:=$(wildcard content/news/*.xml) #CLEAN=$(CONTENT) $(NEWSFILES) $(WWW_CCC_DE_UPDATES) $(CALENDAR_SUMMARY) $(DS_PAGES) $(DS_FEEDS) @@ -121,6 +124,7 @@ export: www $(DATESTAMP): mkdir -p build mkdir -p build/datenspuren/$(DS_YEAR)/ + mkdir -p build/autotopia/ $(RM) $(wildcard build/.stamp-*) touch $@ @@ -353,6 +357,10 @@ build/datenspuren/$(DS_YEAR)/pois.json: wget -O $@ --post-data="data=[out:json];($(foreach a, 'amenity'='restaurant' 'amenity'='fast_food' 'amenity'='cafe' 'amenity'='ice_cream' 'amenity'='bakery' 'shop'='convenience' 'shop'='supermarket' 'shop'='tobacco' 'amenity'='pub' 'amenity'='biergarten' 'amenity'='drinking_water', $(foreach t, node way relation, $t(51.06,13.70,51.10,13.74)[${a}];)));out center qt;" http://overpass-api.de/api/interpreter +build/autotopia/%html : STYLE=$(AUTOTOPIA_STYLE) +build/autotopia/%.html: content/autotopia/%.xml $(AUTOTOPIA_STYLE) news.xml + $(call xml_process) + xhtml5-validate: $(patsubst build/%.html, build/%.html.xhtml5-validate, $(CONTENT)) build/%.html.xhtml5-validate: build/%.html ./scripts/validate_xhtml5.sh $< diff --git a/content/autotopia/index.xml b/content/autotopia/index.xml new file mode 100644 index 000000000..8d5e48a78 --- /dev/null +++ b/content/autotopia/index.xml @@ -0,0 +1,13 @@ + + + + + +

+ …eine Veranstaltungsreihe. +

+ +

News

+ + +
diff --git a/content/static/autotopia/autotopia.css b/content/static/autotopia/autotopia.css new file mode 100644 index 000000000..ab3e38ab4 --- /dev/null +++ b/content/static/autotopia/autotopia.css @@ -0,0 +1,34 @@ +body { + background-color: white; + color: #111; + margin: 0; + padding: 0; +} + +.wrapper { + margin: 0.5em auto; + max-width: 60em; + min-height: 560px; + background: right top no-repeat url('autotopia.png'); + /* make a "containing block" */ + position: relative; +} + +nav ul, nav ul li { + list-style-type: none; + margin: 0; + padding: 0; +} +nav ul li a { + display: inline-block; + width: 0; + height: 0; + overflow: hidden; + padding: 30px 40px 0 0; + text-decoration: none; +} +nav .index { + position: absolute; + right: 375px; + top: 110px; +} diff --git a/content/static/autotopia/autotopia.png b/content/static/autotopia/autotopia.png new file mode 100644 index 000000000..957b86890 Binary files /dev/null and b/content/static/autotopia/autotopia.png differ diff --git a/xsl/autotopia/xhtml5.xsl b/xsl/autotopia/xhtml5.xsl new file mode 100644 index 000000000..392da8cbd --- /dev/null +++ b/xsl/autotopia/xhtml5.xsl @@ -0,0 +1,121 @@ + + + + + + + + + + <!DOCTYPE html> + + + + + + + + + + + + missing title + + + + + + + + +
+ +
+ +
+
+ + +
+ + + + + + + + + + + + + + + + <xsl:text>Autotopia — </xsl:text> + <xsl:value-of select="$title" /> + + + + + + + + + + + + + + + +

+ + + + + + + + +

+ + + + + +
+
+
+
+ + + + + +