Add automatically generated code docs.

Fix bug 954734.

Fix "python setup.py build_sphinx" to build the code documentation via
sphinx-apidoc.

Change-Id: I18eced31aab424b7c808697324cbf6cfede442a7
This commit is contained in:
Russell Bryant 2012-03-14 16:05:46 -04:00
parent acc9f892b3
commit e7bb73767b

View File

@ -17,6 +17,7 @@
from setuptools import find_packages from setuptools import find_packages
from setuptools.command.sdist import sdist from setuptools.command.sdist import sdist
from setuptools import setup from setuptools import setup
import subprocess
from keystone.openstack.common.setup import parse_requirements from keystone.openstack.common.setup import parse_requirements
from keystone.openstack.common.setup import parse_dependency_links from keystone.openstack.common.setup import parse_dependency_links
@ -37,6 +38,8 @@ try:
class local_BuildDoc(BuildDoc): class local_BuildDoc(BuildDoc):
def run(self): def run(self):
subprocess.call('sphinx-apidoc -f -o doc/source keystone',
shell=True)
for builder in ['html', 'man']: for builder in ['html', 'man']:
self.builder = builder self.builder = builder
self.finalize_options() self.finalize_options()