Fix tools/docs.py (#2055)

This commit is contained in:
Ryan Dahl 2019-04-06 16:54:54 +03:00 committed by Bert Belder
parent 7a3df0a184
commit 9e890c260b

View file

@ -11,9 +11,9 @@ os.chdir(root_path)
# Builds into target/doc
run(["cargo", "doc", "--all", "--no-deps", "-vv"])
# 'deno --types' is stored in target/debug/gen/lib/lib.deno_runtime.d.ts
# 'deno --types' is stored in target/debug/gen/cli/lib/lib.deno_runtime.d.ts
# We want to run typedoc on that declaration file only.
os.chdir(os.path.join(target_path, "debug/gen/lib/"))
os.chdir(os.path.join(target_path, "debug/gen/cli/lib/"))
# You must have typedoc installed seprately.
# TODO Replace typedoc with something else ASAP. It's very awful.