]> gitweb.factorcode.org Git - factor.git/commitdiff
help.html doesn't depend on html.components, reduces mason.test load time
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sun, 23 Nov 2008 09:55:43 +0000 (03:55 -0600)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sun, 23 Nov 2008 09:55:43 +0000 (03:55 -0600)
basis/help/html/html.factor
extra/webapps/help/help.factor

index 6b90ba6937acb2294944ebd99123e05699346db1..a9df0bea811e49a37f554a217db98d8d387e8cdf 100644 (file)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2008 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: io.encodings.utf8 io.encodings.ascii io.encodings.binary
-io.files html.streams html.elements html.components help kernel
+io.files html.streams html.elements help kernel
 assocs sequences make words accessors arrays help.topics vocabs
 tools.vocabs tools.vocabs.browser namespaces prettyprint io
 vocabs.loader serialize fry memoize unicode.case math.order
@@ -104,10 +104,6 @@ MEMO: load-index ( name -- index )
 
 TUPLE: result title href ;
 
-M: result link-title title>> ;
-
-M: result link-href href>> ;
-
 : offline-apropos ( string index -- results )
     load-index swap >lower
     '[ [ drop _ ] dip >lower subseq? ] assoc-filter
index 6f2c4f004250c303287ad68f5cbc9ae8943e7b83..96401b6afd65e73a0f9d3db54fbc6d68ef60e2bb 100644 (file)
@@ -2,11 +2,15 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: kernel accessors http.server.dispatchers
 http.server.static furnace.actions furnace.redirection urls
-validators locals io.files html.forms help.html ;
+validators locals io.files html.forms html.components help.html ;
 IN: webapps.help
 
 TUPLE: help-webapp < dispatcher ;
 
+M: result link-title title>> ;
+
+M: result link-href href>> ;
+
 :: <search-action> ( help-dir -- action )
     <page-action>
         { help-webapp "search" } >>template