mirror of https://github.com/grpc/grpc.io.git
Add generated platforms table
Signed-off-by: lucperkins <lucperkins@gmail.com>
This commit is contained in:
parent
2326f4a19e
commit
4b0655ab9f
|
@ -28,7 +28,6 @@ $primary: $grpc-green
|
|||
$secondary: $grpc-blue
|
||||
$navbar-height: 5rem
|
||||
$navbar-item-img-max-height: $navbar-height * 0.6
|
||||
$section-padding: 6rem 1.5rem
|
||||
|
||||
// Font overrides
|
||||
{{ if $fonts }}
|
||||
|
@ -136,4 +135,4 @@ $colors: mergeColorMaps(("secondary": ($secondary, $white)), $colors)
|
|||
|
||||
|
||||
.is-feature-pane
|
||||
margin-bottom: 2rem
|
||||
margin-bottom: 2rem
|
||||
|
|
|
@ -130,24 +130,8 @@ Check out what people are saying below.
|
|||
|
||||
## Officially supported platforms
|
||||
|
||||
<style>
|
||||
th:first-child { width: 20%; }
|
||||
</style>
|
||||
|
||||
| Language | Platform | Compiler |
|
||||
| -------- | -------- | -------- |
|
||||
| C/C++ | Linux/Mac | GCC 4.9+ <br> Clang 3.4+ |
|
||||
| C/C++ | Windows 7+ | Visual Studio 2015+ |
|
||||
| C# | Linux/Mac | .NET Core, Mono 4+ |
|
||||
| C# | Windows 7+ | .NET Core, .NET 4.5+ |
|
||||
| Dart | Windows/Linux/Mac | Dart 2.0+ |
|
||||
| Go | Windows/Linux/Mac | Go 1.6+ |
|
||||
| Java | Windows/Linux/Mac | JDK 8 recommended. Gingerbread+ for Android |
|
||||
| Node.js | Windows/Linux/Mac | Node v4+ |
|
||||
| Objective-C | Mac OS X 10.11+/iOS 7.0+ | Xcode 7.2+ |
|
||||
| PHP (beta) | Linux/Mac | PHP 5.5+ and PHP 7.0+ |
|
||||
| Python | Windows/Linux/Mac | Python 2.7 and Python 3.4+ |
|
||||
| Ruby | Windows/Linux/Mac | Ruby 2.3+ |
|
||||
<!-- Generated using the data in data/platforms.yaml -->
|
||||
{{< supported-platforms >}}
|
||||
|
||||
## The story behind gRPC
|
||||
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
- language: "C/C++"
|
||||
platforms: ["Linux", "Mac"]
|
||||
compilers: ["GCC 4.9+", "Clang 3.4+"]
|
||||
- language: "C/C++"
|
||||
platforms: ["Windows 7+"]
|
||||
compilers: ["Visual Studio 2015+"]
|
||||
- language: "C#"
|
||||
platforms: ["Linux", "Mac"]
|
||||
compilers: [".NET Core", "Mono 4+"]
|
||||
- language: "C#"
|
||||
platforms: ["Windows 7+"]
|
||||
compilers: [".NET Core", "NET 4.5+"]
|
||||
- language: "Dart"
|
||||
platforms: ["Windows", "Linux", "Mac"]
|
||||
compilers: ["Dart 2.0+"]
|
||||
- language: "Go"
|
||||
platforms: ["Windows", "Linux", "Mac"]
|
||||
compilers: ["Go 1.6+"]
|
||||
- language: "Java"
|
||||
platforms: ["Windows", "Linux", "Mac"]
|
||||
compilers: ["JDK 8 recommended (Gingerbread+ for Android)"]
|
||||
- language: "Node.js"
|
||||
platforms: ["Windows", "Linux", "Mac"]
|
||||
compilers: ["Node v4+"]
|
||||
- language: "Objective-C"
|
||||
platforms: ["Mac OS X 10.11+", "iOS 7.0+"]
|
||||
compilers: ["Xcode 7.2+"]
|
||||
- language: "PHP (beta)"
|
||||
platforms: ["Linux", "Mac"]
|
||||
compilers: ["PHP 5.5+", "PHP 7.0+"]
|
||||
- language: "Python"
|
||||
platforms: ["Windows", "Linux", "Mac"]
|
||||
compilers: ["Python 2.7", "Python 3.4+"]
|
||||
- language: "Ruby"
|
||||
platforms: ["Windows", "Linux", "Mac"]
|
||||
compilers: ["Ruby 2.3+"]
|
|
@ -1,14 +1,9 @@
|
|||
|
||||
{{ define "title" }}
|
||||
{{ .Title }} – {{ .Site.Title }}
|
||||
{{ site.Title }} – {{ .Title }}
|
||||
{{ end }}
|
||||
{{ define "main" }}
|
||||
<div class="headertext">{{ .Title }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section2" style="text-align:left;margin-bottom:5%">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ define "main" }}
|
||||
{{ partial "hero.html" . }}
|
||||
{{ partial "content.html" (dict "content" .Content "size" "medium") }}
|
||||
{{ end }}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
{{ $size := .size | default "normal" }}
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="content is-{{ $size }}">
|
||||
{{ .content | markdownify }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
|
@ -0,0 +1,17 @@
|
|||
{{ $title := .Title }}
|
||||
{{ $desc := .Params.description | markdownify }}
|
||||
<section class="hero is-medium is-primary has-background-image">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<p class="title is-size-1 is-size-2-mobile has-text-weight-light{{ if $desc }} is-spaced{{ end }}">
|
||||
{{ $title }}
|
||||
</p>
|
||||
|
||||
{{ with $desc }}
|
||||
<p class="subtitle is-size-3 is-size-4-mobule has-text-weight-light">
|
||||
{{ . }}
|
||||
</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
|
@ -0,0 +1,32 @@
|
|||
<!-- Generated using the data in data/platforms.yaml -->
|
||||
{{ $platforms := site.Data.platforms }}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
Language
|
||||
</th>
|
||||
<th>
|
||||
Platform
|
||||
</th>
|
||||
<th>
|
||||
Compilers
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{- range $platforms -}}
|
||||
<tr>
|
||||
<td>
|
||||
{{- .language -}}
|
||||
</td>
|
||||
<td>
|
||||
{{- delimit .platforms ", " -}}
|
||||
</td>
|
||||
<td>
|
||||
{{- delimit .compilers ", " -}}
|
||||
</td>
|
||||
</tr>
|
||||
{{- end -}}
|
||||
</tbody>
|
||||
</table>
|
Loading…
Reference in New Issue