From 9cd1ddce7983960382d809adb8339effff58b3a6 Mon Sep 17 00:00:00 2001 From: neale Date: Wed, 15 Oct 2008 22:28:42 -0400 Subject: --- doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn b/doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn index 8cfd42e78..eb5fe5ce9 100644 --- a/doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn +++ b/doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn @@ -11,3 +11,7 @@ If I then inline that page, the (relative) URL no longer points to the right pla > > However, there is a simple way to avoid both problems: Use WikiLinks > and/or the [[img_directive|ikiwiki/directive/img]]. --[[Joey]] + +>> It would be nice if inlining a page just gave a tiny version of that page, though. +>> An iframe would be one way to do it, maybe not optimal. The presence of WikiLinks +>> and the img directive certainly make this a low-priority bug, though. --[[neale]] -- cgit v1.2.3 From 0414c629b6a33fbc1d0f93d76fe29d75bea452df Mon Sep 17 00:00:00 2001 From: neale Date: Wed, 15 Oct 2008 22:29:29 -0400 Subject: --- doc/bugs/neale.mdwn | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/bugs/neale.mdwn (limited to 'doc') diff --git a/doc/bugs/neale.mdwn b/doc/bugs/neale.mdwn new file mode 100644 index 000000000..364e58a02 --- /dev/null +++ b/doc/bugs/neale.mdwn @@ -0,0 +1 @@ +I have a keyboard and I'm not afraid to use it. -- cgit v1.2.3 From a1390e03f95543e3bf8fe31f97112a4c92dc149e Mon Sep 17 00:00:00 2001 From: neale Date: Wed, 15 Oct 2008 22:29:40 -0400 Subject: --- doc/users/neale.mdwn | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/users/neale.mdwn (limited to 'doc') diff --git a/doc/users/neale.mdwn b/doc/users/neale.mdwn new file mode 100644 index 000000000..364e58a02 --- /dev/null +++ b/doc/users/neale.mdwn @@ -0,0 +1 @@ +I have a keyboard and I'm not afraid to use it. -- cgit v1.2.3 From 9ae956e829c9aa50d978e0629ec7cda4e2854717 Mon Sep 17 00:00:00 2001 From: neale Date: Wed, 15 Oct 2008 22:30:36 -0400 Subject: --- doc/bugs/neale.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/bugs/neale.mdwn b/doc/bugs/neale.mdwn index 364e58a02..53ccd5e73 100644 --- a/doc/bugs/neale.mdwn +++ b/doc/bugs/neale.mdwn @@ -1 +1 @@ -I have a keyboard and I'm not afraid to use it. +Crud, I made the wrong page. I lose. -- cgit v1.2.3 From 0543e59eca1db017fd40a130e0af210cbbe16a52 Mon Sep 17 00:00:00 2001 From: neale Date: Wed, 15 Oct 2008 23:12:25 -0400 Subject: ahh --- doc/bugs/neale.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/bugs/neale.mdwn b/doc/bugs/neale.mdwn index 53ccd5e73..8b1378917 100644 --- a/doc/bugs/neale.mdwn +++ b/doc/bugs/neale.mdwn @@ -1 +1 @@ -Crud, I made the wrong page. I lose. + -- cgit v1.2.3 From c2bff24c6578c7ee263afc4ed28af64d99106bae Mon Sep 17 00:00:00 2001 From: neale Date: Wed, 15 Oct 2008 23:13:40 -0400 Subject: Oh well. --- doc/bugs/neale.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/bugs/neale.mdwn b/doc/bugs/neale.mdwn index 8b1378917..592b332ec 100644 --- a/doc/bugs/neale.mdwn +++ b/doc/bugs/neale.mdwn @@ -1 +1 @@ - +Hello everybody, I am an idiot and placed by user page in the bugs directory. -- cgit v1.2.3 From 594df81c54700cb46e4e9a7576ad70a2a2850958 Mon Sep 17 00:00:00 2001 From: neale Date: Wed, 15 Oct 2008 23:14:31 -0400 Subject: Joey's right, that's good enough. --- doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn | 4 ---- 1 file changed, 4 deletions(-) (limited to 'doc') diff --git a/doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn b/doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn index eb5fe5ce9..8cfd42e78 100644 --- a/doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn +++ b/doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn @@ -11,7 +11,3 @@ If I then inline that page, the (relative) URL no longer points to the right pla > > However, there is a simple way to avoid both problems: Use WikiLinks > and/or the [[img_directive|ikiwiki/directive/img]]. --[[Joey]] - ->> It would be nice if inlining a page just gave a tiny version of that page, though. ->> An iframe would be one way to do it, maybe not optimal. The presence of WikiLinks ->> and the img directive certainly make this a low-priority bug, though. --[[neale]] -- cgit v1.2.3 From 995d91675ebfa033eba162dad6e38185aa164a3e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 15 Oct 2008 23:47:12 -0400 Subject: rm --- doc/bugs/neale.mdwn | 1 - 1 file changed, 1 deletion(-) delete mode 100644 doc/bugs/neale.mdwn (limited to 'doc') diff --git a/doc/bugs/neale.mdwn b/doc/bugs/neale.mdwn deleted file mode 100644 index 592b332ec..000000000 --- a/doc/bugs/neale.mdwn +++ /dev/null @@ -1 +0,0 @@ -Hello everybody, I am an idiot and placed by user page in the bugs directory. -- cgit v1.2.3 From 2995ce6f2c9c3861547ff681ffbdbdf8c813f8ac Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 15 Oct 2008 23:48:58 -0400 Subject: thought --- doc/todo/clear_page_to_delete.mdwn | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 doc/todo/clear_page_to_delete.mdwn (limited to 'doc') diff --git a/doc/todo/clear_page_to_delete.mdwn b/doc/todo/clear_page_to_delete.mdwn new file mode 100644 index 000000000..0c218c987 --- /dev/null +++ b/doc/todo/clear_page_to_delete.mdwn @@ -0,0 +1,2 @@ +Would it make sense to automatically delete a page if it's edited and +cleared to be entirely empty (or only have whitespace)? Discuss. -- cgit v1.2.3 From 0517f9126cff724e62d92e4f637a1eca20f31ed7 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 15 Oct 2008 23:50:20 -0400 Subject: close --- doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn b/doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn index 8cfd42e78..8cda7a70f 100644 --- a/doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn +++ b/doc/bugs/images_in_inlined_pages_have_wrong_relative_URL.mdwn @@ -11,3 +11,5 @@ If I then inline that page, the (relative) URL no longer points to the right pla > > However, there is a simple way to avoid both problems: Use WikiLinks > and/or the [[img_directive|ikiwiki/directive/img]]. --[[Joey]] + +[[!tag done]] -- cgit v1.2.3 From 20404d7f5954cb5c4b3648557412781fb9f650b1 Mon Sep 17 00:00:00 2001 From: "http://xma.myopenid.com/" Date: Thu, 16 Oct 2008 05:03:15 -0400 Subject: Added my website (warning: not polished at all) --- doc/ikiwikiusers.mdwn | 1 + 1 file changed, 1 insertion(+) (limited to 'doc') diff --git a/doc/ikiwikiusers.mdwn b/doc/ikiwikiusers.mdwn index e5f978e12..ddf27d2c4 100644 --- a/doc/ikiwikiusers.mdwn +++ b/doc/ikiwikiusers.mdwn @@ -101,6 +101,7 @@ Personal sites and blogs * [Andrey Tarantsov's homepage](http://www.tarantsov.com/) * [Don Marti's blog](http://zgp.org/~dmarti/) * [[JonDowland]]'s [homepage](http://jmtd.net/) +* [[Xavier Maillard]] is using ikiwiki (http://maillard.mobi/~xma/wiki) Please feel free to add your own ikiwiki site! -- cgit v1.2.3 From 3b2079fd5ecd4fea91432497f3c1c9a19ccca5bb Mon Sep 17 00:00:00 2001 From: "http://xma.myopenid.com/" Date: Thu, 16 Oct 2008 05:12:37 -0400 Subject: New page --- doc/users/xma.mdwn | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 doc/users/xma.mdwn (limited to 'doc') diff --git a/doc/users/xma.mdwn b/doc/users/xma.mdwn new file mode 100644 index 000000000..cdae0cf6d --- /dev/null +++ b/doc/users/xma.mdwn @@ -0,0 +1,7 @@ +Hi, this is Xavier Maillard. + +I just started using [[ikiwiki]] for my own webspace at http://maillard.mobi/~xma/wiki + +I am learning how to effectively use it. + +Anyway, [[ikiwiki]] is really *awesome* ! -- cgit v1.2.3 From f2b00bd81bbd70b3e4298c47194b2157c1041443 Mon Sep 17 00:00:00 2001 From: "http://xma.myopenid.com/" Date: Thu, 16 Oct 2008 05:14:58 -0400 Subject: Update --- doc/users/xma.mdwn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/users/xma.mdwn b/doc/users/xma.mdwn index cdae0cf6d..de6b1bc51 100644 --- a/doc/users/xma.mdwn +++ b/doc/users/xma.mdwn @@ -1,4 +1,5 @@ -Hi, this is Xavier Maillard. +[[!meta title="Xavier Maillard"]] +# Xavier Maillard I just started using [[ikiwiki]] for my own webspace at http://maillard.mobi/~xma/wiki -- cgit v1.2.3 From ece5c0ea8a03acbd6dee8032c285ac0df7d76ead Mon Sep 17 00:00:00 2001 From: "http://alcopop.org/me/openid/" Date: Thu, 16 Oct 2008 07:51:04 -0400 Subject: Bundle::IkiWiki? --- doc/install/discussion.mdwn | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/install/discussion.mdwn b/doc/install/discussion.mdwn index abe909a94..18cf6e4f3 100644 --- a/doc/install/discussion.mdwn +++ b/doc/install/discussion.mdwn @@ -169,3 +169,7 @@ good. Date::Parse was already installed. --[[vibrog]] usemymalloc=n, bincompat5005=undef Not sure how to provide proper version information for you.--[[vibrog]] + +--- + +I've tried a couple of times and my cpan has never recognised Bundle::IkiWiki. Is that section of the page still accurate? -- [[JonDowland]] -- cgit v1.2.3 From 620770f07ffb6ab5e0884611a416b6cb248393c3 Mon Sep 17 00:00:00 2001 From: "http://xma.myopenid.com/" Date: Thu, 16 Oct 2008 09:27:20 -0400 Subject: Testing [[ikiwiki]] formatting rules --- doc/users/xma.mdwn | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc') diff --git a/doc/users/xma.mdwn b/doc/users/xma.mdwn index de6b1bc51..782b6eab6 100644 --- a/doc/users/xma.mdwn +++ b/doc/users/xma.mdwn @@ -6,3 +6,17 @@ I just started using [[ikiwiki]] for my own webspace at http://maillard.mobi/~xm I am learning how to effectively use it. Anyway, [[ikiwiki]] is really *awesome* ! + +## More about me + +I am CLI user living in the linux console. More precisely, I live in an [[GNU Emacs]] frame all day long. My main computer is an EeePC 901 running Slackware GNU/Linux 12.1. I do not have X installed (too lazy) but when in X, I am running an instance of [[CLFSWM]]. + +## Contacting me + +Various channels to contact me: + +- mail: xma@gnu.org +- jabber: xma01@jabber.fr +- mobile: +33 621-964-362 (I only anwser to people I know though) + +Voila. -- cgit v1.2.3 From fe4d7a6d3ad4915eb41cf0212821c1207457939c Mon Sep 17 00:00:00 2001 From: "http://xma.myopenid.com/" Date: Thu, 16 Oct 2008 09:45:49 -0400 Subject: creating Darcs as the RCS ? --- doc/forum/Darcs_as_the_RCS___63__.mdwn | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 doc/forum/Darcs_as_the_RCS___63__.mdwn (limited to 'doc') diff --git a/doc/forum/Darcs_as_the_RCS___63__.mdwn b/doc/forum/Darcs_as_the_RCS___63__.mdwn new file mode 100644 index 000000000..efc360573 --- /dev/null +++ b/doc/forum/Darcs_as_the_RCS___63__.mdwn @@ -0,0 +1,7 @@ +Hi, + +I have successfully installed and set up my first instance of [[ikiwiki]] on my dedicated server. Following [[joey]]'s screencasts made this easy (thank you). + +Currently, I have set up the RCS to be git but I do not like this very much. I'd rather want darcs but if I replace rcs settings, it fails. + +What should I put in the configuration file to use darcs ? -- cgit v1.2.3 From a16724ce5e70c4455be94141c5d6bcc632d93b81 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 16 Oct 2008 13:59:44 -0400 Subject: response --- doc/forum/Darcs_as_the_RCS___63__.mdwn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/forum/Darcs_as_the_RCS___63__.mdwn b/doc/forum/Darcs_as_the_RCS___63__.mdwn index efc360573..ea53006ea 100644 --- a/doc/forum/Darcs_as_the_RCS___63__.mdwn +++ b/doc/forum/Darcs_as_the_RCS___63__.mdwn @@ -5,3 +5,5 @@ I have successfully installed and set up my first instance of [[ikiwiki]] on my Currently, I have set up the RCS to be git but I do not like this very much. I'd rather want darcs but if I replace rcs settings, it fails. What should I put in the configuration file to use darcs ? + +> Darcs is not yet supported. It's being [[worked_on|todo/darcs]]. -- cgit v1.2.3 From 798a601395158ba214a1bb4d803f6670e4ed19e3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 16 Oct 2008 14:00:35 -0400 Subject: response --- doc/install/discussion.mdwn | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/install/discussion.mdwn b/doc/install/discussion.mdwn index 18cf6e4f3..815b80f14 100644 --- a/doc/install/discussion.mdwn +++ b/doc/install/discussion.mdwn @@ -173,3 +173,6 @@ Not sure how to provide proper version information for you.--[[vibrog]] --- I've tried a couple of times and my cpan has never recognised Bundle::IkiWiki. Is that section of the page still accurate? -- [[JonDowland]] + +> Are you running perl with the environemnt settings specified on the page? +> Can you show how it fails to find the bundle? --[[Joey]] -- cgit v1.2.3 From 75f1dbacbd7c3cfbc6d8440fcd21063f168fcbe0 Mon Sep 17 00:00:00 2001 From: "http://xma.myopenid.com/" Date: Thu, 16 Oct 2008 14:56:28 -0400 Subject: That's good news for me then ! Thank you. --- doc/forum/Darcs_as_the_RCS___63__.mdwn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/forum/Darcs_as_the_RCS___63__.mdwn b/doc/forum/Darcs_as_the_RCS___63__.mdwn index ea53006ea..2635690f7 100644 --- a/doc/forum/Darcs_as_the_RCS___63__.mdwn +++ b/doc/forum/Darcs_as_the_RCS___63__.mdwn @@ -7,3 +7,5 @@ Currently, I have set up the RCS to be git but I do not like this very much. I'd What should I put in the configuration file to use darcs ? > Darcs is not yet supported. It's being [[worked_on|todo/darcs]]. + +> > That's good news for me then ! Thank you. -- cgit v1.2.3 From c2a55bd735bf2978cc4b998847394a1853b8678f Mon Sep 17 00:00:00 2001 From: pesco Date: Thu, 16 Oct 2008 16:20:08 -0400 Subject: darcs rcs_add fixed. --- doc/todo/darcs.mdwn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/todo/darcs.mdwn b/doc/todo/darcs.mdwn index b8ddfd485..e5bf5ee27 100644 --- a/doc/todo/darcs.mdwn +++ b/doc/todo/darcs.mdwn @@ -546,4 +546,6 @@ Regarding the repository layout: There are two darcs repositories. One is the `s >> `rcs_commit_staged`. For some revision control systems, which >> automatically commit modifications, it would be a no-op. --[[Joey]] +>>> Done. --pesco + [[!tag patch]] -- cgit v1.2.3 From 5327fee1b25bc5f7df9471a20c52f506d28c6d98 Mon Sep 17 00:00:00 2001 From: PaulePanter Date: Fri, 17 Oct 2008 08:33:48 -0400 Subject: response --- ...there_a_pagespec_for_creation_dates_relative_to_today__63__.mdwn | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/forum/Is_there_a_pagespec_for_creation_dates_relative_to_today__63__.mdwn b/doc/forum/Is_there_a_pagespec_for_creation_dates_relative_to_today__63__.mdwn index e88400cd4..53c70e50a 100644 --- a/doc/forum/Is_there_a_pagespec_for_creation_dates_relative_to_today__63__.mdwn +++ b/doc/forum/Is_there_a_pagespec_for_creation_dates_relative_to_today__63__.mdwn @@ -17,6 +17,10 @@ Paul > somehow figure out that pages matched by it yesterday no longer match, > and that pages containing the pagespec need to be rebuilt. Which means > you'd also need a cron job. -> + +>> Thank you for the explanation. + > I suspect what you're trying to accomplish is > [[todo/tagging_with_a_publication_date]]? --[[Joey]] + +>> Yeah, something like that. Thanks! --[[PaulePanter]] -- cgit v1.2.3 From 37a0fbebd4d356316189cf147f5e41821234ddb7 Mon Sep 17 00:00:00 2001 From: "http://alcopop.org/me/openid/" Date: Fri, 17 Oct 2008 11:00:37 -0400 Subject: --- doc/todo/clear_page_to_delete.mdwn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/todo/clear_page_to_delete.mdwn b/doc/todo/clear_page_to_delete.mdwn index 0c218c987..243b9f55e 100644 --- a/doc/todo/clear_page_to_delete.mdwn +++ b/doc/todo/clear_page_to_delete.mdwn @@ -1,2 +1,4 @@ Would it make sense to automatically delete a page if it's edited and cleared to be entirely empty (or only have whitespace)? Discuss. + + I'd say so; yes. A method of deleting pages via the web would be great; I can't think of a use of keeping blank pages around. What about vandalism -- if someone blanks a page and deletes it and someone else wishes to restore it; or is undoing edits via the web a bigger issue? -- [[JonDowland]] -- cgit v1.2.3 From 578a4873535cb134229b4669e87a09e791b8530d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 17 Oct 2008 13:18:04 -0400 Subject: add news item for ikiwiki 2.67 --- doc/news/version_2.62.1.mdwn | 3 --- doc/news/version_2.67.mdwn | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) delete mode 100644 doc/news/version_2.62.1.mdwn create mode 100644 doc/news/version_2.67.mdwn (limited to 'doc') diff --git a/doc/news/version_2.62.1.mdwn b/doc/news/version_2.62.1.mdwn deleted file mode 100644 index e82ccfa21..000000000 --- a/doc/news/version_2.62.1.mdwn +++ /dev/null @@ -1,3 +0,0 @@ -ikiwiki 2.62.1 released with [[!toggle text="these changes"]] -[[!toggleable text=""" - * filecheck: Fixed two bits broken in move from attachment."""]] \ No newline at end of file diff --git a/doc/news/version_2.67.mdwn b/doc/news/version_2.67.mdwn new file mode 100644 index 000000000..a0911b58f --- /dev/null +++ b/doc/news/version_2.67.mdwn @@ -0,0 +1,17 @@ +ikiwiki 2.67 released with [[!toggle text="these changes"]] +[[!toggleable text=""" + * remove: Avoid $\_ breakage. (Stupid, stupid perl.) + * Updated Spanish translation from Victor Moral. + * lockedit: Support specifying which users (and IP addresses) a page + is locked for. This supports most of the ACL type things users have been + wanting to be done. Closes: #[443346](http://bugs.debian.org/443346) (It does not control who can read a + page, but that's out of scope for ikiwiki.) + * orphans: Fix unquoted page name in regexp. + * google: Plugin provides google site search, contributed by Peter Simons. + * Pass HTTPS variable through the wrapper so that CGI->https can be used + by plugins. Closes: #[502047](http://bugs.debian.org/502047) + * inline: Allow MTIME to be used in inlinepage.tmpl. + * inline: Use the feed's description in the rss and atom links. + Closes: #[502113](http://bugs.debian.org/502113) + * aggregate: Avoid bug that caused immediate expiration of items + with a date in the future."""]] \ No newline at end of file -- cgit v1.2.3 From 84a77567c09d0c92c0d54fceeade0dbe8658500c Mon Sep 17 00:00:00 2001 From: "http://xma.myopenid.com/" Date: Fri, 17 Oct 2008 18:30:03 -0400 Subject: --- doc/forum/What_is_wrong_with_my_recentchange_page___63__.mdwn | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 doc/forum/What_is_wrong_with_my_recentchange_page___63__.mdwn (limited to 'doc') diff --git a/doc/forum/What_is_wrong_with_my_recentchange_page___63__.mdwn b/doc/forum/What_is_wrong_with_my_recentchange_page___63__.mdwn new file mode 100644 index 000000000..e4d7d7b89 --- /dev/null +++ b/doc/forum/What_is_wrong_with_my_recentchange_page___63__.mdwn @@ -0,0 +1,9 @@ +Hi again, + +I have finally finished my setup *but* I still have a problem with RecentChanges page. + +Can somebody check it for me http://maillard.mobi/~xma/wiki/recentchanges/ and tell what is wrong ? + +Thank you. + +--xma -- cgit v1.2.3 From b08feb5e0811048616e5d98fb20c17c4d9f8972d Mon Sep 17 00:00:00 2001 From: "http://xma.myopenid.com/" Date: Fri, 17 Oct 2008 18:34:28 -0400 Subject: --- doc/forum/What_is_wrong_with_my_recentchange_page___63__.mdwn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/forum/What_is_wrong_with_my_recentchange_page___63__.mdwn b/doc/forum/What_is_wrong_with_my_recentchange_page___63__.mdwn index e4d7d7b89..9c3188e02 100644 --- a/doc/forum/What_is_wrong_with_my_recentchange_page___63__.mdwn +++ b/doc/forum/What_is_wrong_with_my_recentchange_page___63__.mdwn @@ -2,8 +2,8 @@ Hi again, I have finally finished my setup *but* I still have a problem with RecentChanges page. -Can somebody check it for me http://maillard.mobi/~xma/wiki/recentchanges/ and tell what is wrong ? +Can somebody check it for me at [http://maillard.mobi/~xma/wiki/recentchanges/] and tell what is wrong ? Thank you. ---xma +--[[xma]] -- cgit v1.2.3 From 3690864e2ba9028f6440df6a12610a2499dea9c5 Mon Sep 17 00:00:00 2001 From: "http://jblevins.org/" Date: Fri, 17 Oct 2008 19:52:42 -0400 Subject: Patch for anchor-based change permalinks in recent changes feed --- doc/bugs/recentchanges_feed_links.mdwn | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/bugs/recentchanges_feed_links.mdwn b/doc/bugs/recentchanges_feed_links.mdwn index 14f1c26ba..9b2828901 100644 --- a/doc/bugs/recentchanges_feed_links.mdwn +++ b/doc/bugs/recentchanges_feed_links.mdwn @@ -92,3 +92,7 @@ to turn on? --Chapman Flack >>>>> required to compare ``s as opaque strings. >>>>> >>>>> --[[smcv]] + +>>>>>> Here's my attempt at a [[patch]] for anchor-based change permalinks: +>>>>>> . +>>>>>> --[[JasonBlevins]], 2008-10-17 -- cgit v1.2.3 From 79b376f9912891a8748fcbb4580969e4dbf7fc75 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 17 Oct 2008 20:28:18 -0400 Subject: Add an underlay for javascript, and add ikiwiki.js containing some utility code. * Add an underlay for javascript, and add ikiwiki.js containing some utility code. * toggle: Stop embedding the full toggle code on each page using it, and move it to toggle.js in the javascript underlay. --- IkiWiki/Plugin/attachment.pm | 7 +++-- IkiWiki/Plugin/toggle.pm | 69 ++++++++--------------------------------- debian/changelog | 9 ++++++ doc/plugins/write.mdwn | 29 +++++++++++++++++ po/ikiwiki.pot | 16 +++++----- underlays/javascript/ikiwiki.js | 37 ++++++++++++++++++++++ underlays/javascript/toggle.js | 29 +++++++++++++++++ 7 files changed, 129 insertions(+), 67 deletions(-) create mode 100644 underlays/javascript/ikiwiki.js create mode 100644 underlays/javascript/toggle.js (limited to 'doc') diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm index dcac3e820..6c1df488a 100644 --- a/IkiWiki/Plugin/attachment.pm +++ b/IkiWiki/Plugin/attachment.pm @@ -6,6 +6,7 @@ use strict; use IkiWiki 2.00; sub import { #{{{ + add_underlay("javascript"); hook(type => "getsetup", id => "attachment", call => \&getsetup); hook(type => "checkconfig", id => "attachment", call => \&checkconfig); hook(type => "formbuilder_setup", id => "attachment", call => \&formbuilder_setup); @@ -104,10 +105,10 @@ sub formbuilder_setup (@) { #{{{ $form->tmpl_param("field-upload" => ''); $form->tmpl_param("field-link" => ''); - # Add the javascript from the toggle plugin; - # the attachments interface uses it to toggle visibility. + # Add the toggle javascript; the attachments interface uses + # it to toggle visibility. require IkiWiki::Plugin::toggle; - $form->tmpl_param("javascript" => $IkiWiki::Plugin::toggle::javascript); + $form->tmpl_param("javascript" => IkiWiki::Plugin::toggle::include_javascript($params{page}, 1)); # Start with the attachments interface toggled invisible, # but if it was used, keep it open. if ($form->submitted ne "Upload Attachment" && diff --git a/IkiWiki/Plugin/toggle.pm b/IkiWiki/Plugin/toggle.pm index 610d38e3a..657d8d3c2 100644 --- a/IkiWiki/Plugin/toggle.pm +++ b/IkiWiki/Plugin/toggle.pm @@ -5,61 +5,8 @@ use warnings; use strict; use IkiWiki 2.00; -# Here's the javascript that makes this possible. A key feature is the use -# of css to hide toggleables, to avoid any flashing on page load. The css -# is only emitted after the javascript tests that it's going to be able to -# show the toggleables. -our $javascript=<<'EOF'; - -EOF - sub import { #{{{ + add_underlay("javascript"); hook(type => "getsetup", id => "toggle", call => \&getsetup); hook(type => "preprocess", id => "toggle", call => \&preprocess_toggle); @@ -121,12 +68,22 @@ sub format (@) { #{{{ if ($params{content}=~s!(
\s*)
!$1!g) { $params{content}=~s/
//g; - if (! ($params{content}=~s!^!$javascript!m)) { + if (! ($params{content}=~s!^()!$1.include_javascript($params{page})!em)) { # no tag, probably in preview mode - $params{content}=$javascript.$params{content}; + $params{content}=include_javascript($params{page}, 1).$params{content}; } } return $params{content}; } # }}} +sub include_javascript ($;$) { #{{{ + my $page=shift; + my $absolute=shift; + + return ''."\n". + ''; +} #}}} + 1 diff --git a/debian/changelog b/debian/changelog index b93da0aae..66d108e9e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +ikiwiki (2.68) UNRELEASED; urgency=low + + * Add an underlay for javascript, and add ikiwiki.js containing some utility + code. + * toggle: Stop embedding the full toggle code on each page using it, and + move it to toggle.js in the javascript underlay. + + -- Joey Hess Fri, 17 Oct 2008 20:11:02 -0400 + ikiwiki (2.67) unstable; urgency=low * remove: Avoid $_ breakage. (Stupid, stupid perl.) diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 1b78f5900..daf70c8e2 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -847,3 +847,32 @@ to a hash containing all the config items. They should also implement a By the way, to parse a ikiwiki setup file and populate `%config`, a program just needs to do something like: `use IkiWiki::Setup; IkiWiki::Setup::load($filename)` + +### Javascript + +Some plugins use javascript to make ikiwiki look a bit more web-2.0-ish. + +All javascript code should be put in `.js` files in the `javascript` +underlay, and plugins using those files can enable use of the underlay by +calling `add_underlay("javascript");` in their `import` function. + +You'll have to arrange for `'."\n". + ''; +} #}}} + +1 diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index bc997ffb0..8385c1aff 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -109,7 +109,9 @@ sub genpage ($$) { #{{{ backlinks => $backlinks, more_backlinks => $more_backlinks, mtime => displaytime($pagemtime{$page}), + mtime_raw => scalar localtime($pagemtime{$page}), ctime => displaytime($pagectime{$page}), + ctime_raw => scalar localtime($pagectime{$page}), baseurl => baseurl($page), ); diff --git a/debian/changelog b/debian/changelog index 66d108e9e..908eb1f53 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,8 @@ ikiwiki (2.68) UNRELEASED; urgency=low code. * toggle: Stop embedding the full toggle code on each page using it, and move it to toggle.js in the javascript underlay. + * relativedate: New javascript-alicious plugin that makes all dates display + relative, in a very nice way, if I say so myself. -- Joey Hess Fri, 17 Oct 2008 20:11:02 -0400 diff --git a/doc/plugins/ddate.mdwn b/doc/plugins/ddate.mdwn index e82760d88..741606a6e 100644 --- a/doc/plugins/ddate.mdwn +++ b/doc/plugins/ddate.mdwn @@ -1,5 +1,6 @@ [[!template id=plugin name=ddate author="[[Joey]]"]] [[!tag type/fun]] +[[!tag type/date]] Enables use of Discordian dates. `--timeformat` can be used to change the date format; see `ddate(1)`. diff --git a/doc/plugins/prettydate.mdwn b/doc/plugins/prettydate.mdwn index 9a67f5dca..11ad4252f 100644 --- a/doc/plugins/prettydate.mdwn +++ b/doc/plugins/prettydate.mdwn @@ -1,5 +1,5 @@ [[!template id=plugin name=prettydate author="[[Joey]]"]] -[[!tag type/format]] +[[!tag type/date]] Enabling this plugin changes the dates displayed on pages in the wiki to a format that is nice and easy to read. Examples: "late Wednesday evening, diff --git a/doc/plugins/relativedate.mdwn b/doc/plugins/relativedate.mdwn new file mode 100644 index 000000000..ecbdf68bf --- /dev/null +++ b/doc/plugins/relativedate.mdwn @@ -0,0 +1,16 @@ +[[!template id=plugin name=prettydate author="[[Joey]]"]] +[[!tag type/date]] + +This plugin lets dates be displayed in relative form. Examples: "2 days ago", +"1 month and 3 days ago", "30 minutes ago". Hovering over the date will +cause a tooltip to pop up with the absolute date. + +This only works in browsers with javascript enabled; other browsers will +show the absolute date instead. Also, this plugin can be used with other +plugins like [[prettydate]] that change how the absolute date is displayed. + +If this plugin is enabled, you may also add relative dates to pages in the +wiki, by using html elements in the "date" class. For example, this will +display as a relative date: + + Fri Oct 17 18:36:13 EDT 2008 diff --git a/doc/plugins/type/date.mdwn b/doc/plugins/type/date.mdwn new file mode 100644 index 000000000..eae1226da --- /dev/null +++ b/doc/plugins/type/date.mdwn @@ -0,0 +1 @@ +These plugins control how ikiwiki displays dates. diff --git a/po/ikiwiki.pot b/po/ikiwiki.pot index 6853df153..2d213a799 100644 --- a/po/ikiwiki.pot +++ b/po/ikiwiki.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-10-17 20:11-0400\n" +"POT-Creation-Date: 2008-10-17 20:39-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -172,9 +172,9 @@ msgid "automatic index generation" msgstr "" #: ../IkiWiki/Plugin/brokenlinks.pm:33 ../IkiWiki/Plugin/editpage.pm:261 -#: ../IkiWiki/Plugin/inline.pm:327 ../IkiWiki/Plugin/opendiscussion.pm:26 +#: ../IkiWiki/Plugin/inline.pm:329 ../IkiWiki/Plugin/opendiscussion.pm:26 #: ../IkiWiki/Plugin/orphans.pm:37 ../IkiWiki/Render.pm:79 -#: ../IkiWiki/Render.pm:149 +#: ../IkiWiki/Render.pm:151 msgid "discussion" msgstr "" @@ -318,11 +318,11 @@ msgstr "" msgid "nonexistant template %s" msgstr "" -#: ../IkiWiki/Plugin/inline.pm:335 ../IkiWiki/Render.pm:83 +#: ../IkiWiki/Plugin/inline.pm:337 ../IkiWiki/Render.pm:83 msgid "Discussion" msgstr "" -#: ../IkiWiki/Plugin/inline.pm:572 +#: ../IkiWiki/Plugin/inline.pm:574 msgid "RPC::XML::Client not found, not pinging" msgstr "" @@ -780,59 +780,59 @@ msgstr "" msgid "

Error: %s exited nonzero (%s)" msgstr "" -#: ../IkiWiki/Render.pm:253 +#: ../IkiWiki/Render.pm:255 #, perl-format msgid "" "symlink found in srcdir path (%s) -- set allow_symlinks_before_srcdir to " "allow this" msgstr "" -#: ../IkiWiki/Render.pm:277 ../IkiWiki/Render.pm:302 +#: ../IkiWiki/Render.pm:279 ../IkiWiki/Render.pm:304 #, perl-format msgid "skipping bad filename %s" msgstr "" -#: ../IkiWiki/Render.pm:284 +#: ../IkiWiki/Render.pm:286 #, perl-format msgid "%s has multiple possible source pages" msgstr "" -#: ../IkiWiki/Render.pm:360 +#: ../IkiWiki/Render.pm:362 #, perl-format msgid "removing old page %s" msgstr "" -#: ../IkiWiki/Render.pm:400 +#: ../IkiWiki/Render.pm:402 #, perl-format msgid "scanning %s" msgstr "" -#: ../IkiWiki/Render.pm:405 +#: ../IkiWiki/Render.pm:407 #, perl-format msgid "rendering %s" msgstr "" -#: ../IkiWiki/Render.pm:426 +#: ../IkiWiki/Render.pm:428 #, perl-format msgid "rendering %s, which links to %s" msgstr "" -#: ../IkiWiki/Render.pm:447 +#: ../IkiWiki/Render.pm:449 #, perl-format msgid "rendering %s, which depends on %s" msgstr "" -#: ../IkiWiki/Render.pm:486 +#: ../IkiWiki/Render.pm:488 #, perl-format msgid "rendering %s, to update its backlinks" msgstr "" -#: ../IkiWiki/Render.pm:498 +#: ../IkiWiki/Render.pm:500 #, perl-format msgid "removing %s, no longer rendered by %s" msgstr "" -#: ../IkiWiki/Render.pm:522 +#: ../IkiWiki/Render.pm:524 #, perl-format msgid "ikiwiki: cannot render %s" msgstr "" diff --git a/templates/inlinepage.tmpl b/templates/inlinepage.tmpl index ffcb897a8..3f640fcdd 100644 --- a/templates/inlinepage.tmpl +++ b/templates/inlinepage.tmpl @@ -5,9 +5,9 @@ - + - + @@ -28,14 +28,14 @@

-Posted +Posted Tags: - + diff --git a/templates/page.tmpl b/templates/page.tmpl index f2f9c34cc..7456e9e41 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -22,7 +22,7 @@ -/ +/ @@ -74,7 +74,7 @@
Tags: - +
@@ -83,13 +83,13 @@ Tags: - +
diff --git a/underlays/javascript/relativedate.js b/underlays/javascript/relativedate.js new file mode 100644 index 000000000..c5e62b3cc --- /dev/null +++ b/underlays/javascript/relativedate.js @@ -0,0 +1,70 @@ +// Causes html elements in the 'date' and 'pagedate' classes to be displayed +// as relative dates. The date is parsed from the title attribute, or from +// the element content. + +var dateElements; + +hook("onload", getDates); + +function getDates() { + dateElements = getElementsByClass('date'); + for (var i = 0; i < dateElements.length; i++) { + var elt = dateElements[i]; + var title = elt.attributes.title; + var d = new Date(title ? title.value : elt.innerHTML); + if (! isNaN(d)) { + dateElements[i].date=d; + elt.title=elt.innerHTML; + } + } + + showDates(); +} + +function showDates() { + for (var i = 0; i < dateElements.length; i++) { + var elt = dateElements[i]; + var d = elt.date; + if (! isNaN(d)) { + elt.innerHTML=relativeDate(d); + } + } + setTimeout(showDates,30000); // keep updating every 30s +} + +var timeUnits = new Array; +timeUnits['minute'] = 60; +timeUnits['hour'] = timeUnits['minute'] * 60; +timeUnits['day'] = timeUnits['hour'] * 24; +timeUnits['month'] = timeUnits['day'] * 30; +timeUnits['year'] = timeUnits['day'] * 364; +var timeUnitOrder = ['year', 'month', 'day', 'hour', 'minute']; + +function relativeDate(date) { + var now = new Date(); + var offset = date.getTime() - now.getTime(); + var seconds = Math.round(Math.abs(offset) / 1000); + + var ret = ""; + var shown = 0; + for (i = 0; i < timeUnitOrder.length; i++) { + var unit = timeUnitOrder[i]; + if (seconds >= timeUnits[unit]) { + var num = Math.floor(seconds / timeUnits[unit]); + seconds -= num * timeUnits[unit]; + if (ret) + ret += "and "; + ret += num + " " + unit + (num > 1 ? "s" : "") + " "; + + if (++shown == 2) + break; + } + else if (shown) + break; + } + + if (! ret) + ret = "less than a minute " + + return ret + (offset < 0 ? "ago" : "from now"); +} -- cgit v1.2.3 From 1a86717284cd48a4dc47815e1d91dddc6a595370 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 17 Oct 2008 21:02:12 -0400 Subject: response --- doc/forum/What_is_wrong_with_my_recentchange_page___63__.mdwn | 2 ++ po/ikiwiki.pot | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/forum/What_is_wrong_with_my_recentchange_page___63__.mdwn b/doc/forum/What_is_wrong_with_my_recentchange_page___63__.mdwn index 9c3188e02..8f0769f92 100644 --- a/doc/forum/What_is_wrong_with_my_recentchange_page___63__.mdwn +++ b/doc/forum/What_is_wrong_with_my_recentchange_page___63__.mdwn @@ -7,3 +7,5 @@ Can somebody check it for me at [http://maillard.mobi/~xma/wiki/recentchanges/] Thank you. --[[xma]] + +> Looks to me like you don't have the meta plugin enabled. --[[Joey]] diff --git a/po/ikiwiki.pot b/po/ikiwiki.pot index 2d213a799..b8b5dbd9a 100644 --- a/po/ikiwiki.pot +++ b/po/ikiwiki.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-10-17 20:39-0400\n" +"POT-Creation-Date: 2008-10-17 20:56-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" -- cgit v1.2.3 From ef4b9b54206bec2930d387b57ebbb5d7b2a5dce2 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 17 Oct 2008 21:16:27 -0400 Subject: response --- doc/todo/clear_page_to_delete.mdwn | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/todo/clear_page_to_delete.mdwn b/doc/todo/clear_page_to_delete.mdwn index 243b9f55e..1a0d3f008 100644 --- a/doc/todo/clear_page_to_delete.mdwn +++ b/doc/todo/clear_page_to_delete.mdwn @@ -1,4 +1,16 @@ Would it make sense to automatically delete a page if it's edited and -cleared to be entirely empty (or only have whitespace)? Discuss. +cleared to be entirely empty (or only have whitespace)? Discuss. --[[Joey]] - I'd say so; yes. A method of deleting pages via the web would be great; I can't think of a use of keeping blank pages around. What about vandalism -- if someone blanks a page and deletes it and someone else wishes to restore it; or is undoing edits via the web a bigger issue? -- [[JonDowland]] + I'd say so; yes. A method of deleting pages via the web would be great; I +can't think of a use of keeping blank pages around. What about vandalism -- +if someone blanks a page and deletes it and someone else wishes to restore +it; or is undoing edits via the web a bigger issue? -- [[JonDowland]] + +Of course there's already a way to delete pages (remove plugin). So the +question is really: + +* Does it make sense to have a second way to do it, by clearing the page? +* Should it be enabled even if the full remove plugin isn't? + +Re vandalism in general, I am generally happy using git-revert to kill the +offending change. --[[Joey]] -- cgit v1.2.3 From 35c56622ea56c7d97299faba5e72b5a67fa25c66 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 17 Oct 2008 21:54:42 -0400 Subject: tweak recentchanges permalink code Need to handle the case where url is not set. --- IkiWiki/Plugin/recentchanges.pm | 7 ++++--- debian/changelog | 2 ++ doc/bugs/recentchanges_feed_links.mdwn | 2 ++ templates/change.tmpl | 2 ++ 4 files changed, 10 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/IkiWiki/Plugin/recentchanges.pm b/IkiWiki/Plugin/recentchanges.pm index d0e4176ff..e124a4540 100644 --- a/IkiWiki/Plugin/recentchanges.pm +++ b/IkiWiki/Plugin/recentchanges.pm @@ -115,8 +115,6 @@ sub store ($$$) { #{{{ my $change=shift; my $page="$config{recentchangespage}/change_".titlepage($change->{rev}); - my $baseurl = IkiWiki::baseurl(); - my $permalink="$baseurl$config{recentchangespage}/#change-".titlepage($change->{rev}); # Optimisation to avoid re-writing pages. Assumes commits never # change (or that any changes are not important). @@ -177,8 +175,11 @@ sub store ($$$) { #{{{ commitdate => displaytime($change->{when}, "%X %x"), commitdate_raw => scalar localtime($change->{when}), wikiname => $config{wikiname}, - permalink => $permalink, ); + + $template->param(permalink => $config{url}."$config{recentchangespage}/#change-".titlepage($change->{rev})) + if exists $config{url}; + IkiWiki::run_hooks(pagetemplate => sub { shift->(page => $page, destpage => $page, template => $template, rev => $change->{rev}); diff --git a/debian/changelog b/debian/changelog index 908eb1f53..113a8a504 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,8 @@ ikiwiki (2.68) UNRELEASED; urgency=low move it to toggle.js in the javascript underlay. * relativedate: New javascript-alicious plugin that makes all dates display relative, in a very nice way, if I say so myself. + * recentchanges: Make feed links point back to anchors on the recentchanges + page. (JasonBlevins) -- Joey Hess Fri, 17 Oct 2008 20:11:02 -0400 diff --git a/doc/bugs/recentchanges_feed_links.mdwn b/doc/bugs/recentchanges_feed_links.mdwn index 9b2828901..e3557a6cb 100644 --- a/doc/bugs/recentchanges_feed_links.mdwn +++ b/doc/bugs/recentchanges_feed_links.mdwn @@ -96,3 +96,5 @@ to turn on? --Chapman Flack >>>>>> Here's my attempt at a [[patch]] for anchor-based change permalinks: >>>>>> . >>>>>> --[[JasonBlevins]], 2008-10-17 + +[[done]] diff --git a/templates/change.tmpl b/templates/change.tmpl index 6647dfbca..c9e1a60d6 100644 --- a/templates/change.tmpl +++ b/templates/change.tmpl @@ -3,7 +3,9 @@ [[!meta authorurl=""""""]] [[!meta title="""change to on """]] + [[!meta permalink=""]] +