Merge pull request #12970 from leezh/module_docs

Added modules' doc files to make_doc_header
This commit is contained in:
Rémi Verschelde 2017-11-16 19:10:12 +01:00 committed by GitHub
commit 763ca3dae1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"))