]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Merge commit 'ffcd2da8274b44663207bb866007ee3bc8d8a15f' into sipb
authorAnders Kaseorg <andersk@mit.edu>
Fri, 31 Jan 2014 05:47:26 +0000 (00:47 -0500)
committerAnders Kaseorg <andersk@mit.edu>
Fri, 31 Jan 2014 05:47:26 +0000 (00:47 -0500)
Conflicts:
templates/page.tmpl

17 files changed:
IkiWiki.pm
IkiWiki/CGI.pm
IkiWiki/Plugin/search.pm
IkiWiki/Plugin/sidebar.pm
IkiWiki/Plugin/websetup.pm
debian/NEWS
debian/changelog
doc/examples/blog/comments.mdwn
doc/forum/debian_backports_update_someone_please.mdwn
doc/forum/how_do_I_revert_edits_in_the_web_mode__63__.mdwn
doc/forum/how_to_load_an_external_page_and_still_have_it_under_ikiwiki_template.mdwn [new file with mode: 0644]
doc/forum/what_is_the_easiest_way_to_implement_order:_disallow_all__44___allow_chosen__95__few_page_editing_policy__63__.mdwn [new file with mode: 0644]
doc/ikiwikiusers.mdwn
doc/news/version_3.20100515.mdwn [new file with mode: 0644]
doc/style.css
docwiki.setup
ikiwiki.spec

