From 8ae0efdd7972601d16b13df7749a90d567042f1b Mon Sep 17 00:00:00 2001 From: Fox Danger Piacenti Date: Mon, 21 Feb 2022 13:05:00 -0600 Subject: [PATCH] Theoretical fix --- sphinx_js/typedoc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sphinx_js/typedoc.py b/sphinx_js/typedoc.py index 81d697d..7e3a3a3 100644 --- a/sphinx_js/typedoc.py +++ b/sphinx_js/typedoc.py @@ -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: @@ -291,6 +291,8 @@ def _type_name(self, type): name = '' # test_generic_member() (currently skipped) tests this. else: + from pprint import pprint + pprint(type) name = '' type_args = type.get('typeArguments') @@ -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: