Skip to content

Commit

Permalink
Specify tsconfig.json in cli args to typedoc
Browse files Browse the repository at this point in the history
and add tsconfig.json to Manifest.in
  • Loading branch information
hoodmane committed May 6, 2024
1 parent 276472b commit ddecbe6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ include requirements_dev.txt
include noxfile.py
include sphinx_js/js/*.mjs
include sphinx_js/js/*.ts
include sphinx_js/js/*.json

recursive-include tests *.py *.rst *.ts *.json *.js *.md
1 change: 1 addition & 0 deletions sphinx_js/typedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def typedoc_output(
# TODO: figure out why
command.add("[email protected]")
dir = Path(__file__).parent.resolve() / "js"
command.add("--tsconfig", str(dir / "tsconfig.json"))
command.add("--import", str(dir / "registerImportHook.mjs"))
command.add(str(dir / "call_typedoc.ts"))
if ts_sphinx_js_config:
Expand Down

0 comments on commit ddecbe6

Please sign in to comment.