Skip to content

Commit

Permalink
Add automatically generated code docs.
Browse files Browse the repository at this point in the history
Fix bug 954734.

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

Change-Id: I18eced31aab424b7c808697324cbf6cfede442a7
  • Loading branch information
russellb committed Mar 14, 2012
1 parent acc9f89 commit e7bb737
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Expand Up @@ -17,6 +17,7 @@
from setuptools import find_packages
from setuptools.command.sdist import sdist
from setuptools import setup
import subprocess

from keystone.openstack.common.setup import parse_requirements
from keystone.openstack.common.setup import parse_dependency_links
Expand All @@ -37,6 +38,8 @@ def run(self):

class local_BuildDoc(BuildDoc):
def run(self):
subprocess.call('sphinx-apidoc -f -o doc/source keystone',
shell=True)
for builder in ['html', 'man']:
self.builder = builder
self.finalize_options()
Expand Down

0 comments on commit e7bb737

Please sign in to comment.