Skip to content

Commit

Permalink
Theoretical fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelketek committed Feb 21, 2022
1 parent 6336fb9 commit 8ae0efd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sphinx_js/typedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def rec_helper(node):
if "sources" in node["__parent"]:
return node["__parent"]["sources"]
else:
rec_helper(node["__parent"])
return rec_helper(node["__parent"])
if "sources" in node:
first_sig['sources'] = node['sources']
else:
Expand Down Expand Up @@ -291,6 +291,8 @@ def _type_name(self, type):
name = '<TODO: reflection>'
# test_generic_member() (currently skipped) tests this.
else:
from pprint import pprint
pprint(type)
name = '<TODO: other type>'

type_args = type.get('typeArguments')
Expand Down Expand Up @@ -340,6 +342,8 @@ def typedoc_output(abs_source_paths, sphinx_conf_dir, config_path):
with NamedTemporaryFile(mode='w+b') as temp:
command.add('--json', temp.name, *abs_source_paths)
try:
from pprint import pprint
pprint(command.make())
subprocess.call(command.make())
except OSError as exc:
if exc.errno == ENOENT:
Expand Down

0 comments on commit 8ae0efd

Please sign in to comment.