summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorZher Huei Lee <lee.zh.92@gmail.com>2017-11-17 01:53:54 +0800
committerZher Huei Lee <lee.zh.92@gmail.com>2017-11-17 01:57:28 +0800
commitfbcb2edeeba3d9d3085c270135a052700475d552 (patch)
treedcca7bf18b48c55891d2f87844ed22ad076ac6c1 /editor
parent5fa7cf35b2069480ca4c84fac3c0e4c5b903e75c (diff)
Added modules' doc files to make_doc_header
They were somehow never included. This fixes that.
Diffstat (limited to 'editor')
-rw-r--r--editor/SCsub14
1 files changed, 12 insertions, 2 deletions
diff --git a/editor/SCsub b/editor/SCsub
index ff351cbc5d..75ec422bd5 100644
--- a/editor/SCsub
+++ b/editor/SCsub
@@ -416,8 +416,18 @@ if env['tools']:
# API documentation
docs = []
- for f in os.listdir(os.path.join(env.Dir('#').abspath, "doc/classes")):
- docs.append("#doc/classes/" + f)
+ doc_dirs = ["doc/classes"]
+
+ for p in env.doc_class_path.values():
+ if p not in doc_dirs:
+ doc_dirs.append(p)
+
+ for d in doc_dirs:
+ try:
+ for f in os.listdir(os.path.join(env.Dir('#').abspath, d)):
+ docs.append("#" + os.path.join(d, f))
+ except OSError:
+ pass
_make_doc_data_class_path(os.path.join(env.Dir('#').abspath, "editor/doc"))