diff --git a/core/modules/commands/build.js b/core/modules/commands/build.js index 8471119d7..60456372d 100644 --- a/core/modules/commands/build.js +++ b/core/modules/commands/build.js @@ -24,7 +24,7 @@ var Command = function(params,commander) { Command.prototype.execute = function() { // Get the build targets defined in the wiki - var buildTargets = $tw.boot.wikiInfo.build; + var buildTargets = $tw.boot.wikiInfo && $tw.boot.wikiInfo.build; if(!buildTargets) { return "No build targets defined"; } diff --git a/core/wiki/macros/CSS.tid b/core/wiki/macros/CSS.tid index 3702b1ff1..f80958a02 100644 --- a/core/wiki/macros/CSS.tid +++ b/core/wiki/macros/CSS.tid @@ -1,5 +1,5 @@ title: $:/core/macros/CSS -tags: $:/tags/Macro $:/tags/Global +tags: $:/tags/Macro \function colour(name) @@ -10,42 +10,54 @@ tags: $:/tags/Macro $:/tags/Global [function[colour],] \end function -\function box-shadow(shadow) -[[ -webkit-box-shadow: $(shadow)$; - -moz-box-shadow: $(shadow)$; - box-shadow: $(shadow)$;]substitute[]] +\define box-shadow(shadow) +`` +-webkit-box-shadow: $shadow$; + -moz-box-shadow: $shadow$; + box-shadow: $shadow$; +`` \end -\function filter(filter) -[[ -webkit-filter: $(filter)$; - -moz-filter: $(filter)$; - filter: $(filter)$;]substitute[]] +\define filter(filter) +`` +-webkit-filter: $filter$; + -moz-filter: $filter$; + filter: $filter$; +`` \end -\function transition(transition) -[[ -webkit-transition: $(transition)$; - -moz-transition: $(transition)$; - transition: $(transition)$;]substitute[]] +\define transition(transition) +`` +-webkit-transition: $transition$; + -moz-transition: $transition$; + transition: $transition$; +`` \end -\function transform-origin(origin) -[[ -webkit-transform-origin: $(origin)$; - -moz-transform-origin: $(origin)$; - transform-origin: $(origin)$;]substitute[]] +\define transform-origin(origin) +`` +-webkit-transform-origin: $origin$; + -moz-transform-origin: $origin$; + transform-origin: $origin$; +`` \end -\function background-linear-gradient(gradient) -[[ background-image: linear-gradient($(gradient)$); - background-image: -o-linear-gradient($(gradient)$); - background-image: -moz-linear-gradient($(gradient)$); - background-image: -webkit-linear-gradient($(gradient)$); - background-image: -ms-linear-gradient($(gradient)$);]substitute[]] +\define background-linear-gradient(gradient) +`` +background-image: linear-gradient($gradient$); +background-image: -o-linear-gradient($gradient$); +background-image: -moz-linear-gradient($gradient$); +background-image: -webkit-linear-gradient($gradient$); +background-image: -ms-linear-gradient($gradient$); +`` \end -\function column-count(columns) -[[-moz-column-count: $(columns)$; - -webkit-column-count: $(columns)$; - column-count: $(columns)$;]substitute[]] +\define column-count(columns) +`` +-moz-column-count: $columns$; +-webkit-column-count: $columns$; +column-count: $columns$; +`` \end \procedure datauri(title) diff --git a/core/wiki/macros/copy-to-clipboard.tid b/core/wiki/macros/copy-to-clipboard.tid index c0d177d7e..d05d014e2 100644 --- a/core/wiki/macros/copy-to-clipboard.tid +++ b/core/wiki/macros/copy-to-clipboard.tid @@ -1,5 +1,5 @@ title: $:/core/macros/copy-to-clipboard -tags: $:/tags/Macro $:/tags/Global +tags: $:/tags/Macro \whitespace trim diff --git a/core/wiki/macros/diff.tid b/core/wiki/macros/diff.tid index ed7ebfcf9..9c9a9849b 100644 --- a/core/wiki/macros/diff.tid +++ b/core/wiki/macros/diff.tid @@ -1,5 +1,5 @@ title: $:/core/macros/diff -tags: $:/tags/Macro $:/tags/Global +tags: $:/tags/Macro \whitespace trim diff --git a/core/wiki/macros/export.tid b/core/wiki/macros/export.tid index 5233da385..117359e08 100644 --- a/core/wiki/macros/export.tid +++ b/core/wiki/macros/export.tid @@ -1,5 +1,5 @@ title: $:/core/macros/export -tags: $:/tags/Macro $:/tags/Global +tags: $:/tags/Macro \function exportButtonFilename(baseFilename) [] [] +[join[]] diff --git a/core/wiki/macros/show-filter-count.tid b/core/wiki/macros/show-filter-count.tid index be06fcde1..cf6f7570c 100644 --- a/core/wiki/macros/show-filter-count.tid +++ b/core/wiki/macros/show-filter-count.tid @@ -1,5 +1,5 @@ title: $:/core/macros/show-filter-count -tags: $:/tags/Macro $:/tags/Global +tags: $:/tags/Macro \whitespace trim diff --git a/core/wiki/macros/tag-picker.tid b/core/wiki/macros/tag-picker.tid index 1aeb41e9d..ae3e16818 100644 --- a/core/wiki/macros/tag-picker.tid +++ b/core/wiki/macros/tag-picker.tid @@ -1,5 +1,5 @@ title: $:/core/macros/tag-picker -tags: $:/tags/Macro $:/tags/Global +tags: $:/tags/Macro first-search-filter: [subfilter!is[system]search:title] second-search-filter: [subfilteris[system]search:title] diff --git a/core/wiki/macros/testcase.tid b/core/wiki/macros/testcase.tid index a04cb540d..4417939d2 100644 --- a/core/wiki/macros/testcase.tid +++ b/core/wiki/macros/testcase.tid @@ -1,5 +1,5 @@ title: $:/core/macros/testcase -tags: $:/tags/Macro $:/tags/Global +tags: $:/tags/Macro \whitespace trim diff --git a/core/wiki/macros/timeline.tid b/core/wiki/macros/timeline.tid index 244de2c2b..ee3ecc49b 100644 --- a/core/wiki/macros/timeline.tid +++ b/core/wiki/macros/timeline.tid @@ -1,4 +1,4 @@ -tags: $:/tags/Macro $:/tags/Global +tags: $:/tags/Macro title: $:/core/macros/timeline