make source documentation great again

pull/153/head
Bret Curtis 8 years ago
parent 4cc13a20de
commit 4d29bdc85e

@ -50,12 +50,15 @@ except ImportError:
print("WARNING: Unable to import breathe, code documentation won't be generated.") print("WARNING: Unable to import breathe, code documentation won't be generated.")
# Where breathe can find the source files # Where breathe can find the source files
openmw_path = os.path.join(project_root, "apps", "openmw")
openmw_headers = insensitive_glob(os.path.join(openmw_path, "*.hpp")) + \
insensitive_glob(os.path.join(openmw_path, "mwbase", "*.hpp")) + \
insensitive_glob(os.path.join(openmw_path, "mwclass", "*.hpp"))
openmw_headers = [os.path.relpath(x, openmw_path) for x in openmw_headers]
breathe_projects_source = { breathe_projects_source = {
"openmw": (os.path.join(project_root, "apps", "openmw"), "openmw": (openmw_path, openmw_headers)
insensitive_glob(os.path.join(project_root, "apps", "openmw", "*.hpp")) +
insensitive_glob(os.path.join(project_root, "apps", "openmw", "mwbase", "*.hpp")) +
insensitive_glob(os.path.join(project_root, "apps", "openmw", "mwclass", "*.hpp"))
)
} }
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.

Loading…
Cancel
Save