mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 09:49:55 +00:00
make source auto doc easier
This commit is contained in:
parent
8044663acd
commit
4cc13a20de
1 changed files with 13 additions and 16 deletions
|
@ -11,9 +11,9 @@
|
||||||
#
|
#
|
||||||
# All configuration values have a default; values that are commented out
|
# All configuration values have a default; values that are commented out
|
||||||
# serve to show the default.
|
# serve to show the default.
|
||||||
|
import glob
|
||||||
import sys
|
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
|
@ -21,6 +21,12 @@ import os
|
||||||
project_root = os.path.abspath('../../')
|
project_root = os.path.abspath('../../')
|
||||||
sys.path.insert(0, project_root)
|
sys.path.insert(0, project_root)
|
||||||
|
|
||||||
|
|
||||||
|
def insensitive_glob(pattern):
|
||||||
|
def either(c):
|
||||||
|
return '[%s%s]' % (c.lower(), c.upper()) if c.isalpha() else c
|
||||||
|
return glob.glob(''.join(map(either, pattern)))
|
||||||
|
|
||||||
# -- General configuration ------------------------------------------------
|
# -- General configuration ------------------------------------------------
|
||||||
|
|
||||||
# If your documentation needs a minimal Sphinx version, state it here.
|
# If your documentation needs a minimal Sphinx version, state it here.
|
||||||
|
@ -45,20 +51,11 @@ except ImportError:
|
||||||
|
|
||||||
# Where breathe can find the source files
|
# Where breathe can find the source files
|
||||||
breathe_projects_source = {
|
breathe_projects_source = {
|
||||||
"openmw": (project_root+"/apps/openmw",
|
"openmw": (os.path.join(project_root, "apps", "openmw"),
|
||||||
["engine.hpp",
|
insensitive_glob(os.path.join(project_root, "apps", "openmw", "*.hpp")) +
|
||||||
"mwbase/dialoguemanager.hpp", "mwbase/environment.hpp", "mwbase/inputmanager.hpp", "mwbase/journal.hpp",
|
insensitive_glob(os.path.join(project_root, "apps", "openmw", "mwbase", "*.hpp")) +
|
||||||
"mwbase/mechanicsmanager.hpp", "mwbase/scriptmanager.hpp", "mwbase/soundmanager.hpp",
|
insensitive_glob(os.path.join(project_root, "apps", "openmw", "mwclass", "*.hpp"))
|
||||||
"mwbase/statemanager.hpp", "mwbase/windowmanager.hpp", "mwbase/world.hpp",
|
)
|
||||||
"mwclass/activator.hpp", "mwclass/book.hpp", "mwclass/creaturelevlist.hpp", "mwclass/lockpick.hpp",
|
|
||||||
"mwclass/repair.hpp", "mwclass/actor.hpp", "mwclass/classes.hpp", "mwclass/door.hpp",
|
|
||||||
"mwclass/misc.hpp", "mwclass/static.hpp", "mwclass/apparatus.hpp", "mwclass/clothing.hpp",
|
|
||||||
"mwclass/ingredient.hpp", "mwclass/npc.hpp", "mwclass/weapon.hpp", "mwclass/armor.hpp",
|
|
||||||
"mwclass/container.hpp", "mwclass/itemlevlist.hpp", "mwclass/potion.hpp",
|
|
||||||
"mwclass/bodypart.hpp", "mwclass/creature.hpp", "mwclass/light.hpp", "mwclass/probe.hpp",
|
|
||||||
|
|
||||||
|
|
||||||
])
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
|
|
Loading…
Reference in a new issue