]> gitweb.factorcode.org Git - factor.git/commitdiff
yaml: Docs don't help-lint unless the yaml library is present.
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 7 Jul 2018 17:47:45 +0000 (12:47 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 7 Jul 2018 17:48:39 +0000 (12:48 -0500)
We need a better docs system, after .98

extra/yaml/yaml-docs.factor

index 6e20122fafce6290bc663b42c63cf59bcd2dd104..c3696e807d89676a9788af10c80ec1eba35ffd5e 100644 (file)
@@ -156,7 +156,7 @@ ARTICLE: "yaml-keys" "Special mapping keys"
 "See " { $url "http://yaml.org/type/merge.html" } $nl
 "As per " { $url "http://sourceforge.net/p/yaml/mailman/message/12308050" }
 ", the merge key is implemented bottom up:" $nl
-{ $example "USING: yaml prettyprint ;
+{ $unchecked-example "USING: yaml prettyprint ;
 \"
 foo: 1
 <<:
@@ -167,7 +167,7 @@ foo: 1
 "H{ { \"baz\" 3 } { \"foo\" 1 } { \"bar\" 2 } }" }
 { $heading "!!value" }
 "See " { $url "http://yaml.org/type/value.html" } $nl
-{ $example "USING: yaml prettyprint ;
+{ $unchecked-example "USING: yaml prettyprint ;
 \"
 ---     # Old schema
 link with:
@@ -205,7 +205,7 @@ ARTICLE: "yaml" "YAML serialization"
 }
 { $examples
   { $heading "Input" }
-  { $example "USING: prettyprint yaml ;"
+  { $unchecked-example "USING: prettyprint yaml ;"
 "\"- true
 - null
 - ! 42
@@ -218,7 +218,7 @@ ARTICLE: "yaml" "YAML serialization"
 "{ t f \"42\" \"42\" 42 42 42 42.0 42.0 }"
  }
 { $heading "Output -- human readable" }
-  { $example "USING: yaml yaml.config ;"
+  { $unchecked-example "USING: yaml yaml.config ;"
 "t implicit-tags set
 t implicit-start set
 t implicit-end set
@@ -249,7 +249,7 @@ t emitter-unicode set
 "
   }
 { $heading "Output -- verbose" }
-  { $example "USING: yaml yaml.config ;"
+  { $unchecked-example "USING: yaml yaml.config ;"
 "f implicit-tags set
 f implicit-start set
 f implicit-end set