]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/help/search.xml
webaps.help: display errors in red, add a main method.
[factor.git] / extra / webapps / help / search.xml
1 <?xml version='1.0' ?>
2
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
4
5 <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
6
7 <html xmlns="http://www.w3.org/1999/xhtml">
8         <head>
9                 <t:base t:href="$help-webapp/content/" />
10
11                 <style>
12                         body { font-family: sans-serif; font-size: 85%; }
13                         a:link { text-decoration: none; color: #00004c; }
14                         a:visited { text-decoration: none; color: #00004c; }
15                         a:active { text-decoration: none; color: #00004c; }
16                         a:hover { text-decoration: underline; color: #00004c; }
17                         span.error { display: block; color: red; }
18                 </style>
19         </head>
20
21         <body>
22                 <h1><t:a t:href="$help-webapp/content/article-handbook.html"
23                         target="content">Factor documentation</t:a></h1>
24
25                 <p>This is the <a href="http://factorcode.org" target="_top">Factor</a>
26                 documentation, generated offline from a
27                 <code>load-all</code> image. If you want, you can also browse the
28                 documentation from within the <a href="http://factorcode.org" target="_top">Factor</a> UI.</p>
29                 
30                 <p>You may search article titles below; for example, try searching for "HTTP".</p>
31                 
32                 <t:form t:action="$help-webapp/search">
33                         <t:field t:name="search" />
34                         <button type="submit">Search</button>
35                 </t:form>
36                 
37                 <t:if t:value="articles">
38                         <hr/>
39                         
40                         <h2>Articles</h2>
41                         
42                         <ul>
43                                 <t:each t:name="articles">
44                                         <li> <t:link t:name="value" t:target="content" /> </li>
45                                 </t:each>
46                         </ul>
47                 </t:if>
48                 
49                 <t:if t:value="vocabs">
50                         <hr/>
51                         
52                         <h2>Vocabularies</h2>
53                         
54                         <ul>
55                                 <t:each t:name="vocabs">
56                                         <li> <t:link t:name="value" t:target="content" /> </li>
57                                 </t:each>
58                         </ul>
59                 </t:if>
60                 
61                 <t:if t:value="words">
62                         <hr/>
63                         
64                         <h2>Words</h2>
65                         
66                         <ul>
67                                 <t:each t:name="words">
68                                         <li> <t:link t:name="value" t:target="content" /> </li>
69                                 </t:each>
70                         </ul>
71                 </t:if>
72
73         </body>
74 </html>
75
76 </t:chloe>