Commit Graph

1042 Commits (4e4fb18dbecf22a9eeea37f2632924f6d1ea67da)

Author SHA1 Message Date
intrigeri 7c173aca3e Revert "added hook urlpath" and "rename urlpath hook into tweakurlpath..."
This reverts commits d9b9022c13 and
39d44d443d. This functionality should now be
achieved using the new inject() function.

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02 18:08:50 +01:00
intrigeri c696239b6b po plugin: added TODO about charset/encoding in new translations
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02 18:07:01 +01:00
intrigeri 9643ce20d8 Revert "added the tweakbestlink hook"
This reverts commit e51089e11f.
The new "inject()" feature should replace this ad-hoc hook.

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02 17:33:32 +01:00
intrigeri 7713653878 Merge commit 'origin/master' into prv/po 2008-11-02 13:11:00 +01:00
Joey Hess 8f7e6e76ac rename 2008-10-31 18:02:03 -04:00
alexander fd9192006b 2008-10-31 17:53:57 -04:00
alexander efc1e4a369 2008-10-31 17:52:42 -04:00
Joey Hess bb841f94f4 format: New plugin, allows embedding differntly formatted text inside a page (ie, otl inside a mdwn page, or syntax highlighted code inside a page). 2008-10-31 16:42:20 -04:00
jwalzer 8f5723e1d5 start discussion of the plugin 2008-10-30 12:27:09 -04:00
jwalzer 547d296924 opml-Plugin - Stub-Page 2008-10-30 12:22:51 -04:00
http://lollipopman.myopenid.com/ 40b6033917 2008-10-30 08:28:28 -04:00
Joey Hess 3d72fd8f26 wording 2008-10-29 18:05:56 -04:00
https://yag.myopenid.com// 3c48758576 Fixed broken link. 2008-10-29 15:09:56 -04:00
Joey Hess 65bf71d387 organizing and pulling together syntax highlighting info 2008-10-26 19:43:57 -04:00
Joey Hess 1a883b3c50 include temp file for attachment change too 2008-10-24 13:44:03 -04:00
Joey Hess dfef51e10e Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2008-10-24 13:30:29 -04:00
Joey Hess 0196e1f9fc updates 2008-10-24 13:29:41 -04:00
tschwinge 0a081d78c4 Typo fix. 2008-10-24 05:40:52 -04:00
Joey Hess ad9e443f22 check_canattach hooked up 2008-10-23 16:56:40 -04:00
Joey Hess 4669eab596 more work on untrusted committers
Wired up check_canedit and check_canremove, still need to deal with
check_canattach, and test.
2008-10-23 16:29:50 -04:00
Joey Hess 094af3d113 initial support for git repos with untrusted committers
Still need to wire up the calls to check_* , but it's cold out here and my
hands are going numb, so enough for now.
2008-10-22 20:52:34 -04:00
Joey Hess 97b94e4e88 displaytime hook is gone 2008-10-21 20:37:49 -04:00
intrigeri b33ce3139c thanks! 2008-10-21 19:17:49 -04:00
Joey Hess a18fea41cd Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2008-10-21 17:57:32 -04:00
Joey Hess e75818572f function injection overhaul
Add an inject function, that can be used by plugins that want to replace
one of ikiwiki's functions with their own version. (This is a scary thing
that grubs through the symbol table, and replaces all exported occurances
of a function with the injected version.)

external: RPC functions can be injected to replace exported functions.

Removed the stupid displaytime hook, and use injection instead.
2008-10-21 17:57:19 -04:00
Joey Hess 70e0c9447a change obsolete example 2008-10-21 17:09:44 -04:00
intrigeri 64d2ba358d added link to po plugin 2008-10-21 14:59:02 -04:00
Joey Hess ec566c02fd response 2008-10-20 20:57:42 -04:00
intrigeri 94797b66c4 answering joey 2008-10-20 19:45:49 -04:00
Joey Hess ee1ccfa863 use relativedate as the css class for dates that should display relative 2008-10-20 19:22:22 -04:00
Joey Hess 99bf734963 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2008-10-20 19:19:03 -04:00
Joey Hess 2c89dacde4 wow 2008-10-20 19:18:49 -04:00
intrigeri 93959d45db formatting, added git clone information 2008-10-20 18:56:21 -04:00
intrigeri eea52bccc9 initial plugin public apparition 2008-10-20 18:54:04 -04:00
Joey Hess df22dd5cbd add header 2008-10-20 16:59:34 -04:00
Joey Hess 22ec2912be update 2008-10-20 16:58:22 -04:00
Joey Hess f1213d3ab7 fix name 2008-10-20 16:57:37 -04:00
Joey Hess 4729426292 pull together info on converting to ikiwiki from other systems 2008-10-20 16:55:38 -04:00
http://alcopop.org/me/openid/ 566c1af2aa split into subpages? 2008-10-20 10:25:49 -04:00
intrigeri fadb26bc15 Merge commit 'origin/master' into prv/po 2008-10-20 14:33:19 +02:00
intrigeri 654adc105e po plugin: todo++
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-20 14:30:22 +02:00
Joey Hess fd9393ef85 add displaytime hook
Need to use a hook because an exported function cannot be reliably
overridden. The replacement verstion was actually only affecting plugins
loaded after it.

