Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit 1390590

Browse files
fix(docs): add repo-metadata file (#722)
1 parent 7f412a6 commit 1390590

File tree

7 files changed

+104
-219
lines changed

7 files changed

+104
-219
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ package-lock.json
1111
.nyc_output
1212
key.json
1313
docs/
14+
__pycache__

.repo-metadata.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "debugger",
3+
"name_pretty": "Stackdriver Debugger",
4+
"product_documentation": "https://cloud.google.com/debugger",
5+
"client_documentation": "https://googleapis.dev/nodejs/debugger/latest/",
6+
"issue_tracker": "https://issuetracker.google.com/savedsearches/559771",
7+
"release_level": "beta",
8+
"language": "nodejs",
9+
"repo": "googleapis/cloud-debug-nodejs",
10+
"distribution_name": "@google-cloud/debug-agent",
11+
"api_id": "clouddebugger.googleapis.com"
12+
}

README.md

+59-177
Large diffs are not rendered by default.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"split": "^1.0.0"
6464
},
6565
"devDependencies": {
66-
"@compodoc/compodoc": "^1.1.7",
66+
"@compodoc/compodoc": "1.1.8",
6767
"@types/acorn": "^4.0.2",
6868
"@types/console-log-level": "^1.4.0",
6969
"@types/estree": "0.0.39",

samples/README.md

+30-38
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,62 @@
1-
# StackDriver Debugger sample for Node.js
1+
[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
2+
[//]: # "To regenerate it, use `python -m synthtool`."
3+
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
24

3-
This sample demonstrates [StackDriver Debugger][debugger] with Node.js.
5+
# [Stackdriver Debugger: Node.js Samples](https://github.com/googleapis/cloud-debug-nodejs)
46

5-
* [Setup](#setup)
6-
* [Running locally](#running-locally)
7-
* [Deploying to App Engine](#deploying-to-app-engine)
8-
* [Running the tests](#running-the-tests)
7+
[![Open in Cloud Shell][shell_img]][shell_link]
98

10-
## Setup
119

12-
Before you can run or deploy the sample, you need to do the following (where
13-
appropriate, replace `YOUR_PROJECT_ID` with the ID of your Cloud project):
1410

15-
1. Refer to the `@google-cloud/debug-agent` [README][readme] for instructions on
16-
running and deploying.
11+
## Table of Contents
1712

18-
1. Set the `GCLOUD_PROJECT` environment variable:
13+
* [Before you begin](#before-you-begin)
14+
* [Samples](#samples)
15+
* [App](#app)
16+
* [Snippets](#snippets)
1917

20-
Linux:
18+
## Before you begin
2119

22-
export GCLOUD_PROJECT=your-project-id
20+
Before running the samples, make sure you've followed the steps outlined in
21+
[Using the client library](https://github.com/googleapis/cloud-debug-nodejs#using-the-client-library).
2322

24-
Windows:
23+
## Samples
2524

26-
set GCLOUD_PROJECT=your-project-id
2725

28-
Windows (PowerShell):
2926

30-
$env:GCLOUD_PROJECT="your-project-id"
27+
### App
3128

32-
1. Acquire local credentials for authenticating with Google Cloud Platform APIs:
29+
View the [source code](https://github.com/googleapis/cloud-debug-nodejs/blob/master/samples/app.js).
3330

34-
gcloud auth application-default login
31+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/cloud-debug-nodejs&page=editor&open_in_editor=samples/app.js,samples/README.md)
3532

36-
1. Configure git to use gcloud SDK:
33+
__Usage:__
3734

38-
git config credential.helper gcloud.sh
3935

40-
1. Add your Cloud Source Repository as a git remote:
36+
`node app.js`
4137

42-
git remote add google https://source.developers.google.com/p/YOUR_PROJECT_ID/r/default
4338

44-
1. Commit and push the code into the Cloud Source Repository:
39+
-----
4540

46-
git add -A && git commit -m "Initial commit" && git push --all google
4741

48-
1. Install dependencies:
4942

50-
npm install
5143

52-
## Running locally
44+
### Snippets
5345

54-
npm start
46+
View the [source code](https://github.com/googleapis/cloud-debug-nodejs/blob/master/samples/snippets.js).
5547

48+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/cloud-debug-nodejs&page=editor&open_in_editor=samples/snippets.js,samples/README.md)
5649

57-
## Deploying to App Engine
50+
__Usage:__
5851

59-
npm run deploy
6052

53+
`node snippets.js`
6154

62-
Use the [Stackdriver Debugger dashboard](https://console.cloud.google.com/debug) to inspect runtime data of the app.
6355

64-
## Running the tests
6556

66-
See [Contributing][contributing].
6757

68-
[debugger]: https://cloud.google.com/debugger/
69-
[readme]: ../README.md
70-
[contributing]: https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/master/CONTRIBUTING.md
58+
59+
60+
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
61+
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/cloud-debug-nodejs&page=editor&open_in_editor=samples/README.md
62+
[product-docs]: https://cloud.google.com/debugger

synth.metadata

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"updateTime": "2019-06-18T00:57:04.238582Z",
2+
"updateTime": "2019-06-22T17:42:37.072172Z",
33
"sources": [
44
{
55
"template": {

synth.py

-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
import logging
1818

1919
logging.basicConfig(level=logging.DEBUG)
20-
2120
common_templates = gcp.CommonTemplates()
22-
2321
templates = common_templates.node_library()
2422
# stop excluding '.kokoro/test.bat' as soon as we figure out why Node 10 tests
2523
# have issues on Windows (see #686).

0 commit comments

Comments
 (0)