From 219e7e29a49a55a02e5ec6213a41aa82afdad5a0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 14 Jul 2008 10:14:13 -0400 Subject: web commit by intrigeri: initial pedigree plugin proposal --- doc/todo/pedigree_plugin.mdwn | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 doc/todo/pedigree_plugin.mdwn diff --git a/doc/todo/pedigree_plugin.mdwn b/doc/todo/pedigree_plugin.mdwn new file mode 100644 index 000000000..2ff9487f1 --- /dev/null +++ b/doc/todo/pedigree_plugin.mdwn @@ -0,0 +1,30 @@ +After realizing (thanks to +[[Allow_TITLE_to_include_part_of_the_path_in_addition_to_the_basename]]) +that I needed some kind of "parentlinks on steroids", I wrote a new +plugin, called pedigree. + +This plugin provides a bunch of loops that one can use in his/her +`HTML::Template`'s to iterate over all or a subset of a page's +parents. Inside these loops, half a dozen variables are made +available, in addition to `PAGE` and `URL` that are already provided +by parentlinks. + +Amongst many possibilities, one can e.g. simply use this plugin to +give every parent link a different `class=` attribute, depending +either on its depth in the path leading to the current page, or on its +distance to it. + +The code and documentation (including simple and complex usage +examples) are in the 'pedigree' Git branch in this repo: + + git://repo.or.cz/ikiwiki/intrigeri.git + +Seems there is also a [gitweb](http://repo.or.cz/w/ikiwiki/intrigeri.git). + +Any opinions on the idea/design/implementation? + +What needs to be changed so that it's possible to include it in +mainline ikiwiki? + +(I'll try never to rebase this branch, but writing this plugin has +been a pretext for me to start learning Git, so...) -- cgit v1.2.3 From a3c8465565cdee1f5d71c4a537329e21593c750a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 14 Jul 2008 10:15:37 -0400 Subject: web commit by http://ptecza.myopenid.com/: * Broken URL --- doc/bugs/Broken_URL_to_your_blog_script.mdwn | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/bugs/Broken_URL_to_your_blog_script.mdwn diff --git a/doc/bugs/Broken_URL_to_your_blog_script.mdwn b/doc/bugs/Broken_URL_to_your_blog_script.mdwn new file mode 100644 index 000000000..0099104d4 --- /dev/null +++ b/doc/bugs/Broken_URL_to_your_blog_script.mdwn @@ -0,0 +1,8 @@ +Joey, I would like to see your blog script I've found +at [[Tips|tips/blog_script]] page, but it seems that the URL +(http://git.kitenet.net/?p=joey/home;a=blob_plain;f=bin/blog) +to its Git repo is broken: + + 403 Forbidden - No such project + +--[[Paweł|ptecza]] -- cgit v1.2.3 From 59ad1a440aa71be06f2db8fdd1edb98f3f0bd39b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 14 Jul 2008 10:15:53 -0400 Subject: web commit by intrigeri: added link to pedigree_plugin --- ...w_TITLE_to_include_part_of_the_path_in_addition_to_the_basename.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/todo/Allow_TITLE_to_include_part_of_the_path_in_addition_to_the_basename.mdwn b/doc/todo/Allow_TITLE_to_include_part_of_the_path_in_addition_to_the_basename.mdwn index 27d238ecd..b97c81efa 100644 --- a/doc/todo/Allow_TITLE_to_include_part_of_the_path_in_addition_to_the_basename.mdwn +++ b/doc/todo/Allow_TITLE_to_include_part_of_the_path_in_addition_to_the_basename.mdwn @@ -75,5 +75,5 @@ a dedicated plugin, called `genealogictitle` or whatever, and : >> Well, it seems I once more designed a solution before clearly >> defining my problem... What I really need is more generic, can be ->> done as a plugin, and deserves its own todo item (yet to come), so +>> done as a plugin, and deserves its own [[todo|pedigree_plugin]], so >> I'm tagging this one wontfix^W [[done]]. I'm sorry. -- intrigeri -- cgit v1.2.3 From 5f4c424f3b549571330f43109eb022ddd16f35ba Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 14 Jul 2008 10:18:50 -0400 Subject: web commit by intrigeri: added suggestion to move functionnality from the core to pedigree plugin --- doc/todo/pedigree_plugin.mdwn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/todo/pedigree_plugin.mdwn b/doc/todo/pedigree_plugin.mdwn index 2ff9487f1..fb1e2a4e5 100644 --- a/doc/todo/pedigree_plugin.mdwn +++ b/doc/todo/pedigree_plugin.mdwn @@ -28,3 +28,5 @@ mainline ikiwiki? (I'll try never to rebase this branch, but writing this plugin has been a pretext for me to start learning Git, so...) + +To finish with, it seems no plugin bundled with ikiwiki uses the current parentlinks implementation, so one could event think of moving it from the core to this plugin (which should then be enabled by default, since the default templates do use parentlinks ;). -- cgit v1.2.3 From f8de860a44eabe5f954641d48d0bdf2e804519d7 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 14 Jul 2008 11:29:19 -0400 Subject: web commit by http://ptecza.myopenid.com/: * Request for color plugin --- doc/todo/color_plugin.mdwn | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 doc/todo/color_plugin.mdwn diff --git a/doc/todo/color_plugin.mdwn b/doc/todo/color_plugin.mdwn new file mode 100644 index 000000000..f8fd11091 --- /dev/null +++ b/doc/todo/color_plugin.mdwn @@ -0,0 +1,16 @@ +Recently I've wanted to colour some piece of text on my Ikiwiki page. +It seems that Markdown can do it only using HTML tags, so I used +<span class="color">foo bar baz</span>. + +However, in my opinion mixing Markdown syntax and HTML tags is rather ugly, +so maybe we should create a new color plugin to add more color to Ikiwiki ;) +I know that another Wikis have similar plugin, for example +[WikiDot](http://www.wikidot.com/). + +I've noticed that htmlscrubber plugin strips `style` attribute, because of +security, so probably we need to use `class` attribute of HTML. But then +we have to customize our `local.css` file to add all color we want to use. +It's not as easy in usage like color name or definition as plugin argument, +but I don't have a better idea right now. + +What do you think about it? --[[Paweł|ptecza]] -- cgit v1.2.3