Commit Graph

14094 Commits (6be4e6d1a501fa10d7894ff46b4a812cddb26d49)

Author SHA1 Message Date
Simon McVittie 6be4e6d1a5 cgiurl(): return a locally-valid path by default
To get an absolute version you can use cgiurl(cgiurl => $config{cgiurl}).
The only place in IkiWiki that seems to actually need an absolute URL
is the openid plugin, and that already uses the named parameter.
2010-11-22 23:47:04 +00:00
Simon McVittie 200c599dca cgiurl: don't append "?" if there are no parameters
This means we can use cgiurl() instead of $config{cgiurl} if an absolute
URL isn't desired.
2010-11-22 23:16:59 +00:00
Simon McVittie 8f64c69e08 Compute local paths to the top of the wiki
"local" here is short for "locally valid" - the idea is that we can use
URLs that are relative in the sense of only having the path part, but
absolute in the sense that they start from '/', such as
'/~smcv/ikiwiki.cgi'. There's no particularly good name that I can find
for these between-relative-and-absolute URLs.

They're useful because in the common case where the pages and the CGI
script have the same scheme and authority component, each page is
identified by the same locally-valid URL when linking from any page or
from the CGI, without hard-coding a choice between HTTP and HTTPS, or
between multiple virtual hostnames with the same path layout. As such,
we can use them in many situations that previously used an absolute URL.

If there's no suitable semi-absolute value for local_url (for instance,
if your pages and your CGI reside on different servers), we can just fall
back to using the absolute URL. I append '/' because $config{url} doesn't
end with '/', but the common case for local_url (on all branchable.com
sites, for instance) is that it's just '/'.
2010-11-22 23:13:52 +00:00
http://churchkey.org/author/ian/ 1968317cac added edittemplate bug for ikiwiki verison: 3.20100815.2 2010-11-22 21:26:27 +00:00
Joey Hess 5954915a4f response 2010-11-22 16:04:11 -04:00
http://smcv.pseudorandom.co.uk/ d916cd2f71 respond to feedback 2010-11-22 19:45:02 +00:00
Joey Hess 178d6a16c2 comments (finally) 2010-11-22 14:06:41 -04:00
http://slowdog.myopenid.com/ a6c3d71787 2010-11-21 19:38:10 +00:00
http://pmate.myopenid.com/ f80469c34d 2010-11-20 21:44:12 +00:00
Joey Hess 1739dbe0a8 úpdate 2010-11-20 14:57:46 -04:00
Joey Hess 9f8cfe998e response 2010-11-20 14:57:10 -04:00
Joey Hess a2c040f1fc Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2010-11-20 14:54:51 -04:00
Joey Hess 31f0e459b8 edittemplate: Fix crash if using a .tmpl file or other non-page file as a template for a new page. 2010-11-20 14:54:43 -04:00
http://pmate.myopenid.com/ c1f3129583 2010-11-20 17:57:56 +00:00
http://pmate.myopenid.com/ af0bfcc078 2010-11-20 17:56:35 +00:00
Joey Hess af5f162ca7 highlight: Support new format of filetypes.conf used by version 3.2 of the highlight package. 2010-11-20 12:55:26 -04:00
Joey Hess f8f8770a65 smcv/ready/glob-cache merged 2010-11-20 12:28:22 -04:00
Joey Hess b3bca318ef avoid an unnecessary hash lookup 2010-11-20 12:25:52 -04:00
Joey Hess cfbfbdc597 Merge remote branch 'smcv/ready/glob-cache' 2010-11-20 12:24:00 -04:00
http://smcv.pseudorandom.co.uk/ c9b737cc85 one more patch: but expanding the memoization is actually a slowdown for the docwiki 2010-11-20 00:36:29 +00:00
Simon McVittie d6ff694ff7 branch ready for merge, I think 2010-11-20 00:22:56 +00:00
Simon McVittie 55515050e1 make use of precompiled regex objects 2010-11-20 00:02:49 +00:00
Simon McVittie 788105e2a7 glob2re: return a precompiled, anchored case-insensitive regex
In practice every use of glob2re uses it like that.
2010-11-19 23:59:04 +00:00
Simon McVittie 321bf7ec19 match_glob: streamline glob cache slightly 2010-11-19 23:46:46 +00:00
Kathryn Andersen ff0e244701 Improve the speed of match_glob 2010-11-19 23:46:46 +00:00
Joey Hess a4cb86d733 response 2010-11-17 13:20:29 -04:00
Jon Dowland c02f9d224c sorry, I'll try against master in future. 2010-11-17 10:13:32 +00:00
http://pmate.myopenid.com/ 03f04d48d5 2010-11-17 08:03:09 +00:00
http://jmtd.livejournal.com/ dd97963758 ext4, default settings... 2010-11-17 07:47:07 +00:00
Joey Hess b00c6c9640 inline: Improve RSS url munging to use a proper html parser
and support all elements that HTML::Tagset knows about.

(Which doesn't include html5 just yet, but then the old version didn't either.)

Bonus: 4 times faster than old regexp method.
2010-11-16 16:57:50 -04:00
Joey Hess fcf0ee574a add test case for RSS url munging 2010-11-16 16:48:42 -04:00
Joey Hess c502b8fe54 indentation 2010-11-16 15:40:16 -04:00
Joey Hess cedf2c0af5 Fix escaping of filenames in historyurl. (Thanks, aj) 2010-11-16 15:12:52 -04:00
Joey Hess daf89f59e6 response 2010-11-16 15:03:03 -04:00
Joey Hess ec6c1269d2 more: Add pages parameter to limit where the more is displayed. (thanks, dark) 2010-11-16 15:00:04 -04:00
Joey Hess 021676e489 improve html
display not changed, but I hope this will html2text better in rss2email,
and it's generally better
2010-11-16 14:45:53 -04:00
Joey Hess b85ca8603a websetup: Fix encoding problem when restoring old setup file. 2010-11-16 14:24:15 -04:00
Joey Hess 65e726f201 response 2010-11-16 13:42:52 -04:00
Joey Hess 2a452ddf14 but it already checks length.. 2010-11-16 13:34:41 -04:00
Joey Hess 8de7fde49c already fixed 2010-11-16 13:24:50 -04:00
Joey Hess 9a7387a53b thoughts 2010-11-16 13:19:13 -04:00
http://kerravonsen.dreamwidth.org/ ab96249d5a further thoughts 2010-11-15 23:23:08 +00:00
http://kerravonsen.dreamwidth.org/ eb13521f52 modular, not replacement 2010-11-15 23:00:48 +00:00
http://churchkey.org/author/ian/ f6312319a4 added my reasons for wanting a replace-able template system 2010-11-15 15:50:37 +00:00
http://jmtd.livejournal.com/ 84fff62948 note about template inclusion 2010-11-15 14:46:13 +00:00
http://jmtd.livejournal.com/ 5430d5dc3b not quite done yet: if/included() doesn't work that way. 2010-11-15 14:43:35 +00:00
http://jmtd.livejournal.com/ 62fc5d0c3c I totally misinterpreted what included() is supposed to be for.
This reverts commit da9e1ea667
2010-11-15 14:41:40 +00:00
http://jmtd.livejournal.com/ 9d0ac3170a done with commit da9e1ea667 2010-11-15 14:28:50 +00:00
http://jmtd.livejournal.com/ da9e1ea667 guard templates with the if directive where necessary 2010-11-15 14:28:05 +00:00
http://jmtd.livejournal.com/ 53e519931f template files being treated as regular pages and the problems that can cause 2010-11-15 14:23:01 +00:00