]> gitweb.factorcode.org Git - factor.git/commitdiff
html, http: Documentation fixes
authorMichael Raitza <spacefrogg-git@spacefrogg.net>
Tue, 16 Jan 2024 17:16:34 +0000 (18:16 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 16 Jan 2024 17:23:28 +0000 (09:23 -0800)
link is not a singleton but a tuple.

http.server.responses provides many more responses than is obvious to
the uninvolved.

basis/html/components/components-docs.factor
basis/http/server/responses/responses-docs.factor

index 0d0ff1f4a0a67567cf3ae2de0dbafe46ef3112b3..75b814d022d716bf509f2fcbf557cb3f5e1dbf27 100644 (file)
@@ -91,22 +91,22 @@ $nl
 $nl
 "Singleton components:"
 { $subsections
-    hidden
-    link
-    inspector
     comparison
+    hidden
     html
+    inspector
     xml
 }
 "Tuple components:"
 { $subsections
-    field
-    password
-    textarea
-    choice
     checkbox
+    choice
     code
     farkup
+    field
+    link
+    password
+    textarea
 }
 "Creating custom components:"
 { $subsections render* }
index 6e89b992940f35f202bc9ee3319bc46f782d1a23..0efa41b041bb182672aa43d1d8771e3442ae9a7b 100644 (file)
@@ -40,6 +40,8 @@ ARTICLE: "http.server.responses" "Canned HTTP responses"
     <400>
     <404>
 }
+
+"The " { $vocab-link "http.server.responses" } " already provides many more canned responses. "
 "New error responses like the above can be created for other error codes too:"
 { $subsections <trivial-response> } ;