Jacques Distler
a1420aa5c7
Revamp Markup Cheat Sheets
...
They still suck, but less-so.
2009-12-17 10:29:51 -06:00
Jacques Distler
fe877a10b4
Make html_ext Available as a Helper
...
... and protected.
2009-12-16 00:59:33 -06:00
Jacques Distler
f3b69bc57b
Make xhtml_enabled? a Protected Method
...
... as it should be. Remarkably, it's
still possible to use it in views, if
you declare it a helper method.
2009-12-14 22:34:31 -06:00
Jacques Distler
d3e79ea84a
Make truncate() Unicode-aware
2009-12-14 17:41:28 -06:00
Jacques Distler
2c5e5a0015
Refactoring
...
Move the truncate() method into ApplicationHelper.
Move another method around, for no particularly
good reason. Controllers really shouldn't have
public methods that don't correspond to actions.
2009-12-14 02:01:50 -06:00
Jacques Distler
dc3d202665
Cache Source View
...
Also, fix a cache-sweeping bug reported,
long ago, by Toby Bartels.
2009-12-13 21:09:12 -06:00
Jacques Distler
1613973929
Array#collect is faster than Array#inject
...
Also add some more tests.
2009-12-13 20:00:18 -06:00
Jacques Distler
282515d907
Source View
...
Add a Source view. [Based on a suggestion by Andrew Stacey]
Fix a well-formedness bug in the list action, due to
boneheaded truncation algorithm. [Reported by Roby Bartels]
2009-12-13 19:25:14 -06:00
Jacques Distler
c88a1d43dc
Another Textarea Resizing Tweak
...
Handle the 'Change page name'
part of the form more intelligently.
2009-12-12 22:37:38 -06:00
Jacques Distler
a58bee7437
Another Textarea Tweak and a Ruby 1.9 Fix
2009-12-12 15:28:05 -06:00
Jacques Distler
60a233a917
More Robust
...
Browsers have a bewildering array of
default behaviours for <textarea>s.
This will work a little more uniformly
across brosswers.
2009-12-12 01:12:52 -06:00
Jacques Distler
561a007682
Auto-resizing Textarea
...
Resize textarea to fit viewing area.
Also update Prototype to 1.6.1.
2009-12-10 16:57:05 -06:00
Jacques Distler
023d84c4a4
Ack! This is better
2009-12-08 09:08:25 -06:00
Jacques Distler
faac8951a3
More Ruby 1.9 String Encoding Fun
2009-12-08 08:50:01 -06:00
Jacques Distler
2c5c6dc78a
S5 Fix
...
Omit a (seemingly superfluous)
javascript hack which causes
Gecko-based browsers to request
/my_wiki/s5/null
when they load an s5 slideshow.
Also a stylistic cleanup in
the wiki_controller.
2009-12-07 15:27:40 -06:00
Jacques Distler
171c12d2c1
Efficiency
...
This version of String#purify
is 12% faster, under Ruby 1.9,
than before.
2009-12-05 10:50:58 -06:00
Jacques Distler
f7044ecbb4
Ruby 1.9.1 Fixes
...
Some more fixes to deal with Ruby 1.9.1.
2009-12-02 12:46:15 -06:00
Jacques Distler
063a8ca5a7
Fix Maruku Ruby 1.9 Bug
...
In Rbuy 1.8, ?c returns an integer.
In Ruby 1.9, it returns a 1-character
string. This was causing one of our
LaTeX conversion functional tests to
fail.
Fixed.
2009-12-01 21:29:07 -06:00
Jacques Distler
34b63a8375
Fix a Ruby 1.9 Character Encoding Bug
...
Wow, this stuff is complicated!
Some things really want to be UTF-8;
others really want to be byte strings.
2009-12-01 12:03:15 -06:00
Jacques Distler
e3832c6f79
Rails 2.3.5
...
Upgrade to Rails 2.3.5.
Also work around this bug:
https://rails.lighthouseapp.com/projects/8994/tickets/3524
created by the aforementioned
Rails release.
2009-11-30 19:38:34 -06:00
Jacques Distler
a6429f8c22
Ruby 1.9 Compatibility
...
Completely removed the html5lib sanitizer.
Fixed the string-handling to work in both
Ruby 1.8.x and 1.9.2. There are still,
inexplicably, two functional tests that
fail. But the rest seems to work quite well.
2009-11-30 16:28:18 -06:00
Jacques Distler
79c8572053
Use Rails.root
...
A little cleanup.
2009-11-22 01:32:58 -06:00
Jacques Distler
045dcbf1f5
Media Type
...
The default stylesheet should be media='all',
rather than media='screen'.
Damned Rails defaults!
2009-11-22 00:27:42 -06:00
Jacques Distler
b1b988c672
Update Test for itex2MML 1.3.18
...
More entity fun.
2009-11-18 12:44:25 -06:00
Jacques Distler
371aab6f96
Sync with Latest itex2MML and MathML::Entities
...
Support the latest changes in
http://www.w3.org/TR/2009/WD-xml-entity-names-20091117/
2009-11-18 12:04:07 -06:00
Jacques Distler
e678b7e3a2
Spacing Tweak
2009-11-09 18:17:57 -06:00
Jacques Distler
2b213d95de
Accessiblity: Skip Navigation Link
...
Thanks to John Gardner for the suggestion.
2009-11-09 11:58:57 -06:00
Jacques Distler
6be9c5ca6a
More Robust mactionWorkarounds
...
The previous version was OK with itex2MML
output. But this one will not get tripped up
by extraneous text nodes.
2009-11-08 02:27:38 -06:00
Jacques Distler
f9bd8f081f
Change body Font Back to Verdana
...
Some CSS experiments crept into Revision 464.
Revert them.
2009-11-07 21:11:32 -06:00
Jacques Distler
2e52ce48df
Update LaTeX Output for Revision 464
2009-11-06 21:23:18 -06:00
Jacques Distler
977da29f68
Support for \tooltip{}{} and \statusline{}{}
...
itex2MML 1.3.16 add a \tooltip{}{} command which,
like \statusline{}{}, produces an <maction> element.
Neither of these is natively supported by Mozilla/Firefox.
Add some Javascript to work around that weakness.
2009-11-06 14:32:45 -06:00
Jacques Distler
c99ca26a8d
Better log rotation for Passenger
...
Touch the tmp/restart.txt file, when
rotatingthe log files. Otherwise, multiple
workers may try to rotate the log files
at the same time, with sub-optimal results.
Also, an aesthetic tweak to the url_generator.
2009-10-28 00:03:25 -05:00
Jacques Distler
883d82992c
Version 0.17.3
2009-10-23 11:13:26 -05:00
Jacques Distler
f559d8a06d
Intra-Web Links in S5 Slideshows on Published Webs
...
Never really thought through where those should go.
They now point to the published version.
2009-10-23 10:05:02 -05:00
Jacques Distler
d880d81b0a
Simplification
...
The last commit means we can
simplify the url_generator.rb a bit more.
It's still an ugly beast.
2009-10-23 00:18:23 -05:00
Jacques Distler
761f8bbb51
Links From Published Webs
...
Damn, but it's hard to get this right.
I think I've finally done it, though.
We'll see ...
2009-10-22 17:57:13 -05:00
Jacques Distler
97a35e280b
DB Migration
...
% rake upgrade_instiki
fixes some potential problems in the database column types.
Revision content can now be up to 16MB.
Under MySQL, the previous limit was 64KB.
Page names can now be up to 255 bytes.
Under MySQL, the previous limit was 60 bytes.
Additional CSS styles can now be up to 64KB.
Under MySQL, the previous limit was 255 bytes.
Thanks to Andrew Stacey for reporting these.
2009-10-21 00:42:48 -05:00
Jacques Distler
5df1504255
Tests for Revision 456
...
Functional tests for Revision 456.
Also, fix a buglet in handling rescues
for new pages.
2009-10-19 22:57:11 -05:00
Jacques Distler
20c99df440
Work around Rails flash bug
...
When redirected to another page, flash
messages will not display if the query
string is longer than 10192 bytes. In
Instiki, certain rescue operations
involve redirection, with the updated
content of the page passed as a query
parameter. Fall back to using the stored
content (ie, don't pass a query parameter)
if the content is too long.
2009-10-19 18:19:31 -05:00
Jacques Distler
3372d78df3
Auto-Restarting for Passenger
...
Added a tmp/restart.txt file.
Touching this file will cause
Passenger to restart the application.
2009-10-11 14:41:32 -05:00
Jacques Distler
cae4b5c539
Enable X-Sendfile support under Passenger
...
Passenger doesn't behave like a proxy server.
But it does support X-Sendfile. So let's make
use of that.
2009-10-11 14:00:16 -05:00
Jacques Distler
2240206554
Ack!
...
Do that right.
2009-10-11 10:29:15 -05:00
Jacques Distler
a483b4e71e
Also fix S5 slides.js
...
It needs to use relative URLs, too.
2009-10-11 10:20:43 -05:00
Jacques Distler
23e9c6beb2
Use AssetTagHelpers in S5 Template
...
Otherwise S5 breaks when Instiki is
deployed to a non-root URL (e.g., by
setting RailsBaseURI in Passenger).
Also a stylistic tweak in lib/node.rb
2009-10-11 09:49:01 -05:00
Jacques Distler
dd8c912c6c
Update lib/node.rb
...
Grab some fixes from html_scanner, and add few of our own.
2009-10-10 03:52:33 -05:00
Jacques Distler
d5e35d2861
Some more Sanitizer tweaks
...
Mostly stylistic things, but allow some constants to be defined by the calling program.
2009-10-10 02:44:44 -05:00
Jacques Distler
d14db51d9e
More Sanitizer Refactoring
...
Make the Sanitizer more efficient.
Also, update some unit tests.
2009-10-09 23:18:17 -05:00
Jacques Distler
9b7071d190
Update Sanitizer Docs
...
They were a bit out-of-sync with what the sanitizer
actually does.
2009-10-09 14:02:07 -05:00
Jacques Distler
e7b77dd3d3
Sanitizer Refactoring
...
A bit of cleanup for the Sanitizer.
2009-10-09 13:02:02 -05:00
Jacques Distler
2f3ff9f651
Efficiency
...
There's a moderate efficiency gain to be had by
using Set#include?, rather than Array#include?
in the sanitizer.
2009-10-08 16:22:50 -05:00