Merge remote branch 'remotes/peteg/revert' into revert
authorJoey Hess <joey@kitenet.net>
Mon, 4 Oct 2010 19:59:45 +0000 (15:59 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 4 Oct 2010 19:59:45 +0000 (15:59 -0400)
IkiWiki/Plugin/htmltidy.pm
debian/changelog
doc/forum/Dump_plugin/comment_1_bfce80b3f5be78ec28692330843d4ae1._comment [new file with mode: 0644]
doc/tips/dot_cgi.mdwn
doc/todo/configurable_tidy_command_for_htmltidy.mdwn
doc/todo/want_to_avoid_ikiwiki_using_http_or_https_in_urls_to_allow_serving_both.mdwn
doc/usage.mdwn
po/fr.po

index e6d377f8ab96a853f0bfcbc51ab2d09126e6d14e..185d01dd68c54a3db899ee299a7a5552ba62a519 100644 (file)
@@ -23,6 +23,18 @@ sub getsetup () {
                        safe => 1,
                        rebuild => undef,
                },
+               htmltidy => {
+                       type => "string",
+                       description => "tidy command line",
+                       safe => 0, # path
+                       rebuild => undef,
+               },
+}
+
+sub checkconfig () {
+       if (! defined $config{htmltidy}) {
+               $config{htmltidy}="tidy -quiet -asxhtml -utf8 --show-body-only yes --show-warnings no --tidy-mark no --markup yes";
+       }
 }
 
 sub sanitize (@) {
@@ -31,7 +43,7 @@ sub sanitize (@) {
        my $pid;
        my $sigpipe=0;
        $SIG{PIPE}=sub { $sigpipe=1 };
-       $pid=open2(*IN, *OUT, 'tidy -quiet -asxhtml -utf8 --show-body-only yes --show-warnings no --tidy-mark no --markup yes 2>/dev/null');
+       $pid=open2(*IN, *OUT, "$config{htmltidy} 2>/dev/null");
 
        # open2 doesn't respect "use open ':utf8'"
        binmode (IN, ':utf8');
index 527dd788407d54f2e7031d9b9c747eed7ebfab94..1d12d055881b1eb25564859a43b9d38cc200ebc0 100644 (file)
@@ -1,6 +1,9 @@
 ikiwiki (3.20100927) UNRELEASED; urgency=low
 
   * Fix test suite failure on other side of date line.
+  * htmltidy: Allow configuring tidy parameters in setup file.
+    (W. Trevor King)
+  * Updated French program translation. Closes: #598918
 
  -- Joey Hess <joeyh@debian.org>  Wed, 29 Sep 2010 11:58:23 -0400
 
diff --git a/doc/forum/Dump_plugin/comment_1_bfce80b3f5be78ec28692330843d4ae1._comment b/doc/forum/Dump_plugin/comment_1_bfce80b3f5be78ec28692330843d4ae1._comment
new file mode 100644 (file)
index 0000000..855b72b
--- /dev/null
@@ -0,0 +1,14 @@
+[[!comment format=mdwn
+ username="https://www.google.com/accounts/o8/id?id=AItOawngqGADV9fidHK5qabIzKN0bx1ZIfvaTqs"
+ nickname="Glenn"
+ subject="New dump plugin"
+ date="2010-10-03T00:45:47Z"
+ content="""
+I took my own advice and rewrote the dump plugin so that it uses a template.  A sample template has been added to my [[Dropbox|http://dl.dropbox.com/u/11256359/dump.tmpl]].
+
+### Issues:
+
+* Dumps appear at the end of the page rather than where the directive occurs.
+* For some reason I haven't yet figured out, dumps don't appear in page previews.
+* I haven't tested inlined content and the dump plugin.
+"""]]
index da55c1f1c9828ec9ec79ee5cfb78f948a8ff2a91..42a0aa7bf16350d8dde600bf125c05a55f5de3a7 100644 (file)
@@ -26,6 +26,8 @@ configuration changes should work anywhere.
   Or, if you've put it in a `~/public_html`, edit
   `/etc/apache2/mods-available/userdir.conf`.
 
+  You may also want to install some dependencies to enable CGI in apache2 setup as: `libcgi-formbuilder-perl` and `libcgi-session-perl`.
+
 * You may also want to enable the [[plugins/404]] plugin.
   To make apache use it, the apache config file will need a further
   modification to make it use ikiwiki's CGI as the apache 404 handler.
index 51991393e508be9fddc3a69946575106525d648b..e317184b545b974b0c4723a9670fdd2b3b44f43f 100644 (file)
@@ -4,3 +4,5 @@ I was trying to get htmltidy to [play nicely with MathML][play].  Unfortunately,
 
 [play]: http://lists.w3.org/Archives/Public/html-tidy/2006JanMar/0052.html
 [patch]: http://www.physics.drexel.edu/~wking/code/git/git.php?p=ikiwiki.git&a=commitdiff&h=408ee89fd7c1dc70510385a7cf263a05862dda97&hb=e65ce4f0937eaf622846c02a9d39fa7aebe4af12
+
+> Thanks, [[done]] --[[Joey]] 
index 262d5c22d254be0e9dc37a43a19b3836685187ea..20d22b9ab837dfc3d5c9e0a787479b49fd2d6043 100644 (file)
@@ -147,10 +147,12 @@ you don't like my approach:
 
 ----
 
-[[!template id=gitbranch branch=smcv/localurl author="[[smcv]]"]]
+[[!template id=gitbranch branch=smcv/ready/localurl author="[[smcv]]"]]
+[[!tag patch]]
 
 OK, here's an alternative approach, closer in spirit to what was initially
-requested. I haven't tested this on a full website with the CGI yet.
+requested. I included a regression test for `urlto`, `baseurl` and `cgiurl`,
+now that they have slightly more complex behaviour.
 
 The idea is that in the common case, the CGI and the pages will reside on the
 same server, so they can use "semi-absolute" URLs (`/ikiwiki.cgi`, `/style.css`,
@@ -169,6 +171,12 @@ suppot that.
 fully relative nor fully absolute, and there doesn't seem to be a good name
 for them...
 
+I've tested this on a demo website with the CGI enabled, and it seems to
+work nicely (there might be bugs in some plugins, I didn't try all of them).
+The `$config{url}` and `$config{cgiurl}` are both HTTP, but if I enable
+`httpauth`, set `cgiauthurl` to a HTTPS version of the same site and log
+in via that, links all end up in the HTTPS version.
+
 New API added by this branch:
 
 * `urlto(x, y, 'local')` uses `$local_url` instead of `$config{url}`
index 840d105d2e5517e579f00ae67efe49f8f3bf3016..2325b6502dc11762bc6932bde2542b05291df18e 100644 (file)
@@ -350,7 +350,7 @@ also be configured using a setup file.
 
 * ikiwiki --setup my.setup
 
-  Completly (re)build the wiki using the specified setup file.
+  Completely (re)build the wiki using the specified setup file.
 
 * ikiwiki --setup my.setup --refresh
 
index 05ad086afbb2f5efe470454cb8bca05d4c1f3480..ae2b9f4116f05a74bdfe0839121d82c786a1d4a1 100644 (file)
--- a/po/fr.po
+++ b/po/fr.po
@@ -10,7 +10,7 @@ msgstr ""
 "Project-Id-Version: ikiwiki 3.141\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2010-09-15 16:30-0400\n"
-"PO-Revision-Date: 2010-07-17 18:13+0200\n"
+"PO-Revision-Date: 2010-10-03 10:42+0200\n"
 "Last-Translator: Philippe Batailler <philippe.batailler@free.fr>\n"
 "Language-Team: French <debian-l10n-french@lists.debian.org>\n"
 "Language: fr\n"
@@ -146,15 +146,15 @@ msgstr "Vous devez spécifier %s"
 
 #: ../IkiWiki/Plugin/amazon_s3.pm:140
 msgid "Failed to create S3 bucket: "
-msgstr "Impossible de créer un compartiment S3 :"
+msgstr "Impossible de créer un compartiment S3 : "
 
 #: ../IkiWiki/Plugin/amazon_s3.pm:225
 msgid "Failed to save file to S3: "
-msgstr "Impossible de sauvegarder le fichier dans le compartiment S3 :"
+msgstr "Impossible de sauvegarder le fichier dans le compartiment S3 : "
 
 #: ../IkiWiki/Plugin/amazon_s3.pm:247
 msgid "Failed to delete file from S3: "
-msgstr "Échec lors de la suppression du fichier sur S3 :"
+msgstr "Échec lors de la suppression du fichier sur S3 : "
 
 #: ../IkiWiki/Plugin/attachment.pm:50
 #, perl-format
@@ -195,14 +195,13 @@ msgid "There are no broken links!"
 msgstr "Aucun lien cassé !"
 
 #: ../IkiWiki/Plugin/comments.pm:113
-#, fuzzy, perl-format
+#, perl-format
 msgid "this comment needs %s"
-msgstr "Faire un commentaire sur %s"
+msgstr "Ce commentaire demande %s"
 
 #: ../IkiWiki/Plugin/comments.pm:116
-#, fuzzy
 msgid "moderation"
-msgstr "Modération du commentaire"
+msgstr "Modération"
 
 #: ../IkiWiki/Plugin/comments.pm:137 ../IkiWiki/Plugin/format.pm:48
 #, perl-format
@@ -218,7 +217,6 @@ msgid "Anonymous"
 msgstr "Anonyme"
 
 #: ../IkiWiki/Plugin/comments.pm:256
-#, fuzzy
 msgid "Comment Moderation"
 msgstr "Modération du commentaire"
 
@@ -337,9 +335,8 @@ msgstr "edittemplate %s enregistré pour %s"
 
 #: ../IkiWiki/Plugin/edittemplate.pm:133 ../IkiWiki/Plugin/inline.pm:339
 #: ../IkiWiki/Plugin/template.pm:44
-#, fuzzy
 msgid "failed to process template:"
-msgstr "Échec du traitement :"
+msgstr "Échec du traitementdu modèle :"
 
 #: ../IkiWiki/Plugin/format.pm:30
 msgid "must specify format and text"
@@ -510,9 +507,8 @@ msgid "redir cycle is not allowed"
 msgstr "Redirection cyclique non autorisée"
 
 #: ../IkiWiki/Plugin/meta.pm:396
-#, fuzzy
 msgid "sort=meta requires a parameter"
-msgstr "les paramètres « from » et « to » sont nécessaires."
+msgstr "sort=meta demande un paramètre."
 
 #: ../IkiWiki/Plugin/mirrorlist.pm:44
 msgid "Mirrors"
@@ -531,9 +527,9 @@ msgid "more"
 msgstr "lire la suite"
 
 #: ../IkiWiki/Plugin/openid.pm:70
-#, fuzzy, perl-format
+#, perl-format
 msgid "failed to load openid module: "
-msgstr "Échec de la compilation de %s"
+msgstr "Impossible de charger le module openid"
 
 #: ../IkiWiki/Plugin/orphans.pm:56
 msgid "All pages have other pages linking to them."
@@ -704,7 +700,7 @@ msgstr ""
 #: ../IkiWiki/Plugin/po.pm:1252
 #, perl-format
 msgid "%s has invalid syntax: must use CODE|NAME"
-msgstr ""
+msgstr "La syntaxe de %s n'est pas correcte : il faut utiliser CODE|NOM"
 
 #: ../IkiWiki/Plugin/poll.pm:70
 msgid "vote"
@@ -899,7 +895,7 @@ msgid "rsync_command exited %d"
 msgstr "la commande rsync s'est terminée avec le code : %d"
 
 #: ../IkiWiki/Plugin/search.pm:195
-#, fuzzy, perl-format
+#, perl-format
 msgid "need Digest::SHA to index %s"
 msgstr "Digest::SHA1 est nécessaire pour indexer %s"
 
@@ -925,9 +921,9 @@ msgid "shortcut %s points to <i>%s</i>"
 msgstr "Le raccourci %s pointe vers <i>%s</i>"
 
 #: ../IkiWiki/Plugin/smiley.pm:30
-#, fuzzy, perl-format
+#, perl-format
 msgid "smiley plugin will not work without %s"
-msgstr "Le greffon « shortcut » ne fonctionnera pas sans %s"
+msgstr "Le module smiley ne fonctionne pas sans %s"
 
 #: ../IkiWiki/Plugin/smiley.pm:50
 msgid "failed to parse any smileys"
@@ -987,7 +983,7 @@ msgid "parse fail at line %d: %s"
 msgstr "Erreur d'analyse à la ligne %d : %s"
 
 #: ../IkiWiki/Plugin/tag.pm:83
-#, fuzzy, perl-format
+#, perl-format
 msgid "creating tag page %s"
 msgstr "Création de la nouvelle page %s"
 
@@ -996,9 +992,9 @@ msgid "missing id parameter"
 msgstr "Paramètre d'identification manquant"
 
 #: ../IkiWiki/Plugin/template.pm:47
-#, fuzzy, perl-format
+#, perl-format
 msgid "%s not found"
-msgstr "Flux introuvable "
+msgstr "%s introuvable"
 
 #: ../IkiWiki/Plugin/teximg.pm:73
 msgid "missing tex code"
@@ -1089,12 +1085,12 @@ msgstr "%s peut être associé à plusieurs pages source."
 #: ../IkiWiki/Render.pm:372
 #, perl-format
 msgid "querying %s for file creation and modification times.."
-msgstr ""
+msgstr "recherche de %s pour les dates de modification et de création des fichiers..."
 
 #: ../IkiWiki/Render.pm:446
-#, fuzzy, perl-format
+#, perl-format
 msgid "removing obsolete %s"
-msgstr "Suppression de l'ancienne page %s"
+msgstr "Suppression de %s obsolète"
 
 #: ../IkiWiki/Render.pm:520
 #, perl-format
@@ -1134,14 +1130,14 @@ msgid "cannot read %s: %s"
 msgstr "Lecture impossible de %s : %s"
 
 #: ../IkiWiki/Setup.pm:34
-#, fuzzy, perl-format
+#, perl-format
 msgid "cannot load %s in safe mode"
-msgstr "Lecture impossible de %s : %s"
+msgstr "Impossible de charger %s de façon sécurisée"
 
 #: ../IkiWiki/Setup.pm:47
-#, fuzzy, perl-format
+#, perl-format
 msgid "failed to parse %s"
-msgstr "Impossible de mettre à jour %s"
+msgstr "Impossible d'analyser %s"
 
 #: ../IkiWiki/Setup/Automator.pm:34
 msgid "you must enter a wikiname (that contains alphanumerics)"
@@ -1208,9 +1204,8 @@ msgid "usage: --set var=value"
 msgstr "Syntaxe : -- set var=valeur"
 
 #: ../ikiwiki.in:109
-#, fuzzy
 msgid "usage: --set-yaml var=value"
-msgstr "Syntaxe : -- set var=valeur"
+msgstr "Syntaxe : --set-yaml var=valeur"
 
 #: ../ikiwiki.in:215
 msgid "rebuilding wiki.."
@@ -1248,7 +1243,7 @@ msgid "yes"
 msgstr "oui"
 
 #: ../IkiWiki.pm:2130
-#, fuzzy, perl-format
+#, perl-format
 msgid "invalid sort type %s"
 msgstr "Type de tri %s inconnu"
 
@@ -1260,7 +1255,7 @@ msgstr "Type de tri %s inconnu"
 #: ../IkiWiki.pm:2287
 #, perl-format
 msgid "cannot match pages: %s"
-msgstr "Impossible de trouver les pages %s"
+msgstr "Impossible de trouver les pages : %s"
 
 #: ../auto.setup:16
 msgid "What will the wiki be named?"