diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-11-16 19:10:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-16 19:10:12 +0100 |
commit | 763ca3dae1aac597965a8dd230e91f888707664c (patch) | |
tree | 91d0943d7252a8359558108a2f67194ab87db273 | |
parent | 2070b80fc05d581fc8f44ba231fc728136877828 (diff) | |
parent | fbcb2edeeba3d9d3085c270135a052700475d552 (diff) |
Merge pull request #12970 from leezh/module_docs
Added modules' doc files to make_doc_header
-rw-r--r-- | editor/SCsub | 14 |
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")) |