summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-03-25web commit by buo: ThanksJoey Hess
2008-03-25web commit by buo: locales and mercurialJoey Hess
2008-03-24web commit by http://willu.myopenid.com/: Add note about rel="nofollow" as ↵Joey Hess
an anti-spam suggestion
2008-03-24web commit by http://jblevins.org/: htmlscrubber patch to sanitize SVG and ↵Joey Hess
MathML
2008-03-24web commit by http://mjgoins.myopenid.com/Joey Hess
2008-03-24web commit by http://mjgoins.myopenid.com/Joey Hess
2008-03-23web commit by http://jblevins.org/: Thoughts about notation for citationsJoey Hess
2008-03-23revert destpage part of f7bdc2385Joey Hess
destpage does not normally need to be worried about when creating other files as part of the process of rendering a page. Using destpage results in inlined pages creating two copies of such files. It works to not use destpage in this case because the inlining page depends on the source page, so if the source page is modified or deleted the inlining page will be updated.
2008-03-23inline: Allow the "feedshow" parameter to take values greater than the value ↵Joey Hess
for "show".
2008-03-22Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.infoJoey Hess
2008-03-22add loadindex/saveindex test suiteJoey Hess
2008-03-22web commit by http://madduck.net/: add note about whole site rebuilds for ↵Joey Hess
little changes
2008-03-22web commit by http://jblevins.org/: Notes about access keys from the main ↵Joey Hess
discussion page
2008-03-21web commit by http://madduck.net/: put thoughts into the wishlist itemJoey Hess
2008-03-21scan hook works, remove NotImplemented exceptionmartin f. krafft
Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-03-21Do not output xml-rpc debuggingmartin f. krafft
Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-03-21Flesh out pythondemomartin f. krafft
This implements most hooks with stupid demo code, and also still has some TODO items. Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-03-21Handle going down with an exceptionmartin f. krafft
We previously used None as a sentinel to exit, but None is now a proper value, so now it's the job of an exception-like object (except it isn't an exception). Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-03-21put XMLStreamParser in public namespacemartin f. krafft
Since we might throw sub-class exceptions, the class should be in the public namespace, meaning its name should not be prefixed with _. Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-03-21Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.infoJoey Hess
2008-03-21typosJoey Hess
2008-03-21web commit by http://jblevins.org/: Ideas about keyboard shortcutsJoey Hess
2008-03-21Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.infoJoey Hess
2008-03-21defer po and pot file updating until package build timeJoey Hess
This allows make to be run without polluting the tree with lots of po file changes.
2008-03-21web commit by http://madduck.net/Joey Hess
2008-03-21on css suckitudeJoey Hess
2008-03-21external: Work around XML RPC's lack of support for null by passing a ↵Joey Hess
special sentinal value.
2008-03-21Allow individual hook registration to override IDmartin f. krafft
The preprocessor hooks need to specify IDs different from the ID used to initialise the proxy. Thus, the hook function now takes an optional id keyword argument and uses the ID used during initialisation if none is provided. Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-03-21Refactor remote procedure calls in the proxymartin f. krafft
Add an rpc() method to the proxy to allow users to call remote procedures, and route the proxy's own import registration via this function. Also, implement convenience functions for the RPC calls exported in the IkiWiki::XML::RPC namespace. Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-03-21Make proxy object available to hook functionsmartin f. krafft
Hook functions now get the proxy object as first argument to be able to use RPC via the proxy. Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-03-21add last parameter to plugin registrationmartin f. krafft
Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-03-21Allow external plugins to return no valuemartin f. krafft
Instead of using the XML-RPC v2 extension <nil/>, which Perl's XML::RPC::Parser does not (yet) support (Joey's patch is pending), we agreed on a sentinel: {'null':''}, that is, a hash with a single key "null" pointing to the empty string. The Python proxy automatically converts None appropriately and raises an exception if a hook function should, by weird coincidence, attempt to return {'null':''}. Signed-off-by: martin f. krafft <madduck@madduck.net>
2008-03-21Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.infoJoey Hess
2008-03-21fix page source storingJoey Hess
This saves space, and stores the data under the right keys.
2008-03-21web commit by http://jblevins.org/: Case-sensitivity of HTML::ScrubberJoey Hess
2008-03-21fix transition callJoey Hess
2008-03-21moved to a tipJoey Hess
2008-03-21add a tip about dealing with ikiwiki's binary state filesJoey Hess
2008-03-21fix transitioning of page stateJoey Hess
2008-03-21web commit by http://jblevins.org/: Fix links and signJoey Hess
2008-03-21web commit by http://jblevins.org/: Request for comments about SVG and ↵Joey Hess
MathML whitelists
2008-03-21add transition code for indexdbJoey Hess
2008-03-21Changed to a binary index file, written using Storable, for speedJoey Hess
During refresh of a wiki with 800 files, loadindex was using more total time than any other function, and saveindex was also in the top ten. Rewriting them to use Storable makes them three times as fast. 0.7 seconds is saved on my laptop in profiling mode.
2008-03-21Precompile pagespecs, about 10% overall speedupJoey Hess
About 12% of ikiwiki runtime was spent in pagespec_match. It was evaling the same pagespec code over and over again. This changes pagespec_translate to return memoized, precompiled functions that can be called to match against a given pagespec. This also allows getting rid of the weird variable scoping trick that had to be in effect for pagespec_translate to be called -- the variables are now just fed into the function it returns. On my laptop, this drops build time for the docwiki from about 60 to 50 seconds.
2008-03-21improve commentJoey Hess
2008-03-21updates to support current version of Devel::ProfileJoey Hess
2008-03-21work around perl warningJoey Hess
2008-03-21delete inline data after it's usedJoey Hess
2008-03-21crazy optimisation to work around slow markdownJoey Hess
Markdown is slow. Especially if it has to process an enormous page. The most common enormous page is currently the recentchanges page, which gets processed a lot, and contains very little actual markdown. Most of it is a big <div>, which markdown skips ... slowly. This is a rather sick optimisation to work around markdown's speed issues. Now inline inserts a small, dummy div, allows markdown to quickly render the actual page content, then replaces the dummy with the actual inlined pages later. Results: Rendering just a recentchanges page, with diffs included, dropped from 4.5 seconds to 2.7 seconds on my laptop. Building the entire wiki dropped from 46.6 seconds to 39.5 seconds. (It would be better if inline were a *post*-processor directive.)
2008-03-21process smilies in a sanitize hookJoey Hess
I had to move it to sanitize so all the markup is htmlized, so it can scan for <pre> and <code>.