Another redirect-rule variant trial

This commit is contained in:
Patrice Chalin 2020-06-11 09:25:38 -04:00
parent e81796f189
commit 857a295683
20 changed files with 62 additions and 11 deletions

View File

@ -1,5 +1,6 @@
--- ---
title: API reference title: API reference
short: API
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.
--- ---

View File

@ -7,6 +7,7 @@ core-library][core-library] implementation is covered here:
- [Quick start](quickstart) - [Quick start](quickstart)
- [Basics tutorial](basics) - [Basics tutorial](basics)
- [API reference](api?path=/api/Grpc.Core)
- [API reference](api) - [API reference](api)
For details concerning the newer gRPC for .NET implementation, see [gRPC for For details concerning the newer gRPC for .NET implementation, see [gRPC for

View File

@ -1,5 +1,6 @@
--- ---
title: API reference title: API reference
short: API
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.
--- ---

View File

@ -0,0 +1,6 @@
---
title: API reference
short: API
weight: 90
# Note: this is a placeholder page. The URL to this page redirects elsewhere.
---

View File

@ -6,4 +6,4 @@ These language-specific pages are available:
- [Quick start](quickstart) - [Quick start](quickstart)
- [Basics tutorial](basics) - [Basics tutorial](basics)
- [API reference](https://javadocs.dev/io.grpc/grpc-kotlin-stub/latest) - [API reference](api/javadocs.dev/io.grpc/grpc-kotlin-stub/latest?ext=1)

View File

@ -0,0 +1,6 @@
---
title: API reference
short: API
weight: 90
# Note: this is a placeholder page. The URL to this page redirects elsewhere.
---

View File

@ -6,4 +6,4 @@ These language-specific pages are available:
- [Quick start](quickstart) - [Quick start](quickstart)
- [Basics tutorial](basics) - [Basics tutorial](basics)
- [API reference](https://grpc.github.io/grpc/node) - [API reference](api)

View File

@ -0,0 +1,6 @@
---
title: API reference
short: API
weight: 90
# Note: this is a placeholder page. The URL to this page redirects elsewhere.
---

View File

@ -7,4 +7,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](https://grpc.github.io/grpc/objc) - [API reference](api?lang=objc)

View File

@ -0,0 +1,6 @@
---
title: API reference
short: API
weight: 90
# Note: this is a placeholder page. The URL to this page redirects elsewhere.
---

View File

@ -1,5 +1,6 @@
--- ---
title: OAuth2 title: OAuth2
weight: 60
--- ---
This example demonstrates how to use OAuth2 on gRPC to make This example demonstrates how to use OAuth2 on gRPC to make

View File

@ -6,4 +6,4 @@ These language-specific pages are available:
- [Quick start](quickstart) - [Quick start](quickstart)
- [Basics tutorial](basics) - [Basics tutorial](basics)
- [API reference](https://grpc.github.io/grpc/php/namespace-Grpc) - [API reference](api/namespace-Grpc)

View File

@ -0,0 +1,6 @@
---
title: API reference
short: API
weight: 90
# Note: this is a placeholder page. The URL to this page redirects elsewhere.
---

View File

@ -7,4 +7,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](https://grpc.github.io/grpc/python) - [API reference](api)

View File

@ -0,0 +1,6 @@
---
title: API reference
short: API
weight: 90
# Note: this is a placeholder page. The URL to this page redirects elsewhere.
---

View File

@ -1,6 +1,7 @@
--- ---
title: Python Generated-code Reference title: Python Generated-code Reference
short: Generated Code short: Generated Code
weight: 80
--- ---
## Introduction ## Introduction

View File

@ -6,4 +6,4 @@ These language-specific pages are available:
- [Quick start](quickstart) - [Quick start](quickstart)
- [Basics tutorial](basics) - [Basics tutorial](basics)
- [API reference](https://www.rubydoc.info/gems/grpc) - [API reference](api/rubydoc.info/gems/grpc?ext=1)

View File

@ -0,0 +1,6 @@
---
title: API reference
short: API
weight: 90
# Note: this is a placeholder page. The URL to this page redirects elsewhere.
---

View File

@ -1,4 +1,4 @@
{{ $isExternal := or (hasPrefix .Destination "http") (findRE "^(|/docs/languages/.+?/)api/?$" .Destination) -}} {{ $isExternal := or (hasPrefix .Destination "http") (findRE "^(/docs/languages/.+?/)?api(/.*)?(\\?.*)?$" .Destination) -}}
<a href="{{ .Destination | safeURL }}" <a href="{{ .Destination | safeURL }}"
{{- with .Title }} title="{{ . }}"{{ end -}} {{- with .Title }} title="{{ . }}"{{ end -}}
{{- if $isExternal }} target="_blank" rel="noopener"{{ end -}} {{- if $isExternal }} target="_blank" rel="noopener"{{ end -}}

View File

@ -19,7 +19,11 @@
# API reference docs # API reference docs
/docs/languages/android/api https://grpc.github.io/grpc-java/javadoc 301! # /docs/languages/android/api https://grpc.github.io/grpc-java/javadoc 301!
/docs/languages/csharp/dotnet/api https://grpc.github.io/grpc/csharp-dotnet/api/Grpc.Core 301! # /docs/languages/csharp/dotnet/api https://grpc.github.io/grpc/csharp-dotnet/api/Grpc.Core 301!
/docs/languages/csharp/api https://grpc.github.io/grpc/csharp/api/Grpc.Core 301! # /docs/languages/csharp/api https://grpc.github.io/grpc/csharp/api/Grpc.Core 301!
#/docs/languages/:lang/api https://grpc.github.io/grpc/:lang 301!
/docs/languages/:lang/api/* ext=:ext https://:splat 301!
/docs/languages/:lang/api/* sep=:sep https://grpc.github.io/grpc:sep:lang/:splat 301!
/docs/languages/:notUsed/api/* lang=:lang https://grpc.github.io/grpc/:lang/:splat 301! # objc
/docs/languages/:lang/api/* https://grpc.github.io/grpc/:lang/:splat 301!