Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

fix: www discovery link #87

Merged
merged 2 commits into from
Jan 16, 2019
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
4 changes: 2 additions & 2 deletions src/v1beta1/doc/google/cloud/asset/v1beta1/doc_assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const Asset = {
* @property {string} discoveryDocumentUri
* The URL of the discovery document containing the resource's JSON schema.
* For example:
* `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`.
* [`"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`](https://www.googleapis.com/discovery/v1/apis/compute/v1/rest).
* It will be left unspecified for resources without a discovery-based API,
* such as Cloud Bigtable.
*
Expand Down Expand Up @@ -141,4 +141,4 @@ const Asset = {
*/
const Resource = {
// This is for documentation. Actual contents will be loaded by gRPC.
};
};
5 changes: 5 additions & 0 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
s.copy(templates)

# [START fix-dead-link]
discovery_url = 'https://www.googleapis.com/discovery/v1/apis/compute/v1/rest'
s.replace('**/doc/google/cloud/asset/v1beta1/doc_assets.js',
f'`"{discovery_url}"`'
f'[`"{discovery_url}"`]({discovery_url})')

s.replace('**/doc/google/protobuf/doc_timestamp.js',
'https:\/\/cloud\.google\.com[\s\*]*http:\/\/(.*)[\s\*]*\)',
r"https://\1)")
Expand Down