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

master
Joey Hess 2010-10-23 15:02:58 -04:00
commit 9aaae1b2de
9 changed files with 50 additions and 4 deletions

View File

@ -0,0 +1,5 @@
I created [[sandbox/revert me]] and then tried the revert button on [[recentchanges]], but I was not allowed to revert it. The specific error was
Error: you are not allowed to change sandbox/revert_me.mdwn
I've just tried reading through the revert code, and I haven't figured out what permission I am lacking. Perhaps the error message could be a little clearer on that. The error might have been thrown by git_parse_changes in git.pm or check_canchange in IkiWiki.pm, via IkiWiki::Receive. -- Jon

View File

@ -0,0 +1,7 @@
I have been mucking about with ikiwiki for two whole days now.
I like many things about it. Even though I've been spending most of my time wrestling with css I did manage to write a whole lot of blog posts and love what ikiwiki is doing for the "revise" part of my writing cycle. And I like the idea of integrating the wiki and the blog into one unifying architecture....
But... I would like very much to have different page templates for blogging and wiki-ing, some way of specifying that for stuff in the "/posts" directory I'd rather use blogpost.tmpl rather than page.tmpl. I just spent a few minutes looking at the perl for this (I assume Render.pm) and my mind dumped core...
(generically, some way to specify output formatting on a subdirectory basis would be good)

View File

@ -0,0 +1,16 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawlY5yDefnXSHvWGbJ9kvhnAyQZiAAttENk"
nickname="Javier"
subject="comment 1"
date="2010-10-21T15:00:50Z"
content="""
You can do what you want with the [[ikiwiki/directive/pagetemplate]] directive, but in a slightly cumbersome way, because you have to say what template you want in every page that differs from the default.
See also: [[templates]]
And, a perhaps more proper solution to your problem, although I don't fully understand the way of tackling it, in [[todo/multiple_template_directories]].
If you could create a proper page in this wiki, centralizing all the knowledge dispersed in those pages, it would be nice ;)
--[[jerojasro]]
"""]]

View File

@ -0,0 +1,5 @@
I'd like to be able to do PageSpec matches independent of the Ikiwiki checkout, but at best I'm currently restricted to copying over and using whatever is in the indexdb with this approach:
perl -MIkiWiki -le '$config{wikistatedir}=".ikiwiki"; IkiWiki::loadindex(); print foreach pagespec_match_list("", shift)' "bugs/*"
I get the impression there's a way to build up enough state to run pagespec matches without doing any rendering, but I don't know how. Any ideas? -- JoeRayhawk

View File

@ -34,11 +34,15 @@ large chunks of marked up text to be embedded into a template:
The template is a regular wiki page, located in the `templates/` The template is a regular wiki page, located in the `templates/`
subdirectory inside the source directory of the wiki. subdirectory inside the source directory of the wiki.
(Alternatively, templates can be stored in a directory outside the wiki, Alternatively, templates can be stored in a directory outside the wiki,
as files with the extension ".tmpl". as files with the extension ".tmpl".
By default, these are searched for in `/usr/share/ikiwiki/templates`; By default, these are searched for in `/usr/share/ikiwiki/templates`,
the `templatedir` setting can be used to make another directory be searched the `templatedir` setting can be used to make another directory be searched
first.) first. When referring to templates outside the wiki source directory, the "id"
parameter is not interpreted as a pagespec, and you must include the full filename
of the template page, including the ".tmpl" extension. E.g.:
\[[!template id=blogpost.tmpl]]
The template uses the syntax used by the [[!cpan HTML::Template]] perl The template uses the syntax used by the [[!cpan HTML::Template]] perl
module, which allows for some fairly complex things to be done. Consult its module, which allows for some fairly complex things to be done. Consult its

View File

@ -154,7 +154,7 @@ Personal sites and blogs
* [Ertug Karamatli](http://pages.karamatli.com) * [Ertug Karamatli](http://pages.karamatli.com)
* [Jonatan Walck](http://jonatan.walck.i2p/) a weblog + wiki over [I2P](http://i2p2.de/). Also [mirrored](http://jonatan.walck.se/) to the Internet a few times per day. * [Jonatan Walck](http://jonatan.walck.i2p/) a weblog + wiki over [I2P](http://i2p2.de/). Also [mirrored](http://jonatan.walck.se/) to the Internet a few times per day.
* [Daniel Wayne Armstrong](http://circuidipity.com/) * [Daniel Wayne Armstrong](http://circuidipity.com/)
* [Mukund](https://www.mukund.org/) * [Mukund](https://mukund.org/)
* [Nicolas Schodet](http://ni.fr.eu.org/) * [Nicolas Schodet](http://ni.fr.eu.org/)
* [weakish](http://weakish.github.com) * [weakish](http://weakish.github.com)
* [Thomas Kane](http://planetkane.org/) * [Thomas Kane](http://planetkane.org/)

View File

@ -9,3 +9,6 @@ inside `/usr/share/ikiwiki/themes/`.
A theme provides, via the underlay, an enhanced version of the regular A theme provides, via the underlay, an enhanced version of the regular
[[style.css]]. This leaves [[local.css]] free for you to further [[style.css]]. This leaves [[local.css]] free for you to further
customise. Themes can also provide header and background images. customise. Themes can also provide header and background images.
You can set the theme via the **theme** option in your config file (after
enabling the plugin). Refresh the wiki after changing it to see the changes.

View File

@ -0,0 +1 @@
* Hello

View File

@ -0,0 +1,5 @@
this looks good
alas,
Error: you are not allowed to change sandbox/revert_me.mdwn