'Build the API documentation of Twisted, with our project policy.
@param projectRoot: A L{FilePath} representing the root of the Twisted
checkout.
@param output: A L{FilePath} pointing to the desired output directory.'

def buildAPIDocs(self, projectRoot, output):

    version = Project(projectRoot.child('twisted')).getVersion()
    versionString = version.base()
    sourceURL = (('https://github.com/twisted/twisted/tree/twisted-%s' % (versionString,)) + '/src')
    apiBuilder = APIBuilder()
    apiBuilder.build('Twisted', 'http://twistedmatrix.com/', sourceURL, projectRoot.child('twisted'), output)
