-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(python_samples): Custom path for generation (#695)
Added functionality to be used for generating documentation for Python samples. A demonstration of the documentation this code can render (Using the README.md template under [/python_samples/](https://github.com/googleapis/synthtool/tree/master/synthtool/gcp/templates/python_samples)) is available [here](https://github.com/runargs/python-docs-samples/tree/synth-DEMO/bigtable). This function will default to generating the README in the current directory if the synth.py file is put in a sample folder, and or the "/samples" folder if it is placed in the top level of a client library repo. A custom path for where to generate may also be specified through the "sample_project_dir" key in .repo.metadata.json
- Loading branch information
Showing
9 changed files
with
221 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "bigtable", | ||
"name_pretty": "Cloud Bigtable", | ||
"product_documentation": "https://cloud.google.com/bigtable", | ||
"client_documentation": "https://googleapis.dev/python/bigtable/latest", | ||
"issue_tracker": "https://issuetracker.google.com/savedsearches/559777", | ||
"release_level": "ga", | ||
"language": "python", | ||
"repo": "googleapis/python-bigtable", | ||
"distribution_name": "google-cloud-bigtable", | ||
"api_id": "bigtable.googleapis.com", | ||
"requires_billing": true, | ||
"client_library": true, | ||
"samples": [ | ||
{"name": "Quickstart", | ||
"description": "Example sample for product", | ||
"file": "quickstart.py", | ||
"custom_content": "This is custom text for the sample", | ||
"runnable": "True"}, | ||
{"name": "Hello World", | ||
"description": "Example beginner application", | ||
"file": "main.py"} | ||
] | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "bigtable", | ||
"name_pretty": "Cloud Bigtable", | ||
"product_documentation": "https://cloud.google.com/bigtable", | ||
"client_documentation": "https://googleapis.dev/python/bigtable/latest", | ||
"issue_tracker": "https://issuetracker.google.com/savedsearches/559777", | ||
"release_level": "ga", | ||
"language": "python", | ||
"repo": "googleapis/python-bigtable", | ||
"distribution_name": "google-cloud-bigtable", | ||
"api_id": "bigtable.googleapis.com", | ||
"requires_billing": true, | ||
"client_library": true, | ||
"sample_project_dir": "custom_samples_folder", | ||
"samples": [ | ||
{"name": "Quickstart", | ||
"description": "Example sample for product", | ||
"file": "quickstart.py", | ||
"custom_content": "This is custom text for the sample", | ||
"runnable": "True"}, | ||
{"name": "Hello World", | ||
"description": "Example beginner application", | ||
"file": "main.py"} | ||
] | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "bigtable", | ||
"name_pretty": "Cloud Bigtable", | ||
"product_documentation": "https://cloud.google.com/bigtable", | ||
"client_documentation": "https://googleapis.dev/python/bigtable/latest", | ||
"issue_tracker": "https://issuetracker.google.com/savedsearches/559777", | ||
"release_level": "ga", | ||
"language": "python", | ||
"repo": "googleapis/python-bigtable", | ||
"distribution_name": "google-cloud-bigtable", | ||
"api_id": "bigtable.googleapis.com", | ||
"requires_billing": true, | ||
"client_library": true, | ||
"sample_project_dir": "nonexistent_folder", | ||
"samples": [ | ||
{"name": "Quickstart", | ||
"description": "Example sample for product", | ||
"file": "quickstart.py", | ||
"custom_content": "This is custom text for the sample", | ||
"runnable": "True"}, | ||
{"name": "Hello World", | ||
"description": "Example beginner application", | ||
"file": "main.py"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "bigtable", | ||
"name_pretty": "Cloud Bigtable", | ||
"product_documentation": "https://cloud.google.com/bigtable", | ||
"client_documentation": "https://googleapis.dev/python/bigtable/latest", | ||
"issue_tracker": "https://issuetracker.google.com/savedsearches/559777", | ||
"release_level": "ga", | ||
"language": "python", | ||
"repo": "googleapis/python-bigtable", | ||
"distribution_name": "google-cloud-bigtable", | ||
"api_id": "bigtable.googleapis.com", | ||
"requires_billing": true, | ||
"client_library": true, | ||
"samples": [ | ||
{"name": "Quickstart", | ||
"description": "Example sample for product", | ||
"file": "quickstart.py", | ||
"custom_content": "This is custom text for the sample", | ||
"runnable": "True"}, | ||
{"name": "Hello World", | ||
"description": "Example beginner application", | ||
"file": "main.py"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters