mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 01:20:30 +00:00
Split demo from the geospatial plugin into its own edition
This commit is contained in:
parent
1dda5c8ab0
commit
1fbc35e15a
@ -11,9 +11,10 @@ fi
|
||||
echo "Using TW5_BUILD_VERSION as [$TW5_BUILD_VERSION]"
|
||||
|
||||
# Default to using tw5.com as the main edition for /index.html
|
||||
# >>> TEMPORARILY SET TO THE GEOSPATIAL PLUGIN; TO BE REVERTED BEFORE MERGING <<<
|
||||
|
||||
if [ -z "$TW5_BUILD_MAIN_EDITION" ]; then
|
||||
TW5_BUILD_MAIN_EDITION=./editions/tw5.com
|
||||
TW5_BUILD_MAIN_EDITION=./editions/geospatial
|
||||
fi
|
||||
|
||||
echo "Using TW5_BUILD_MAIN_EDITION as [$TW5_BUILD_MAIN_EDITION]"
|
||||
@ -351,6 +352,17 @@ node $TW5_BUILD_TIDDLYWIKI \
|
||||
--rendertiddler $:/core/save/empty plugins/tiddlywiki/highlight/empty.html text/plain \
|
||||
|| exit 1
|
||||
|
||||
# /plugins/tiddlywiki/geospatial/index.html Demo wiki with geospatial plugin
|
||||
# /plugins/tiddlywiki/geospatial/empty.html Empty wiki with geospatial plugin
|
||||
node $TW5_BUILD_TIDDLYWIKI \
|
||||
./editions/geospatialdemo \
|
||||
--verbose \
|
||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||
--output $TW5_BUILD_OUTPUT \
|
||||
--rendertiddler $:/core/save/all plugins/tiddlywiki/geospatial/index.html text/plain \
|
||||
--rendertiddler $:/core/save/empty plugins/tiddlywiki/geospatial/empty.html text/plain \
|
||||
|| exit 1
|
||||
|
||||
######################################################
|
||||
#
|
||||
# Language editions
|
||||
|
4
editions/geospatialdemo/tiddlers/DefaultTiddlers.tid
Normal file
4
editions/geospatialdemo/tiddlers/DefaultTiddlers.tid
Normal file
@ -0,0 +1,4 @@
|
||||
title: $:/DefaultTiddlers
|
||||
|
||||
HelloThere
|
||||
$:/plugins/tiddlywiki/geospatial
|
@ -1,4 +1,4 @@
|
||||
title: $:/plugins/tiddlywiki/geospatial/demo/flickr
|
||||
title: Flickr Demo
|
||||
caption: Flickr
|
||||
tags: $:/tags/Macro $:/tags/GeospatialDemo
|
||||
|
@ -1,4 +1,4 @@
|
||||
title: $:/plugins/tiddlywiki/geospatial/demos
|
||||
title: HelloThere
|
||||
|
||||
! Demos
|
||||
|
||||
@ -15,4 +15,4 @@ title: $:/plugins/tiddlywiki/geospatial/demos
|
||||
state=<<qualify "$:/state/demo-map">>
|
||||
/>
|
||||
|
||||
<<tabs tabsList:"[all[tiddlers+shadows]tag[$:/tags/GeospatialDemo]]" default:"$:/plugins/tiddlywiki/geospatial/demo/markers">>
|
||||
<<tabs tabsList:"[all[tiddlers+shadows]tag[$:/tags/GeospatialDemo]]" default:"markers">>
|
@ -1,5 +1,4 @@
|
||||
title: $:/plugins/tiddlywiki/geospatial/demo/layers
|
||||
caption: ~GeoLayers
|
||||
title: GeoLayers
|
||||
tags: $:/tags/GeospatialDemo
|
||||
|
||||
This is a list of all the tiddlers containing ~GeoJSON layers in this wiki (identified by the tag <<tag "$:/tags/GeoLayer">>). A ~GeoJSON layer identifies a region of the surface of the earth via a series of polygons defined as lines between consecutive points specified via latitude and longitude (and optional elevation). ~GeoJSON layers may also contain associated metadata in JSON format.
|
@ -1,5 +1,4 @@
|
||||
title: $:/plugins/tiddlywiki/geospatial/demo/markers
|
||||
caption: ~GeoMarkers
|
||||
title: GeoMarkers
|
||||
tags: $:/tags/GeospatialDemo
|
||||
|
||||
This is a list of all the tiddlers containing ~GeoJSON markers in this wiki (identified by the tag <<tag "$:/tags/GeoMarker">>). A ~GeoJSON marker identifies a location via latitude and longitude (and optional elevation) and may also contain associated metadata in JSON format.
|
@ -0,0 +1,6 @@
|
||||
title: $:/plugins/geospatial/demo/ViewTemplateBodyFilters
|
||||
tags: $:/tags/ViewTemplateBodyFilter
|
||||
list-before: $:/config/ViewTemplateBodyFilters/stylesheet
|
||||
|
||||
[tag[$:/tags/GeoLayer]then[ui/geolayer]]
|
||||
[tag[$:/tags/GeoMarker]then[ui/geomarker]]
|
@ -1,4 +1,4 @@
|
||||
title: $:/plugins/tiddlywiki/geospatial/demo/cities/LimehouseTownHall
|
||||
title: cities/LimehouseTownHall
|
||||
tags: $:/tags/GeoMarker
|
||||
caption: Limehouse Town Hall
|
||||
lat: 51.51216651476898
|
@ -1,4 +1,4 @@
|
||||
title: $:/plugins/tiddlywiki/geospatial/demo/cities/Motovun
|
||||
title: cities/Motovun
|
||||
tags: $:/tags/GeoMarker
|
||||
icon: Motovun Jack.svg
|
||||
caption: Motovun
|
@ -1,4 +1,4 @@
|
||||
title: $:/plugins/tiddlywiki/geospatial/demo/cities/NewYork
|
||||
title: cities/NewYork
|
||||
tags: $:/tags/GeoMarker
|
||||
caption: New York
|
||||
lat: 40.712778
|
@ -1,4 +1,4 @@
|
||||
title: $:/plugins/tiddlywiki/geospatial/demo/cities/Oxford
|
||||
title: cities/Oxford
|
||||
tags: $:/tags/GeoMarker
|
||||
caption: Oxford
|
||||
lat: 51.751944
|
@ -1,4 +1,4 @@
|
||||
title: $:/plugins/tiddlywiki/geospatial/demo/cities/Toronto
|
||||
title: cities/Toronto
|
||||
tags: $:/tags/GeoMarker
|
||||
caption: Toronto
|
||||
lat: 43.651070
|
@ -1,4 +1,4 @@
|
||||
title: $:/plugins/tiddlywiki/geospatial/demo/real-estate-demo
|
||||
title: real-estate-demo
|
||||
caption: Real Estate Demo
|
||||
tags: $:/tags/GeospatialDemo
|
||||
|
||||
@ -8,7 +8,7 @@ tags: $:/tags/GeospatialDemo
|
||||
This is a list of all the tiddlers containing ~GeoJSON markers in this wiki (identified by the tag <<tag "$:/tags/GeoMarker">>) viewed as both a map and a table.
|
||||
|
||||
<$let
|
||||
schema={{$:/plugins/tiddlywiki/geospatial/demo/real-estate-demo/schema}}
|
||||
schema={{real-estate-demo/schema}}
|
||||
>
|
||||
<div>
|
||||
<$list filter="[<schema>jsonindexes[columns]]" variable="index">
|
@ -0,0 +1,3 @@
|
||||
title: real-estate-demo/schema
|
||||
type: application/json
|
||||
|
@ -1,4 +1,4 @@
|
||||
title: $:/plugins/tiddlywiki/geospatial/demo/ui/geolayer
|
||||
title: ui/geolayer
|
||||
|
||||
\define create-intersection()
|
||||
<$let
|
@ -1,4 +1,4 @@
|
||||
title: $:/plugins/tiddlywiki/geospatial/demo/ui/geomarker
|
||||
title: ui/geomarker
|
||||
|
||||
\define default-traveltime-time() 5400
|
||||
|
16
editions/geospatialdemo/tiddlywiki.info
Normal file
16
editions/geospatialdemo/tiddlywiki.info
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"description": "Demo of the geospatial plugin for TiddlyWiki",
|
||||
"plugins": [
|
||||
"tiddlywiki/geospatial"
|
||||
],
|
||||
"themes": [
|
||||
"tiddlywiki/vanilla",
|
||||
"tiddlywiki/snowwhite"
|
||||
],
|
||||
"includeWikis": [
|
||||
],
|
||||
"build": {
|
||||
"index": [
|
||||
"--render","$:/core/save/all","geospatialdemo.html","text/plain"]
|
||||
}
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
title: $:/plugins/geospatial/demo/ViewTemplateBodyFilters
|
||||
tags: $:/tags/ViewTemplateBodyFilter
|
||||
list-before: $:/config/ViewTemplateBodyFilters/stylesheet
|
||||
|
||||
[tag[$:/tags/GeoLayer]then[$:/plugins/tiddlywiki/geospatial/demo/ui/geolayer]]
|
||||
[tag[$:/tags/GeoMarker]then[$:/plugins/tiddlywiki/geospatial/demo/ui/geomarker]]
|
@ -1,3 +0,0 @@
|
||||
title: $:/plugins/tiddlywiki/geospatial/demo/real-estate-demo/schema
|
||||
type: application/json
|
||||
|
Loading…
Reference in New Issue
Block a user