From 7bc9bc7812701d236e16f6da8b2215114a66e31c Mon Sep 17 00:00:00 2001 From: "https://id.koumbit.net/anarcat" Date: Sat, 18 Feb 2012 13:32:26 -0400 Subject: note KML and GeoJSON support --- doc/plugins/contrib/osm.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/plugins/contrib/osm.mdwn b/doc/plugins/contrib/osm.mdwn index de0623da9..cee6be0c7 100644 --- a/doc/plugins/contrib/osm.mdwn +++ b/doc/plugins/contrib/osm.mdwn @@ -4,7 +4,7 @@ Openstreetmap/Openlayers support for ikiwiki -------------------------------------------- -This plugin provides simple Openstreetmap/Openlayers support for ikiwiki. It can embed Openstreetmap viewports within a page or link to a bigger map that will have multiple markers, generated with a CSV-style POI list based on the different calling pages. Multiple distinct maps on a single wiki are supported. +This plugin provides simple Openstreetmap/Openlayers support for ikiwiki. It can embed Openstreetmap viewports within a page or link to a bigger map that will have multiple markers, generated with a KML (or CSV, or GeoJSON) datafile of markers based on the different calling pages. Multiple distinct maps on a single wiki are supported. Plugin was originally written by [[the techno-viking|http://techno-viking.com/posts/ikiwiki-maps/]] and fixed up by [[anarcat]]. Code is available at `git://src.anarcat.ath.cx/ikiwiki-osm.git`. -- cgit v1.2.3 From 0312eb59674272d6de05ca0d4fe0748e90fbf6f5 Mon Sep 17 00:00:00 2001 From: "https://id.koumbit.net/anarcat" Date: Sun, 19 Feb 2012 20:43:15 -0400 Subject: --- doc/todo/internal_definition_list_support.mdwn | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 doc/todo/internal_definition_list_support.mdwn diff --git a/doc/todo/internal_definition_list_support.mdwn b/doc/todo/internal_definition_list_support.mdwn new file mode 100644 index 000000000..4348e76f8 --- /dev/null +++ b/doc/todo/internal_definition_list_support.mdwn @@ -0,0 +1,37 @@ +While ikiwiki can support definition lists (`dl/dt/dd`) through [[multimarkdown|mdwn]], it doesn't actually /do/ anything with those valuable definitions. It would be interesting for third party plugins to have access to this stuff as a proper data structure. This is what allows MoinMoin to have plugins that collect that data across multiple pages and tabulate it, for example. + +What I am proposing here is that the [[variables exported to plugins|plugins/write/#index6h2]] be extended to include a `%dictionnaries` hash. For a markup like this: + +[[!format txt """ +Apple +: Apple is a fruit +: It's also a computer company +Orange +: Orange is a fruit +"""]] + +would result in a data structure like this: + +[[!format txt """ +%dicts = { + 'Apple' => [ "Apple is a fruit", "It's also a computer company" ], + 'Orange' => [ "Orange is a fruit" ], +} +"""]] + +Now, I know I can write myself a `format()` parser that would do this on all pages in my own plugin, but then it would need to be adapted to all markups, while markup formatters should be the ones implementing this directly, if possible. + +My first use case for this would be to extend the [[plugins/contrib/osm]] plugin to tap into those lists, so that I could have this data in the page, visible to the user: + +[[!format txt """ +Longitude +: -45.30 +Latitude +: 73.67 +"""]] + +and then reuse that data in the plugin. + +Then for us running the humongous [[koumbit wiki|https://wiki.koumbit.net/]], it is a necessary step to be able to migrate away from MoinMoin to Ikiwiki as we have a lot of pages that tabulate information like this. For example, see our [[ServerList|https://wiki.koumbit.net/ServerList]] ([[source|https://wiki.koumbit.net/ServerList?action=raw]]), being generated from pages like [[this one|https://wiki.koumbit.net/metis.koumbit.net]]. + +If there are no objections to that concept, I may try to start coding patches. Otherwise this is really just a [[wishlist]]. -- cgit v1.2.3 From 42134152faec7608c503e91199a516822aef2006 Mon Sep 17 00:00:00 2001 From: "https://id.koumbit.net/anarcat" Date: Sun, 19 Feb 2012 20:51:27 -0400 Subject: --- doc/plugins/contrib/osm.mdwn | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/plugins/contrib/osm.mdwn b/doc/plugins/contrib/osm.mdwn index cee6be0c7..2ef20c8ab 100644 --- a/doc/plugins/contrib/osm.mdwn +++ b/doc/plugins/contrib/osm.mdwn @@ -10,3 +10,4 @@ Plugin was originally written by [[the techno-viking|http://techno-viking.com/po See also [[plugins/contrib/googlemaps]]. +This plugin would be greatly improved by [[todo/internal_definition_list_support]]. -- cgit v1.2.3 From f450b7ce99a782222545831b3280b2b3e826e573 Mon Sep 17 00:00:00 2001 From: "https://id.koumbit.net/anarcat" Date: Sun, 19 Feb 2012 21:09:40 -0400 Subject: link to the readme --- doc/plugins/contrib/osm.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/plugins/contrib/osm.mdwn b/doc/plugins/contrib/osm.mdwn index 2ef20c8ab..098170a1a 100644 --- a/doc/plugins/contrib/osm.mdwn +++ b/doc/plugins/contrib/osm.mdwn @@ -6,7 +6,7 @@ Openstreetmap/Openlayers support for ikiwiki This plugin provides simple Openstreetmap/Openlayers support for ikiwiki. It can embed Openstreetmap viewports within a page or link to a bigger map that will have multiple markers, generated with a KML (or CSV, or GeoJSON) datafile of markers based on the different calling pages. Multiple distinct maps on a single wiki are supported. -Plugin was originally written by [[the techno-viking|http://techno-viking.com/posts/ikiwiki-maps/]] and fixed up by [[anarcat]]. Code is available at `git://src.anarcat.ath.cx/ikiwiki-osm.git`. +Plugin was originally written by [[the techno-viking|http://techno-viking.com/posts/ikiwiki-maps/]] and fixed up by [[anarcat]]. Code is available at `git://src.anarcat.ath.cx/ikiwiki-osm.git`. See [[this page|http://anarcat.ath.cx/software/ikiwiki-osm/README]] for a more complete description. See also [[plugins/contrib/googlemaps]]. -- cgit v1.2.3 From 40ad087b339942c677728518587f99c9d3b723d1 Mon Sep 17 00:00:00 2001 From: "https://id.koumbit.net/anarcat" Date: Sun, 19 Feb 2012 21:13:16 -0400 Subject: --- doc/plugins/contrib/osm.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/plugins/contrib/osm.mdwn b/doc/plugins/contrib/osm.mdwn index 098170a1a..a4ddbcb37 100644 --- a/doc/plugins/contrib/osm.mdwn +++ b/doc/plugins/contrib/osm.mdwn @@ -6,7 +6,7 @@ Openstreetmap/Openlayers support for ikiwiki This plugin provides simple Openstreetmap/Openlayers support for ikiwiki. It can embed Openstreetmap viewports within a page or link to a bigger map that will have multiple markers, generated with a KML (or CSV, or GeoJSON) datafile of markers based on the different calling pages. Multiple distinct maps on a single wiki are supported. -Plugin was originally written by [[the techno-viking|http://techno-viking.com/posts/ikiwiki-maps/]] and fixed up by [[anarcat]]. Code is available at `git://src.anarcat.ath.cx/ikiwiki-osm.git`. See [[this page|http://anarcat.ath.cx/software/ikiwiki-osm/README]] for a more complete description. +Plugin was originally written by [[the techno-viking|http://techno-viking.com/posts/ikiwiki-maps/]] and fixed up by [[anarcat]]. Code is available at `git://src.anarcat.ath.cx/ikiwiki-osm.git`. See [[this page|http://anarcat.ath.cx/software/ikiwiki-osm/README]] for a more complete description and [[the Mtl-mesh wiki|http://mesh.openisp.ca/nodes/anarcat]] for a sample of what this plugin can do. See also [[plugins/contrib/googlemaps]]. -- cgit v1.2.3 From b530e8be09f9011ff058bc27a4da276905b8f583 Mon Sep 17 00:00:00 2001 From: "http://kerravonsen.dreamwidth.org/" Date: Sun, 19 Feb 2012 21:30:07 -0400 Subject: pointing out the existence of field --- doc/todo/internal_definition_list_support.mdwn | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/todo/internal_definition_list_support.mdwn b/doc/todo/internal_definition_list_support.mdwn index 4348e76f8..4550e4e32 100644 --- a/doc/todo/internal_definition_list_support.mdwn +++ b/doc/todo/internal_definition_list_support.mdwn @@ -35,3 +35,6 @@ and then reuse that data in the plugin. Then for us running the humongous [[koumbit wiki|https://wiki.koumbit.net/]], it is a necessary step to be able to migrate away from MoinMoin to Ikiwiki as we have a lot of pages that tabulate information like this. For example, see our [[ServerList|https://wiki.koumbit.net/ServerList]] ([[source|https://wiki.koumbit.net/ServerList?action=raw]]), being generated from pages like [[this one|https://wiki.koumbit.net/metis.koumbit.net]]. If there are no objections to that concept, I may try to start coding patches. Otherwise this is really just a [[wishlist]]. + +> Have you looked at the [[plugins/contrib/field]] plugin? This gives you the infrastructure, and all you need is to write a plugin that parses the definition list format. Then you could use [[plugins/contrib/getfield]], [[plugins/contrib/ftemplate]] and/or [[plugins/contrib/report]] to do what you like with the data. +> --[[KathrynAndersen]] -- cgit v1.2.3 From af96c082ee556cb2e110e67f32a901bbe84b0a76 Mon Sep 17 00:00:00 2001 From: testzar Date: Mon, 20 Feb 2012 05:59:29 -0400 Subject: code block test --- doc/sandbox.mdwn | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/sandbox.mdwn b/doc/sandbox.mdwn index c3fb32b30..be6abdbde 100644 --- a/doc/sandbox.mdwn +++ b/doc/sandbox.mdwn @@ -116,6 +116,13 @@ Now we try to write a "code" block starting with a hash sign $ another test +Oh, let's try to do the same thing using sane syntax instead: + +~~~ +# test 1,2,3 +$ another test +~~~ + Now let's write the same block, with a bullest list preceding it. -- cgit v1.2.3 From 950a45ec7709203716db3df0dea29fb0f236b773 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawk8xAM2eNwroSSl-Pb9eqkb9apWStenU2U" Date: Mon, 20 Feb 2012 07:23:46 -0400 Subject: --- doc/sandbox.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/sandbox.mdwn b/doc/sandbox.mdwn index be6abdbde..6d589e33b 100644 --- a/doc/sandbox.mdwn +++ b/doc/sandbox.mdwn @@ -1,7 +1,7 @@ # Sandbox [[!pagestats pages="/tags/*"]] - +ttt [[!sidebar content="dfdsfsf"" This is my custom sidebar for this page. -- cgit v1.2.3 From 0726ac642068429d86f548c66904f087f7b2ffa6 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawk8xAM2eNwroSSl-Pb9eqkb9apWStenU2U" Date: Mon, 20 Feb 2012 07:24:39 -0400 Subject: --- doc/sandbox.mdwn | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/sandbox.mdwn b/doc/sandbox.mdwn index 6d589e33b..47785d0bf 100644 --- a/doc/sandbox.mdwn +++ b/doc/sandbox.mdwn @@ -1,6 +1,7 @@ # Sandbox [[!pagestats pages="/tags/*"]] +<<<<<<< HEAD ttt [[!sidebar content="dfdsfsf"" This is my custom sidebar for this page. -- cgit v1.2.3 From 045d64720475bf004fad45bbaa258b7c34984c45 Mon Sep 17 00:00:00 2001 From: spalax Date: Mon, 20 Feb 2012 17:29:42 -0400 Subject: Question an proposition about relevance of `ikiwiki-calendar` --- doc/ikiwiki-calendar/discussion.mdwn | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/ikiwiki-calendar/discussion.mdwn b/doc/ikiwiki-calendar/discussion.mdwn index 0fa062413..1b01761c8 100644 --- a/doc/ikiwiki-calendar/discussion.mdwn +++ b/doc/ikiwiki-calendar/discussion.mdwn @@ -9,3 +9,13 @@ to I ran into (for me) unexpected behaviour with double quotes, since when I tried it in the interactive shell, the "!" made it fail ([history expansion](http://mywiki.wooledge.org/BashPitfalls#echo_.22Hello_World.21.22)). I thought "aha, it should be escaped!", did so, and did not get any error messages, but it no longer functioned as intended (as per the earlier linked page). The latter line will work everywhere, not just in environments without history expansion. I think trying a command manually before putting it into crontab is common, and this would avoid the possible user issue I ran into. + +---- + +I wonder what this program (ikiwiki-calendar) is useful for. Would not it be simpler to have the [[calendar|ikiwiki/directive/calendar]] directive generate the `archive_base/year/month.mdwn` files on the fly, as are the tag pages generated by the [[tag|plugins/tag]] plugin? This solution would have the advantage of automatically generating the right calendar pages, instead of having to tell ikiwiki-calendar which years to take into account. + +Using this solution would mean to have the pagespec stored somewhere in the configuration. But this is already the case, as the pagespec used by [[ikiwiki-calendar]] is either set in the configuration file of the wiki, or in the crontab or whatever script used to call ikiwiki-calendar. + +Having done this, the only purpose of ikiwiki-calendar would be to re-generate the wiki on a daily (or whatever frequency) basis, which can be done using ikiwiki instead of ikiwiki-calendar. + +Did I miss something? If I am right, I offer to write the necessary patch, copied and adapted from the tag plugin, to generate the pages `archive_base/year/month.mdwn` on the fly. -- cgit v1.2.3 From 29ac3084bb4ba409ba2ad695690ebcb31497cfed Mon Sep 17 00:00:00 2001 From: spalax Date: Mon, 20 Feb 2012 17:30:41 -0400 Subject: =?UTF-8?q?Forgot=20to=20sign=20my=20message=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/ikiwiki-calendar/discussion.mdwn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/ikiwiki-calendar/discussion.mdwn b/doc/ikiwiki-calendar/discussion.mdwn index 1b01761c8..fc80470fc 100644 --- a/doc/ikiwiki-calendar/discussion.mdwn +++ b/doc/ikiwiki-calendar/discussion.mdwn @@ -19,3 +19,5 @@ Using this solution would mean to have the pagespec stored somewhere in the conf Having done this, the only purpose of ikiwiki-calendar would be to re-generate the wiki on a daily (or whatever frequency) basis, which can be done using ikiwiki instead of ikiwiki-calendar. Did I miss something? If I am right, I offer to write the necessary patch, copied and adapted from the tag plugin, to generate the pages `archive_base/year/month.mdwn` on the fly. + +-- Spalax -- cgit v1.2.3