diff --git a/config.yaml b/config.yaml index f210faab72f..8c827596d5e 100644 --- a/config.yaml +++ b/config.yaml @@ -69,6 +69,10 @@ params: - name: GitHub url: https://github.com/grpc icon: fab fa-github + externalDocs: + Swift: + quickstart: "https://swiftpackageindex.com/grpc/grpc-swift-2/tutorials/grpccore/hello-world" + basics: "https://swiftpackageindex.com/grpc/grpc-swift-2/tutorials/grpccore/route-guide" mermaid: enable: true diff --git a/content/en/docs/languages/swift/_index.md b/content/en/docs/languages/swift/_index.md new file mode 100644 index 00000000000..14040bea778 --- /dev/null +++ b/content/en/docs/languages/swift/_index.md @@ -0,0 +1,22 @@ +--- +title: Swift +prog_lang_home: true +src_repo: https://github.com/grpc/grpc-swift-2 +content: + - learn_more: + - "[Examples]($src_repo_url/tree/main/Examples/)" + - reference: + - "[API](https://swiftpackageindex.com/grpc/grpc-swift-2/documentation)" + - "[Generated code](https://swiftpackageindex.com/grpc/grpc-swift-protobuf/documentation/grpcprotobuf/understanding-the-generated-code)" + - other: + - $src_repo_link +--- + +{{% docs/prog-lang-home-content %}} + +### Developer stories and talks {#dev-stories} + +- **Building a New gRPC Library in Swift** + + A [gRPC Conf 2024 presentation](https://sched.co/1enTO) + by George Barnett, Apple, diff --git a/layouts/partials/docs/prog-lang-home.html b/layouts/partials/docs/prog-lang-home.html index 211934832c1..f44ddfd98c6 100644 --- a/layouts/partials/docs/prog-lang-home.html +++ b/layouts/partials/docs/prog-lang-home.html @@ -1,11 +1,16 @@ {{ $Lang := .Params.title | default .Params.language }} +{{ $externalLinks := index site.Params.links.externalDocs $Lang }}
Run your first {{ replace $Lang " " "-" }} gRPC app in minutes! @@ -13,13 +18,19 @@
Learn about {{ replace $Lang " " "-" }} gRPC basics. @@ -32,4 +43,4 @@