Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions content/api/gen-docs.janet
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
(def- url-repl-chars
{(chr "%") "%25"
(chr "?") "_q"
(chr "=") "%3d"})
(chr "=") "%3d"
(chr "/") "%2f"})

(defn jdoc-escape
[str]
Expand Down Expand Up @@ -96,7 +97,7 @@
:content {:tag "code" :language (require "janet.syntax") :content (string example)}}] [])
(if c-example
{:tag "a" "href"
(string "https://janetdocs.com/" (jdoc-escape key))
(string "https://janetdocs.org/core-api/" (jdoc-escape key)) # Spork will be "https://janetdocs.org/spork/", JPM .org/jpm/ etc.
:content "Community Examples"})]}))

(defn- all-entries
Expand Down
2 changes: 1 addition & 1 deletion content/index.mdz
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,4 @@ We also support @link[https://github.com/janet-lang/janet/discussions]{GitHub Di

### Janet Docs

For help, you can also check out @link[https://janetdocs.com]{Janet Docs} for Janet documentation with user-provided examples. Feel free to contribute your own examples here to help fellow programmers.
For help, you can also check out @link[https://janetdocs.org]{Janet Docs} for Janet documentation with user-provided examples. Feel free to contribute your own examples here to help fellow programmers.