summaryrefslogtreecommitdiff
path: root/doc/bugs
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-12-06 14:53:16 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-12-06 14:53:16 -0500
commit691d7ff82774b376cb76810c6f114fccf4b6e7cf (patch)
treea6669d9f195dc000b7c351b7af112a9f7c99f615 /doc/bugs
parentb8ed5e72286ab0c592ea62a24a0ac160647d612d (diff)
parentcb74161218449bc1bc7648782f421ede9b94334b (diff)
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Diffstat (limited to 'doc/bugs')
-rw-r--r--doc/bugs/Building_a_sidebar_does_not_regenerate_the_subpages.mdwn52
-rw-r--r--doc/bugs/firefox_doesn__39__t_want_to_load_updated_pages_at_ikiwiki.info.mdwn2
2 files changed, 2 insertions, 52 deletions
diff --git a/doc/bugs/Building_a_sidebar_does_not_regenerate_the_subpages.mdwn b/doc/bugs/Building_a_sidebar_does_not_regenerate_the_subpages.mdwn
index 93aafc2c0..419292930 100644
--- a/doc/bugs/Building_a_sidebar_does_not_regenerate_the_subpages.mdwn
+++ b/doc/bugs/Building_a_sidebar_does_not_regenerate_the_subpages.mdwn
@@ -6,55 +6,3 @@ If sandbox/page.mdwn has been generated and sandbox/sidebar.mdwn is created, the
# adding a new sidebar page. So adding such a page
# currently requires a wiki rebuild.
add_depends($page, $sidebar_page);
-
-----
-Below is a patch for the bug. It's inspired by trying to solve [[todo/Post-compilation inclusion of the sidebar]].
-What do you think about it? I have a concern though. If a sidebar is removed, it takes two refreshes to update
-the affected pages. Is this a feature or a bug? --[[harishcm]]
-
- --- sidebar.pm.orig 2009-11-21 17:40:02.000000000 +0800
- +++ sidebar_bugfix.pm 2009-11-21 18:16:11.000000000 +0800
- @@ -10,6 +10,7 @@
-
- sub import {
- hook(type => "getsetup", id => "sidebar", call => \&getsetup);
- + hook(type => "needsbuild", id => "sidebar", call => \&needsbuild);
- hook(type => "pagetemplate", id => "sidebar", call => \&pagetemplate);
- }
-
- @@ -21,6 +22,22 @@
- },
- }
-
- +sub needsbuild (@) {
- + my $needsbuild=shift;
- +
- + # Determine every pages' sidebar page
- + foreach my $page (keys %pagesources) {
- + my $sidebar_page='';
- + $sidebar_page=bestlink($page, "sidebar");
- +
- + # If a page's sidebar has changed, force rebuild
- + if (!exists $pagestate{$page}{sidebar}{sidebar_page} || $pagestate{$page}{sidebar}{sidebar_page} ne $sidebar_page) {
- + $pagestate{$page}{sidebar}{sidebar_page} = $sidebar_page;
- + push @$needsbuild, $pagesources{$page};
- + }
- + }
- +}
- +
- sub sidebar_content ($) {
- my $page=shift;
-
- @@ -29,9 +46,9 @@
- my $sidebar_type=pagetype($sidebar_file);
-
- if (defined $sidebar_type) {
- - # FIXME: This isn't quite right; it won't take into account
- - # adding a new sidebar page. So adding such a page
- - # currently requires a wiki rebuild.
- + # Record current sidebar page for rechecking bestlink
- + # during wiki refresh. Also add depends on the sidebar page.
- + $pagestate{$page}{sidebar}{sidebar_page}=$sidebar_page;
- add_depends($page, $sidebar_page);
-
- my $content=readfile(srcfile($sidebar_file));
diff --git a/doc/bugs/firefox_doesn__39__t_want_to_load_updated_pages_at_ikiwiki.info.mdwn b/doc/bugs/firefox_doesn__39__t_want_to_load_updated_pages_at_ikiwiki.info.mdwn
index 8cb47f864..46e77a265 100644
--- a/doc/bugs/firefox_doesn__39__t_want_to_load_updated_pages_at_ikiwiki.info.mdwn
+++ b/doc/bugs/firefox_doesn__39__t_want_to_load_updated_pages_at_ikiwiki.info.mdwn
@@ -3,3 +3,5 @@ I'm using firefox-3.0.8-alt0.M41.1 (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1
Only explicitly pressing "reload" helps.
Is it a bug? I haven't been noticing such problems usually on other sites. --Ivan Z.
+
+This remains to be true now, with Epiphany 2.26.3 (Mozilla/5.0 (X11; U; Linux i686; en; rv:1.9.1.4pre) Gecko/20080528 Epiphany/2.22 Firefox/3.5). --Ivan Z.