Skip to content

Commit

Permalink
docs: export google.privacy.* namespace instead of google.cloud.* so …
Browse files Browse the repository at this point in the history
…rpc doc links work (#80)
  • Loading branch information
jkwlui authored Jul 12, 2018
1 parent ea3d13c commit 4c1e6fd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/google-privacy-dlp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
* @namespace google
*/
/**
* @namespace google.cloud
* @namespace google.privacy
*/
/**
* @namespace google.cloud.dlp
* @namespace google.privacy.dlp
*/
/**
* @namespace google.cloud.dlp.v2
* @namespace google.privacy.dlp.v2
*/

'use strict';
Expand Down
13 changes: 12 additions & 1 deletion packages/google-privacy-dlp/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,18 @@
excludes=['README.md', 'package.json']
)

# Node.js specific cleanup
'''
Replace the namespace so RPC types documentation are linked properly.
'''
s.replace(
'src/index.js',
'\* @namespace google.cloud',
'* @namespace google.privacy',
)

'''
Node.js specific cleanup
'''
subprocess.run(['npm', 'ci'])
subprocess.run(['npm', 'run', 'prettier'])
subprocess.run(['npm', 'run', 'lint'])

0 comments on commit 4c1e6fd

Please sign in to comment.