formattime doesn't need a hook, since there's no reason to export it.
2008-10-19 20:12:37 -04:00
tschwinge 3670fe9a4f Correct copy&paste-o. 2008-10-19 12:14:08 -04:00
intrigeri 8211910566 po plugin: set every configuration item to unsafe
We will check later which ones are actually safe enough for websetup.

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-19 17:19:42 +02:00
intrigeri b4316fd941 po plugin: doc fix
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-19 00:15:44 +02:00
intrigeri f096a9d798 po plugin: added ISTRANSLATION and ISTRANSLATABLE template variables
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-19 00:05:13 +02:00
intrigeri 72dc1a5f02 po plugin: todo++
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-19 00:04:35 +02:00
intrigeri a0deb3038c po plugin: do not allow msgmerge to create backup files
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 19:18:22 +02:00
intrigeri d0c4d5061d po plugin: todo++
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:13 +02:00
intrigeri 7b7865150f po plugin: add correct dependencies on pages using OTHERLANGUAGES
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:13 +02:00
intrigeri 93b316f7c1 po plugin: todo++
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:13 +02:00
intrigeri 1d76762517 po plugin: initial implementation of automatic POT/PO update
The updated or created PO files are put under version control.

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:12 +02:00
intrigeri c852203be8 po plugin: todo++ more security checks needed
... when creating new files.

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:12 +02:00
intrigeri 58c77a01f7 po plugin: create missing POT/PO files in needsbuild hook
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:12 +02:00
intrigeri f42cf38076 po plugin: documentation work
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:12 +02:00
intrigeri 6add615928 po plugin: added and documented PERCENTTRANSLATED template variable
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:12 +02:00
intrigeri 1a670d3aca po plugin: make translation percentage available in OTHERLANGUAGES loop
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:12 +02:00
intrigeri d8c2800674 po plugin: documented custom PageSpec tests, reorganized doc a bit
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:12 +02:00
intrigeri 6f858cd59f po plugin: todo update wrt. newly translatable pages
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:11 +02:00
intrigeri d07c6b707d po plugin: todo++ : security note about system()
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:11 +02:00
intrigeri 27bfe18f51 po plugin: updated todo wrt. automatic POT/PO update/creation
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:11 +02:00
intrigeri d4f787ef52 po plugin: make any slave page dependent on the corresponding master page
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:11 +02:00
intrigeri 9332457e6c po plugin: todo++: create POT/PO when the plugin is enabled
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:11 +02:00
intrigeri 37222492a5 po plugin: updated doc to reflect current status of automatic PO files update
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:11 +02:00
intrigeri a28559798a po plugin: created OTHERLANGUAGES template loop
It currently only provides basic translations/master pages links.
Updated documentation accordingly.

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:10 +02:00
intrigeri 32cc0b336a po plugin: po_slave_languages is a hash, rather than a hash of hashes
The latter seems to be unsupported by ikiwiki config system.

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:10 +02:00
intrigeri d39f69da7f po plugin: fix formatting in documentation
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:10 +02:00
intrigeri ae827a43f8 po plugin: build %translations at scan time
... so that we can consider it as complete at preprocess time

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:10 +02:00
intrigeri 458ccebdd3 po plugin: added *.pot to wiki_file_prune_regexps
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:10 +02:00
intrigeri e163b037bf po plugin: move translatable pages to setup file, refactor
Replaced [[!translatable]] directive with po_translatable_pages setting.

