From ab3cf98bb5ca18dc0529c269661b817e3ea5f81a Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Sun, 20 Oct 2024 15:12:17 -0400 Subject: [PATCH] update doc topics; escape slashes in links --- src/doc.janet | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/doc.janet b/src/doc.janet index fe66592..43d8458 100644 --- a/src/doc.janet +++ b/src/doc.janet @@ -12,7 +12,8 @@ (defn escape-punctuation [str] (->> str (string/replace "?" "") - (string/replace "!" ""))) + (string/replace "!" "") + (string/replace "/" ""))) (defn toc-entry [name] (def escaped (escape-underscores name)) @@ -33,7 +34,7 @@ "boxes and state" ["box?" "unbox" "store!" "update!"] "results" ["err" "err?" "ok" "ok?" "unwrap!" "unwrap_or"] "errors" ["assert!"] - "turtle graphics" ["back!" "background!" "bk!" "clear!" "colors" "fd!" "forward!" "goto!" "heading" "heading/vector" "home!" "left!" "lt!" "pc!" "pd!" "pencolor" "pencolor!" "pendown!" "pendown?" "penup!" "penwidth" "penwidth!" "position" "pu!" "pw!" "render_turtle!" "reset_turtle!" "right!" "rt!" "turtle_state"] + "turtle graphics" ["back!" "background!" "bk!" "clear!" "colors" "fd!" "forward!" "goto!" "heading" "heading/vector" "hideturtle!" "home!" "left!" "loadstate!" "lt!" "pc!" "pd!" "pencolor" "pencolor!" "pendown!" "pendown?" "penup!" "penwidth" "penwidth!" "position" "pu!" "pw!" "render_turtle!" "reset_turtle!" "right!" "rt!" "setheading!" "showturtle!" "turtle_state"] "environment and i/o" ["doc!" "print!" "report!" "state"] })