| 1 | #! /usr/bin/env python |
| 2 | """Script to automatically generate OpenGLContext documentation""" |
| 3 | import pydoc2 |
| 4 | |
| 5 | if __name__ == "__main__": |
| 6 | excludes = [ |
| 7 | "math", |
| 8 | "string", |
| 9 | ] |
| 10 | stops = [ |
| 11 | "OpenGL.Demo.NeHe", |
| 12 | "OpenGL.Demo.GLE", |
| 13 | "OpenGL.Demo.da", |
| 14 | ] |
| 15 | |
| 16 | modules = [ |
| 17 | "pydispatch", |
| 18 | "weakref", |
| 19 | ] |
| 20 | pydoc2.PackageDocumentationGenerator( |
| 21 | baseModules = modules, |
| 22 | destinationDirectory = ".", |
| 23 | exclusions = excludes, |
| 24 | recursionStops = stops, |
| 25 | ).process () |
| 26 |