The Inbox: Help-Squeak-SWiki-ct.3.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: Help-Squeak-SWiki-ct.3.mcz

commits-2
Christoph Thiede uploaded a new version of Help-Squeak-SWiki to project The Inbox:
http://source.squeak.org/inbox/Help-Squeak-SWiki-ct.3.mcz

==================== Summary ====================

Name: Help-Squeak-SWiki-ct.3
Author: ct
Time: 2 March 2020, 10:35:15.674949 am
UUID: 35ed0b75-38a5-3e4f-8ade-20102ed718eb
Ancestors: Help-Squeak-SWiki-mt.2

Complements HelpSystem-Core-ct.129: Specify cleanseBlock for better parsing of the wikis

=============== Diff against Help-Squeak-SWiki-mt.2 ===============

Item was changed:
  ----- Method: SWikiHelp class>>asHelpTopic (in category 'converting') -----
  asHelpTopic
 
  ^ HtmlHelpTopic new
  url: 'http://wiki.squeak.org/squeak';
+ selectBlock: [:url | (url beginsWith: '/squeak/') and: [(url includes: $.) not ".edit, .history, ..."] and: [url last isDigit]];
- selectBlock: [:url | ((url beginsWith: '/squeak/') and: [(url includes: $.) not ".edit, .history, ..."]) and: [url last isDigit]];
  convertBlock: [:url | 'http://wiki.squeak.org', url];
+ cleanseBlock: [:contents | (contents readStream
+ upToAll: '<table border=0 cellspacing=0 cellpadding=0 width="100%"';
+ upToAll: '</table>';
+ upToEnd) ifEmpty: [contents]]
  yourself!