mirror of https://github.com/grpc/grpc.io.git
Make sidenav API entries: use proper path
This commit is contained in:
parent
24f1af3017
commit
a35da4d548
|
|
@ -1,9 +1,10 @@
|
||||||
---
|
---
|
||||||
title: Android Java
|
title: Android Java
|
||||||
|
api_path: grpc-java/javadoc
|
||||||
---
|
---
|
||||||
|
|
||||||
These language-specific pages are available:
|
These language-specific pages are available:
|
||||||
|
|
||||||
- [Quick start](quickstart)
|
- [Quick start](quickstart)
|
||||||
- [Basics tutorial](basics)
|
- [Basics tutorial](basics)
|
||||||
- [API reference](api/grpc-java/javadoc)
|
- [API reference](api/{{< param api_path >}})
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: API reference
|
title: API reference
|
||||||
short: API
|
short: API
|
||||||
|
path: grpc-java/javadoc
|
||||||
weight: 90
|
weight: 90
|
||||||
# Note: this is a placeholder page. The URL to this page redirects elsewhere.
|
# Note: this is a placeholder page. The URL to this page redirects elsewhere.
|
||||||
---
|
---
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: C# / .NET
|
title: C# / .NET
|
||||||
|
api_path: api/Grpc.Core
|
||||||
---
|
---
|
||||||
|
|
||||||
There are two official implementations of gRPC for C#. The original [gRPC
|
There are two official implementations of gRPC for C#. The original [gRPC
|
||||||
|
|
@ -7,7 +8,7 @@ core-library][core-library] implementation is covered here:
|
||||||
|
|
||||||
- [Quick start](quickstart)
|
- [Quick start](quickstart)
|
||||||
- [Basics tutorial](basics)
|
- [Basics tutorial](basics)
|
||||||
- [API reference](api/api/Grpc.Core)
|
- [API reference](api/{{< param api_path >}})
|
||||||
|
|
||||||
For details concerning the newer gRPC for .NET implementation, see [gRPC for
|
For details concerning the newer gRPC for .NET implementation, see [gRPC for
|
||||||
.NET](dotnet).
|
.NET](dotnet).
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
---
|
---
|
||||||
title: Dart
|
title: Dart
|
||||||
|
api_path: pub.dev/documentation/grpc?ext=1
|
||||||
---
|
---
|
||||||
|
|
||||||
These language-specific pages are available:
|
These language-specific pages are available:
|
||||||
|
|
||||||
- [Quick start](quickstart)
|
- [Quick start](quickstart)
|
||||||
- [Basics tutorial](basics)
|
- [Basics tutorial](basics)
|
||||||
- [API reference](api/pub.dev/documentation/grpc?ext=1)
|
- [API reference](api/{{< param api_path >}})
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Go
|
title: Go
|
||||||
|
api_path: pkg.go.dev/google.golang.org/grpc?ext=1
|
||||||
---
|
---
|
||||||
|
|
||||||
These language-specific pages are available:
|
These language-specific pages are available:
|
||||||
|
|
@ -7,4 +8,4 @@ These language-specific pages are available:
|
||||||
- [Quick start](quickstart)
|
- [Quick start](quickstart)
|
||||||
- [Basics tutorial](basics)
|
- [Basics tutorial](basics)
|
||||||
- [Generated-code reference](generated-code)
|
- [Generated-code reference](generated-code)
|
||||||
- [API reference](api/pkg.go.dev/google.golang.org/grpc?ext=1)
|
- [API reference](api/{{< param api_path >}})
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Java
|
title: Java
|
||||||
|
api_path: grpc-java/javadoc
|
||||||
---
|
---
|
||||||
|
|
||||||
These language-specific pages are available:
|
These language-specific pages are available:
|
||||||
|
|
@ -7,4 +8,4 @@ These language-specific pages are available:
|
||||||
- [Quick start](quickstart)
|
- [Quick start](quickstart)
|
||||||
- [Basics tutorial](basics)
|
- [Basics tutorial](basics)
|
||||||
- [Generated-code reference](generated-code)
|
- [Generated-code reference](generated-code)
|
||||||
- [API reference](api/grpc-java/javadoc)
|
- [API reference](api/{{< param api_path >}})
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
---
|
---
|
||||||
title: Kotlin/JVM
|
title: Kotlin/JVM
|
||||||
|
api_path: javadocs.dev/io.grpc/grpc-kotlin-stub/latest?ext=1
|
||||||
---
|
---
|
||||||
|
|
||||||
These language-specific pages are available:
|
These language-specific pages are available:
|
||||||
|
|
||||||
- [Quick start](quickstart)
|
- [Quick start](quickstart)
|
||||||
- [Basics tutorial](basics)
|
- [Basics tutorial](basics)
|
||||||
- [API reference](api/javadocs.dev/io.grpc/grpc-kotlin-stub/latest?ext=1)
|
- [API reference](api/{{< param api_path >}})
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Objective-C
|
title: Objective-C
|
||||||
|
api_path: grpc/objc
|
||||||
---
|
---
|
||||||
|
|
||||||
These language-specific pages are available:
|
These language-specific pages are available:
|
||||||
|
|
@ -7,4 +8,4 @@ These language-specific pages are available:
|
||||||
- [Quick start](quickstart)
|
- [Quick start](quickstart)
|
||||||
- [Basics tutorial](basics)
|
- [Basics tutorial](basics)
|
||||||
- [OAuth2 tutorial](oauth2)
|
- [OAuth2 tutorial](oauth2)
|
||||||
- [API reference](api/grpc/objc)
|
- [API reference](api/{{< param api_path >}})
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
---
|
---
|
||||||
title: PHP
|
title: PHP
|
||||||
|
api_path: namespace-Grpc
|
||||||
---
|
---
|
||||||
|
|
||||||
These language-specific pages are available:
|
These language-specific pages are available:
|
||||||
|
|
||||||
- [Quick start](quickstart)
|
- [Quick start](quickstart)
|
||||||
- [Basics tutorial](basics)
|
- [Basics tutorial](basics)
|
||||||
- [API reference](api/namespace-Grpc)
|
- [API reference](api/{{< param api_path >}})
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
---
|
---
|
||||||
title: Ruby
|
title: Ruby
|
||||||
|
api_path: rubydoc.info/gems/grpc?ext=1
|
||||||
---
|
---
|
||||||
|
|
||||||
These language-specific pages are available:
|
These language-specific pages are available:
|
||||||
|
|
||||||
- [Quick start](quickstart)
|
- [Quick start](quickstart)
|
||||||
- [Basics tutorial](basics)
|
- [Basics tutorial](basics)
|
||||||
- [API reference](api/rubydoc.info/gems/grpc?ext=1)
|
- [API reference](api/{{< param api_path >}})
|
||||||
|
|
|
||||||
|
|
@ -58,9 +58,20 @@
|
||||||
<ul class="nav-section-links" x-show="open">
|
<ul class="nav-section-links" x-show="open">
|
||||||
{{ range $children -}}
|
{{ range $children -}}
|
||||||
{{ $isActive := eq $here .RelPermalink -}}
|
{{ $isActive := eq $here .RelPermalink -}}
|
||||||
|
{{ $isApi := findRE "^/docs/languages/.+?/api(/.*)?(\\?.*)?$" .RelPermalink -}}
|
||||||
|
{{ $isExternal := or (hasPrefix .RelPermalink "http") $isApi -}}
|
||||||
|
{{ $href := .RelPermalink -}}
|
||||||
|
{{ if and $isApi .Parent.Params.api_path -}}
|
||||||
|
{{ $href = printf "%s%s" $href .Parent.Params.api_path -}}
|
||||||
|
{{ end -}}
|
||||||
<li class="nav-section-link{{ if $isActive }} is-active{{ end }}">
|
<li class="nav-section-link{{ if $isActive }} is-active{{ end }}">
|
||||||
<a href="{{ .RelPermalink }}">
|
<a href="{{ $href }}"
|
||||||
{{ .Params.short | default .Title }}
|
{{- if $isExternal }} target="_blank" rel="noopener"{{ end -}}
|
||||||
|
>
|
||||||
|
{{ .Params.short | default .Title -}}
|
||||||
|
{{ if $isExternal -}}
|
||||||
|
<i class="fas fa-external-link-alt"></i>
|
||||||
|
{{- end -}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue