Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info

master
Joey Hess 2008-07-14 13:42:57 -04:00
commit 5acfbb50aa
4 changed files with 57 additions and 1 deletions

View File

@ -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]]

View File

@ -75,5 +75,5 @@ a dedicated plugin, called `genealogictitle` or whatever, and :
>> Well, it seems I once more designed a solution before clearly >> Well, it seems I once more designed a solution before clearly
>> defining my problem... What I really need is more generic, can be >> 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 >> I'm tagging this one wontfix^W [[done]]. I'm sorry. -- intrigeri

View File

@ -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]]

View File

@ -0,0 +1,32 @@
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...)
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 ;).