diff --git a/docs/json/toc-all.json b/docs/json/toc-all.json index 1a0e445e9672..c2b4522f1b17 100644 --- a/docs/json/toc-all.json +++ b/docs/json/toc-all.json @@ -371,7 +371,16 @@ "title": "ManagedZone" } ] - }, { + },{ + "title": "Error Reporting", + "type": "gcloud/error_reporting", + "nav": [ + { + "type": "gcloud/error_reporting/client/client", + "title": "Client" + } + ] + },{ "title": "Exceptions", "type": "gcloud/exceptions", "nav": [ diff --git a/docs/json/toc.json b/docs/json/toc.json index 32db1f7f0453..f78facd7bf5e 100644 --- a/docs/json/toc.json +++ b/docs/json/toc.json @@ -171,6 +171,15 @@ "title": "Change Sets" } ] + },{ + "title": "Error Reporting", + "type": "gcloud/error_reporting", + "nav": [ + { + "type": "gcloud/error_reporting/client/client", + "title": "Client" + } + ] }, { "title": "Exceptions", "type": "gcloud/exceptions", diff --git a/scripts/generate_json_docs.py b/scripts/generate_json_docs.py index b868e6a1b79e..3485ee55198c 100644 --- a/scripts/generate_json_docs.py +++ b/scripts/generate_json_docs.py @@ -24,6 +24,11 @@ from verify_included_modules import get_public_modules +import gcloud + +ABSOLUTE_LIBRARY_PATH = os.path.dirname(os.path.dirname(os.path.abspath( + gcloud.__file__))) + class Module(object): @@ -290,10 +295,10 @@ def build_type(type_id, title, contents): def clean_source_path(source): source_path = '' - if 'gcloud-python' in source: - source_path = source.split('gcloud-python')[1] + if ABSOLUTE_LIBRARY_PATH in source: + source_path = source.replace(ABSOLUTE_LIBRARY_PATH, source) - return source_path[1:] + return source_path def process_code_blocks(doc): @@ -552,6 +557,7 @@ def main(): 'credentials': [], 'datastore': [], 'dns': [], + 'error_reporting': [], 'environment_vars': [], 'exceptions': [], 'iterator': [],