Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion docs/json/toc-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
9 changes: 9 additions & 0 deletions docs/json/toc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 9 additions & 3 deletions scripts/generate_json_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)))


This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

class Module(object):

Expand Down Expand Up @@ -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

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.



def process_code_blocks(doc):
Expand Down Expand Up @@ -552,6 +557,7 @@ def main():
'credentials': [],
'datastore': [],
'dns': [],
'error_reporting': [],
'environment_vars': [],
'exceptions': [],
'iterator': [],
Expand Down