index a42f56bf0c6d2320c7403af19618e3b65f5f966a..699ad13dac4183e5d3135e62d6956e6f40c8a731 100644 (file)
@@ -1745,6 +1745,7 @@ sub misctemplate ($$;@) {
        run_hooks(pagetemplate => sub {
                shift->(page => "", destpage => "", template => $template);
        });
+       templateactions($template, "");
 
        $template->param(
                dynamic => 1,
@@ -1755,8 +1756,6 @@ sub misctemplate ($$;@) {
                html5 => $config{html5},
                @_,
        );
-
-       templateactions($template, "");
        
        return $template->output;
 }
index 94600a3c64ba51044f1955c73f5bca547a71a6e5..11b2f2ce39d4f1ab2cf158ea3baf81d1578c35af 100644 (file)
@@ -255,7 +255,9 @@ sub cgi_prefs ($$) {
                $form->text(gettext("Preferences saved."));
        }
        
-       showform($form, $buttons, $session, $q);
+       showform($form, $buttons, $session, $q,
+               prefsurl => "", # avoid showing the preferences link
+       );
 }
 
 sub cgi_custom_failure ($$$) {
index cc26b7ac18df88d8c336fbe4b1b3f709d3fe696f..ff5d0ccbe616379b0a7efdadbd1858e4a8cf098e 100644 (file)
@@ -228,7 +228,9 @@ sub setupfiles () {
                
                # Avoid omega interpreting anything in the misctemplate
                # as an omegascript command.
-               my $misctemplate=IkiWiki::misctemplate(gettext("search"), "\0");
+               my $misctemplate=IkiWiki::misctemplate(gettext("search"), "\0",
+                       searchform => "", # avoid showing the small search form
+               );
                eval q{use HTML::Entities};
                error $@ if $@;
                $misctemplate=encode_entities($misctemplate, '\$');
index 0350f2b71d7fc20695c169daa4ef967e591b22fe..2d495db2cc0d02e1bc1abbc3653627374a8179ba 100644 (file)
@@ -22,7 +22,7 @@ sub getsetup () {
                },
                global_sidebars => {
                        type => "boolean",
-                       examples => 1,
+                       example => 1,
                        description => "show sidebar page on all pages?",
                        safe => 1,
                        rebuild => 1,
index 9cb5eb13c13740ed6e609679c49b0468458ec115..c4b75c4b3c98988938bcdd989109513babecba2d 100644 (file)
@@ -450,8 +450,8 @@ sub showform ($$) {
                        IkiWiki::unlockwiki();
 
                        # Print the top part of a standard misctemplate,
-                       # then show the rebuild or refresh.
-                       my $divider="xxx";
+                       # then show the rebuild or refresh, live.
+                       my $divider="\0";
                        my $html=IkiWiki::misctemplate("setup", $divider);
                        IkiWiki::printheader($session);
                        my ($head, $tail)=split($divider, $html, 2);
index 68f0a207b4edb94f4011688e25785dc729c6c541..f73ac9c3d1c2d3901662a83ce4a288ad3408f074 100644 (file)
@@ -1,15 +1,18 @@
-ikiwiki (3.20100505) UNRELEASED; urgency=low
+ikiwiki (3.20100515) unstable; urgency=low
 
-  There is a significant change to the page.tmpl template in this version.
-  If you have locally modified versions of that template, you will need
-  to update it to contain the following in the HTML <head>:
+  There are two significant changes to the page.tmpl template in this version.
+  If you have a locally modified version of that template, you will need to
+  update it at least to contain the following in the HTML <head>:
 
     <TMPL_IF DYNAMIC>
     <TMPL_IF FORCEBASEURL><base href="<TMPL_VAR FORCEBASEURL>" /><TMPL_ELSE>
     <TMPL_IF BASEURL><base href="<TMPL_VAR BASEURL>" /></TMPL_IF>
     </TMPL_IF>
+    </TMPL_IF>
+
+  Also, the footer should be wrapped in <TMPL_UNLESS DYNAMIC> ... </TMPL_UNLESS>
   
-  Also, there is a new "comment()" pagespec, that can be used to match a
+  There is a new "comment()" pagespec, that can be used to match a
   comment on a page. It is recommended it be used instead of the old
   method of using a pagespec such as "internal(comment_*)" to match
   things that looked like comments. The old pagespec will now also match
index a09c8e2288828e3c0302ede52c49ff65e9bf71d9..918970a3c15f3659cefbaaf6df075724e0d7bfb6 100644 (file)
@@ -1,4 +1,11 @@
-ikiwiki (3.20100505) UNRELEASED; urgency=low
+ikiwiki (3.20100516) UNRELEASED; urgency=low
+
+  * page.tmpl: Accidentially broke po plugin's otherlanguages list styling
+    when modifying for html5; now fixed.
+
+ -- Joey Hess <joeyh@debian.org>  Sun, 16 May 2010 00:03:06 -0400
+
+ikiwiki (3.20100515) unstable; urgency=low
 
   * Removed misc.tmpl. Now to theme ikiwiki, you only need to customise
     a single template, page.tmpl.
@@ -32,7 +39,7 @@ ikiwiki (3.20100505) UNRELEASED; urgency=low
   * Use xhtml friendly pubdate setting.
   * remove, rename: Add guards against XSRF attacks.
 
- -- Joey Hess <joeyh@debian.org>  Wed, 05 May 2010 18:07:29 -0400
+ -- Joey Hess <joeyh@debian.org>  Sat, 15 May 2010 21:00:45 -0400
 
 ikiwiki (3.20100504) unstable; urgency=low
 
index 32ffa55377e1eca123cb16ad3af008cad955e608..f59b44390adbd497cd08583d8d1207570ade74c3 100644 (file)
@@ -1,7 +1,9 @@
-This page will show recent comments made to posts in the [[blog|index]].
-
-There are [[!pagecount pages="comment_pending(/posts/*)"]] comments
-in the moderation queue.
-[[!inline pages="comment_pending(/posts/*)" name=pendingmoderation show=-1]]
+[[!sidebar content="""
+[[!inline pages="comment_pending(./posts/*)" feedfile=pendingmoderation
+description="comments pending moderation" show=-1]]
+Comments in the moderation queue:
+[[!pagecount pages="comment_pending(./posts/*)"]]
+"""]]
 
+Recent comments on posts in the [[blog|index]]:
 [[!inline pages="./posts/*/Discussion or comment(./posts/*)"]]
index f1854762ec32e7f74b31ae2ebc1e3311057c1bb6..66f5eb0c5f24666d8399e2040d5275985dfaf10a 100644 (file)
@@ -10,3 +10,5 @@ I'm just in the process of deploying ikiwiki and I'd love to use it in the html5
 >>> days. I generally schedule things so a new ikiwiki reaches testing
 >>> every 2 weeks to month. Getting important new features and bugfixes out
 >>> can take priority though. --[[Joey]] 
+
+>>>> Great! Thanks.
index 510e93077c8a18330be81cd505e26cf1c68d1377..7686a7a083ed6e2b858a58a6cf9b6687092419ee 100644 (file)
@@ -31,3 +31,5 @@ Puzzled a bit :-/
 >>>> Web edits are single-file anyway, so I wouldn't expect web reverts
 >>>> to handle the multi-file case. OTOH, I've sometimes wished ikiwiki
 >>>> had its own history browser (somewhere down my todo list). --[[schmonz]]
+
+>>>> Yup, having a possibility to revert a single file would suffice.
diff --git a/doc/forum/how_to_load_an_external_page_and_still_have_it_under_ikiwiki_template.mdwn b/doc/forum/how_to_load_an_external_page_and_still_have_it_under_ikiwiki_template.mdwn
new file mode 100644 (file)
index 0000000..0475d12
--- /dev/null
@@ -0,0 +1 @@
+OK, probably title is bit confusing. Basically I'd like to be able to keep my left hand side menu, which is part of the template, and at the same time load let's say forum on the right hand side, which sits on a separate domain. Is it possible then to construct template that for some special links it runs as lets say in *frameset* mode?
diff --git a/doc/forum/what_is_the_easiest_way_to_implement_order:_disallow_all__44___allow_chosen__95__few_page_editing_policy__63__.mdwn b/doc/forum/what_is_the_easiest_way_to_implement_order:_disallow_all__44___allow_chosen__95__few_page_editing_policy__63__.mdwn
new file mode 100644 (file)
index 0000000..fbc5c58
--- /dev/null
@@ -0,0 +1,3 @@
+As in title, I'd like to allow editing only some pages on my wiki. Rest by default is not editable by users except admin. Thanks
+
+> See [[plugins/lockedit]]. --[[schmonz]]
index edf36b5c6499deb25da175c5341a8300a24fa560..94dc00b2568a35da134fa16b043c4e289e8107bd 100644 (file)
@@ -53,7 +53,6 @@ Projects & Organizations
 * [Debian Costa Rica](http://cr.debian.net/)
 * [Fvwm Wiki](http://fvwmwiki.xteddy.org)
 * [Serialist](http://serialist.net/)'s static pages (documentation, blog).  We actually have ikiwiki generate its static content as HTML fragments using a modified page.tmpl template, and then the FastCGI powering our site grabs those fragments and embeds them in the standard dynamic site template.
-* [Banu](https://www.banu.com/)
 
 Personal sites and blogs
 ========================
diff --git a/doc/news/version_3.20100515.mdwn b/doc/news/version_3.20100515.mdwn
new file mode 100644 (file)
index 0000000..7eafa0b
--- /dev/null
@@ -0,0 +1,58 @@
+News for ikiwiki 3.20100515:
+
+   There are two significant changes to the page.tmpl template in this version.
+   If you have a locally modified version of that template, you will need to
+   update it at least to contain the following in the HTML `<head>`:
+
+       <TMPL_IF DYNAMIC>
+       <TMPL_IF FORCEBASEURL><base href="<TMPL_VAR FORCEBASEURL>" /><TMPL_ELSE>
+       <TMPL_IF BASEURL><base href="<TMPL_VAR BASEURL>" /></TMPL_IF>
+       </TMPL_IF>
+       </TMPL_IF>
+
+   Also, the footer should be wrapped in `<TMPL_UNLESS DYNAMIC> ... </TMPL_UNLESS>`
+
+   There is a new "comment()" pagespec, that can be used to match a
+   comment on a page. It is recommended it be used instead of the old
+   method of using a pagespec such as "internal(comment\_*)" to match
+   things that looked like comments. The old pagespec will now also match
+   comments that are held for moderation; likely not what you want.
+
+   There have also been some changes to the style.css in this version,
+   particularly to support the new openid selector. If you have a modified
+   version, of style.css, updating it (or moving it to local.css) is
+   recommended.
+
+ikiwiki 3.20100515 released with [[!toggle text="these changes"]]
+[[!toggleable text="""
+   * Removed misc.tmpl. Now to theme ikiwiki, you only need to customise
+     a single template, page.tmpl.
+   * If you have a locally customised page.tmpl, it needs to be updated
+     to set &lt;base&gt; when BASEURL or FORCEBAREURL is set.
+   * comments: Comments pending moderation are now stored in the srcdir
+     alongside accepted comments, but with a `._comment_pending` extension.
+     This allows easier byhand moderation, as the "\_pending" need
+     only be stripped off and the comment be committed to version control.
+   * The `comment_pending()` pagespec can be used to match such unmoderated
+     comments, which makes it easy to add a feed of them, or a counter
+     indicating how many there are.
+   * Belatedly added a `comment()` pagespec.
+   * Gave comment and page editing forms some CSS and accessability love.
+   * Renamed postscan hook to indexhtml, to reflect its changed position,
+     and typical use.
+   * inline: Call indexhtml when inlining internal pages, so their
+     text can be indexed for searching.
+   * Delete hooks are passed deleted internal pages.
+   * openid: Incorporated a fancy openid-selector signin form.
+     (Based on <http://code.google.com/p/openid-selector/>)
+   * openid: Use "openid\_identifier" as the form field, as required
+     by OpenID Authentication v2.0 spec.
+   * Removed the openidsignup option. Instead, my recommendation is to
+     leave passwordauth enabled and let people who don't have an openid use it.
+     The openid selector form avoids the UI annoyance of having both openid
+     and passwordauth on one form.
+   * calendar: Allow negative month to be specified. -1 is last month, etc.
+     (And also negative years.)
+   * calendar: Display year in title of month calendar.
+   * Use xhtml friendly pubdate setting.
+   * remove, rename: Add guards against XSRF attacks."""]]
index 4ea77573ac63f10357687827841cdb064f7888f2..2cd7a9652f983d3601bc11e191bdf26b41f1e5f0 100644 (file)
@@ -29,12 +29,13 @@ nav {
 
 .actions ul {
        margin: 0;
-       padding: 6px;
+       padding: 6px .4em;
+       height: 1em;
        list-style-type: none;
 }
 .actions li {
        display: inline;
-       padding: .2em .4em;
+       padding: .2em;
 }
 .pageheader .actions ul {
        border-bottom: 1px solid #000;
index 6bc200066fe565007cb6cc3228c0ac74e4ee19c5..8b898f61928bb5af36c501586caf4596c0a896ce 100644 (file)
@@ -29,7 +29,8 @@ use IkiWiki::Setup::Standard {
        usedirs => 0,
        prefix_directives => 1,
        add_plugins => [qw{goodstuff version haiku polygen fortune table}],
-       disable_plugins => [qw{recentchanges}], # not appropriate for doc dir
+       # not appropriate for doc dir
+       disable_plugins => [qw{recentchanges openid}],
        rcs => $rcs,
        gitorigin_branch => '', # don't pull during build
 }
index b2b5af3dc48c66d02905176fff8e23e34e786d9d..09f07c6cee010be91bdc8f97a4e62262140923ba 100644 (file)
@@ -1,5 +1,5 @@
 Name:           ikiwiki
-Version: 3.20100505
+Version: 3.20100515
 Release:        1%{?dist}
 Summary:        A wiki compiler