Moved istranslatable/istranslation code to helper functions leaving place for
future caching and/or memoization. The PageSpec functions still work.

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:10 +02:00
intrigeri 886f35153b po plugin: added note about not publishing .pot files
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:09 +02:00
intrigeri b852b0655c po plugin: added todo note about optimization
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:09 +02:00
intrigeri 23dccccdf2 po plugin: update doc (move finished item from todo)
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:09 +02:00
intrigeri 79d6f52d30 po plugin: implemented po_link_to=current
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:09 +02:00
intrigeri fdc7974b2a po plugin: implemented po_link_to=negotiated
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:09 +02:00
intrigeri 9c25f5cfe9 po plugin: rewrite internal linking specification
(not implemented yet)

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:09 +02:00
intrigeri 39d44d443d rename urlpath hook into tweakurlpath for consistency's sake
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:08 +02:00
intrigeri e51089e11f added the tweakbestlink hook
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:08 +02:00
intrigeri cc4736d9ee po plugin: clearer file naming specs
i.e. clarify that master pages do not have to obey a special naming convention,
so that migration from/to this plugin is smooth

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:08 +02:00
intrigeri 24726f2836 po plugin: add one more pagespec function to the specification
(not implemented yet)

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:08 +02:00
intrigeri a926f9840e po plugin: linking behavior specification
(no implementation yet)

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:08 +02:00
intrigeri d9b9022c13 added hook urlpath
This hook can be used to modify the internal urls generated by ikiwiki.

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:08 +02:00
intrigeri bd50ba3e83 po plugin: switch to page.LL.html naming convention
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:08 +02:00
intrigeri 968106cc80 po plugin: enhance documentation
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:07 +02:00
intrigeri 45d08022bb po plugin: name rendered master pages like slave ones (page.html.LL)
Apache's content negotiation transparently redirects any old URL (page.html) to
the new one, depending on the client preferred language (i.e. a German browser
will be fed with page.html.de). Transition to this naming convention is then
really smooth.

