aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2015-06-09 11:38:55 +0100
committerSimon McVittie <smcv@debian.org>2015-06-09 22:30:43 +0100
commit15939a2528d0615562618f6a22eb34427d829cda (patch)
tree43c6d9ebfb489d47557d1f459fb393c3219eac2d
parent6add4fd4fc63e9cc7829ae57d693e5b6832637bd (diff)
downloadikiwiki-15939a2528d0615562618f6a22eb34427d829cda.tar
ikiwiki-15939a2528d0615562618f6a22eb34427d829cda.tar.gz
Add deterministic option and use it for the docwiki
It doesn't do anything yet.
-rw-r--r--IkiWiki.pm8
-rw-r--r--debian/changelog1
-rw-r--r--docwiki.setup1
3 files changed, 10 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 6e19d482a..fe5af6d15 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -566,6 +566,14 @@ sub getsetup () {
safe => 1,
rebuild => 1,
},
+ deterministic => {
+ type => "boolean",
+ default => 0,
+ description => "try harder to produce deterministic output",
+ safe => 1,
+ rebuild => 1,
+ advanced => 1,
+ },
}
sub getlibdirs () {
diff --git a/debian/changelog b/debian/changelog
index de2d99b28..d359bf262 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -33,6 +33,7 @@ ikiwiki (3.20150330) UNRELEASED; urgency=medium
release, leading to unstable sorting
* Sort backlinks deterministically, by falling back to sorting by href
if the link text is identical
+ * Add a $config{deterministic} option and use it for the docwiki
-- Joey Hess <id@joeyh.name> Tue, 28 Apr 2015 12:24:08 -0400
diff --git a/docwiki.setup b/docwiki.setup
index f2b4cc5ca..cc8f34645 100644
--- a/docwiki.setup
+++ b/docwiki.setup
@@ -33,4 +33,5 @@ use IkiWiki::Setup::Standard {
disable_plugins => [qw{recentchanges openid}],
rcs => $rcs,
gitorigin_branch => '', # don't pull during build
+ deterministic => 1,
}