Skip to content

Commit

Permalink
Update toitdoc html. (#2559)
Browse files Browse the repository at this point in the history
The toitdoc code in the repository and the web-page were not in sync. ->
Nothing worked.
  • Loading branch information
floitsch authored Oct 4, 2024
1 parent 803405a commit 12dc62d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/toitdoc/serve.toit
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import http.server
import net
import system

TOITDOC_WEB_VERSION ::= "v0.2.11"
TOITDOC_WEB_VERSION ::= "v0.3.0"
TOITDOC_WEB_URI ::= "https://github.com/toitware/web-toitdocs/releases/download/$TOITDOC_WEB_VERSION/build.tar.gz"

get-content-type-from-extension path/string -> string:
Expand Down Expand Up @@ -80,7 +80,7 @@ serve docs-path/string --port/int:
resource-path/string := ?
if resource == "/":
resource-path = "$web-dir/index.html"
else if resource == "/sdk/latest.json":
else if resource == "/toitdoc.json":
resource-path = docs-path
else:
resource-path = "$web-dir$resource"
Expand Down

0 comments on commit 12dc62d

Please sign in to comment.