Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
Readme: Update readme templates to add api summaries. (#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
landrito authored May 26, 2017
1 parent dd3d83c commit 08344b7
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public PackageMetadataView.Builder generateMetadataView(
.licenseName(packageConfig.licenseName())
.fullName(model.getServiceConfig().getTitle())
.discoveryApiName(discoveryApiName)
.apiSummary(model.getServiceConfig().getDocumentation().getSummary())
.hasMultipleServices(false);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public String resourceRoot() {
@Nullable
public abstract String identifier();

public abstract String apiSummary();

public abstract VersionBound packageVersionBound();

public abstract VersionBound gaxVersionBound();
Expand Down Expand Up @@ -173,6 +175,9 @@ public abstract static class Builder {

public abstract Builder serviceName(String val);

/** The descriptive summary of the api. */
public abstract Builder apiSummary(String val);

/** The full name of the API, including branding. E.g., "Stackdriver Logging". */
public abstract Builder fullName(String val);

Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/com/google/api/codegen/readme.snip
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
@end

@private title(metadata)
@# {@metadata.targetLanguage} Client{@plurality(metadata.hasMultipleServices)} for {@metadata.fullName} ([{@metadata.developmentStatusTitle}]({@metadata.versioningDocumentationLink}))
@# {@metadata.targetLanguage} Client{@plurality(metadata.hasMultipleServices)} for \
{@metadata.fullName} ([{@metadata.developmentStatusTitle}]({@metadata.versioningDocumentationLink}))

Idiomatic {@metadata.targetLanguage} client{@plurality(metadata.hasMultipleServices)} for [{@metadata.fullName}][Product Documentation]
[{@metadata.fullName}][Product Documentation]: {@metadata.apiSummary}
- [Client Library Documentation][]
- [Product Documentation][]
@end
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/com/google/api/codegen/readme_rst.snip
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{@metadata.targetLanguage} Client{@plurality(metadata.hasMultipleServices)} for {@metadata.fullName} (`{@metadata.developmentStatusTitle}`_)
==================================================================================================

Idiomatic {@metadata.targetLanguage} client for `{@metadata.fullName}`_
`{@metadata.fullName}`_: {@metadata.apiSummary}

- `Client Library Documentation`_
- `Product Documentation`_
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
============== file: README.md ==============
# Node.js Client for Google Example Library API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-node#versioning))

Idiomatic Node.js client for [Google Example Library API][Product Documentation]
[Google Example Library API][Product Documentation]: A simple Google Example Library API.
- [Client Library Documentation][]
- [Product Documentation][]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
============== file: README.md ==============
# Node.js Client for Google Fake API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-node#versioning))

Idiomatic Node.js client for [Google Fake API][Product Documentation]
[Google Fake API][Product Documentation]: Tests no path templates
- [Client Library Documentation][]
- [Product Documentation][]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
============== file: README.md ==============
# Node.js Client for Google Example Library API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-node#versioning))

Idiomatic Node.js client for [Google Example Library API][Product Documentation]
[Google Example Library API][Product Documentation]: A simple Google Example Library API.
- [Client Library Documentation][]
- [Product Documentation][]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Python Client for Google Example Library API (`Alpha`_)
==================================================================================================

Idiomatic Python client for `Google Example Library API`_
`Google Example Library API`_: A simple Google Example Library API.

- `Client Library Documentation`_
- `Product Documentation`_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Python Client for Google Fake API (`Beta`_)
==================================================================================================

Idiomatic Python client for `Google Fake API`_
`Google Fake API`_: Tests no path templates

- `Client Library Documentation`_
- `Product Documentation`_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Python Client for Google Example Library API (`Alpha`_)
==================================================================================================

Idiomatic Python client for `Google Example Library API`_
`Google Example Library API`_: A simple Google Example Library API.

- `Client Library Documentation`_
- `Product Documentation`_
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
============== file: README.md ==============
# Ruby Client for Google Example Library API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))

Idiomatic Ruby client for [Google Example Library API][Product Documentation]
[Google Example Library API][Product Documentation]: A simple Google Example Library API.
- [Client Library Documentation][]
- [Product Documentation][]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
============== file: README.md ==============
# Ruby Client for Google Example Library API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))

Idiomatic Ruby client for [Google Example Library API][Product Documentation]
[Google Example Library API][Product Documentation]: A simple Google Example Library API.
- [Client Library Documentation][]
- [Product Documentation][]

Expand Down

0 comments on commit 08344b7

Please sign in to comment.