This naming convention allows one to deliberately display the master page, even
if her browser is configured for another language.

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:07 +02:00
intrigeri fae57e807a po plugin: initial documentation, along with huge TODO list
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:07 +02:00
intrigeri fc299df955 added the targetpage hook
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 15:49:07 +02:00
Joey Hess 7390a7a072 relativedate: New javascript-alicious plugin that makes all dates display relative, in a very nice way, if I say so myself. 2008-10-17 20:47:32 -04:00
Joey Hess 79b376f991 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.
2008-10-17 20:28:18 -04:00
Joey Hess cd305909d3 document google plugin 2008-10-10 17:13:33 -04:00
bremner 3369bbee1c 2008-10-10 01:45:45 -04:00
http://yag.myopenid.com/ 2ff36e631e 2008-10-09 19:33:25 -04:00
Joey Hess debd8636a0 problem fixed 2008-10-09 19:15:39 -04:00
http://yag.myopenid.com/ 8c46ca734a 2008-10-09 18:50:04 -04:00
Joey Hess 8c191adf5c tag updates 2008-10-09 16:58:25 -04:00
http://josephturian.blogspot.com/ 4544a3e583 2008-10-09 15:01:09 -04:00
Joey Hess d3ca495e61 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 (It does not control who can read a page, but that's out of scope for ikiwiki.) 2008-10-08 17:47:38 -04:00
Joey Hess 6caed59b9c remove page_locking page, move content to plugins/lockedit
Also, removed obsolte para about using the prefs page to configure locked
pages, that interface is obsolete, hidden by default, and the locked_pages
setup file setting is used instead.
2008-10-08 17:09:24 -04:00
Joey Hess 18b1c7f012 Merge branch 'tova' 2008-10-01 15:54:10 -04:00
Joey Hess 7308f3da5b Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2008-10-01 14:47:49 -04:00
Joey Hess 85ec27ab58 Merge branch 'master' into tova
Conflicts:

	debian/changelog
2008-09-30 21:04:22 -04:00
Joey Hess 0651e86a4c httpauth: Document that ikiwiki.cgi has to be in a directory subject to authentication. Closes: #500524 2008-09-30 21:03:51 -04:00
tschwinge 335049c5c4 The plugins have been rewritten and now should function properly. 2008-09-30 17:44:47 -04:00
Joey Hess 2d45a303e2 add newpagefile function 2008-09-29 18:51:16 -04:00
Joey Hess d4ac1c750e response 2008-09-27 21:13:35 -04:00
http://www.cse.unsw.edu.au/~willu/ 66eb48ebcd Thoughts on the new wikistate variable 2008-09-27 20:03:15 -04:00
Joey Hess a5d3acd37c Add %wikistate, which is like %pagestate except not specific to a given page, and is preserved across rebuilds. 2008-09-27 16:45:27 -04:00
Joey Hess 9ec9d6901d Export pagetitle, titlepage, linkpage. 2008-09-27 14:27:42 -04:00
Joey Hess dddf5d55fd clarify when to use utlto and when to use htmlpage
suggestion from smcv
2008-09-27 12:54:10 -04:00
Joey Hess 78e4d5bc6f clarify 2008-09-26 19:31:19 -04:00
Joey Hess 89256ab870 htmlscrubber: Add a config setting that can be used to disable the scrubber acting on a set of pages. 2008-09-26 18:07:37 -04:00
Joey Hess dfe55e8956 Add keepextension parameter to htmlize hook. (Willu) 2008-09-23 13:39:21 -04:00
http://schmonz.livejournal.com/ 72261774d2 2008-09-19 14:14:44 -04:00
Joey Hess fde2682548 response 2008-09-19 14:11:28 -04:00
http://schmonz.livejournal.com/ bb630febdb probably fine maybe? 2008-09-19 14:06:55 -04:00
Joey Hess 07df0ddea9 response 2008-09-19 13:59:18 -04:00
http://schmonz.livejournal.com/ 07693b60f4 response 2008-09-19 13:48:25 -04:00
Joey Hess 87ece1837d response 2008-09-19 13:15:59 -04:00
Joey Hess 343117daf2 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2008-09-19 13:12:38 -04:00
Joey Hess f22313b111 response 2008-09-19 13:10:44 -04:00
http://schmonz.livejournal.com/ 4bbc7fbdc2 new problem 2008-09-19 12:56:40 -04:00
AlexandreDupas 72b2cba709 Adding a deprecated tag for plugins? 2008-09-19 09:24:07 -04:00
http://schmonz.livejournal.com/ db2178d5ae yup yup 2008-09-17 22:46:15 -04:00
Joey Hess c940cabee5 response 2008-09-17 18:20:51 -04:00
http://schmonz.livejournal.com/ 39fc9a37da not quite there yet 2008-09-17 16:37:03 -04:00
Joey Hess 6a90f5cb3f Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2008-09-17 15:57:42 -04:00
Joey Hess 1cb4154bc8 aggregate: Support atom feeds with only a summary element, and no content elements. 2008-09-17 15:56:58 -04:00
http://schmonz.livejournal.com/ 6ca4038f37 add basic websetup support 2008-09-17 15:52:35 -04:00
http://schmonz.livejournal.com/ 0ca6aef1e9 2008-09-17 15:01:18 -04:00
http://schmonz.livejournal.com/ 0205a78dba response to response 2008-09-17 14:52:50 -04:00
Joey Hess da7c6eb1b4 editdiff: Broken since 2.62 due to wrong syntax, now fixed. 2008-09-17 14:34:02 -04:00
Joey Hess b540b263de aggregate: Allow expirecount to work on the first pass. (expireage still needs to wait for the pages to be rendered though) 2008-09-17 14:27:31 -04:00
http://schmonz.livejournal.com/ 2c2f2b0096 not seeing the Edit button, help? 2008-09-17 12:07:17 -04:00
http://schmonz.livejournal.com/ 16504524c9 incomplete aggregation (no bodies) 2008-09-17 12:00:37 -04:00
bremner f1722d75ac hopefully answer Peter's question 2008-09-15 08:42:47 -04:00
bremner 834489a56a share my fumblings in calling IkiWiki::Setup 2008-09-13 08:28:52 -04:00
Joey Hess 97b71834bb fix IkiWiki::Setup::load docs 2008-09-12 21:20:34 -04:00
bremner 739d929348 change name of repo 2008-09-12 10:58:28 -04:00
bremner 9cf779de2f update repo name 2008-09-12 10:50:39 -04:00
http://www.cse.unsw.edu.au/~willu/ ead3c9caa4 Reword slightly 2008-09-11 23:18:23 -04:00
http://www.cse.unsw.edu.au/~willu/ fc2a0ba230 Fix typo 2008-09-11 23:02:02 -04:00
Joey Hess b50fc63208 fix link 2008-09-11 19:37:00 -04:00
Joey Hess ad7f5febf3 fix link 2008-09-11 19:36:35 -04:00
Joey Hess bc7381c4f9 listdirectives: Enable use of the directives underlay. 2008-09-11 18:46:32 -04:00
Joey Hess 5e4767a594 misc minor changes 2008-09-11 18:29:07 -04:00
Joey Hess 15c768c1c0 reword after reorg
There was a duplicated paragraph, an example on the wrong page, and some
rewording needed after will's reorg.
2008-09-11 18:14:26 -04:00
Joey Hess 701720198f move demo back to plugin page 2008-09-11 18:00:25 -04:00
Joey Hess d48e55c3d9 move back demo and add example 2008-09-11 17:53:21 -04:00
Joey Hess aa37d64d6a move demo back to plugin and add example 2008-09-11 17:51:27 -04:00
Joey Hess 798034ad46 re-add demo, was lost in will's changes 2008-09-11 17:44:46 -04:00