Commit Graph

526 Commits

Author SHA1 Message Date
Aidan Ranney fe231325fb
Implement the Docsy theme (#561)
* Enable Docsy theme

* Set config params for use with Docsy theme

* Remove layout files which directly conflict with Docsy theme

* Add overriding blog content template

This template overrides the default Docsy file - it accounts for
multiple authors, as well as authors containing attributes. By default,
in Docsy the post's 'author' parameter is a string containing the
author's name.

* Update docs subsection layout with Docsy markup

* Add custom sidebar-nav with icons for external links

* Add hooks partials as per Docsy guidelines

Docsy provides `head-end.html` and `body-end.html` as entry-points to
extending these areas of the theme. Existing partials for applicable
scripts and stylesheets have been migrated to these new partials.

* Add theme style variables override file

* Remove Algolia DocSearch styles and script

* Enable Google search with placeholder engine

* Add optimized header logo to Docsy header

* Add shortcode for building 'Used By' logos

* Implement home page

Refactors hompage to make the switch over from Bulma to Bootstrap.
This also entails reworking some of the shortcodes, and using Docsy's
built-in features wherever possible, such as the blocks/cover shortcode.

* Disable alternate layout for root language pages in docs

* Render auth_alts pages with shortcode instead of custom layout

* Use CSS to set background on cover blocks

* Implement 'about' page

Adds content file and shortcodes as needed to implement the 'About' page
using the Docsy theme using Docsy shortcodes.

* Implement 'showcase' page

Adds content file and shortcodes as needed to implement the 'Showcase'
page using the Docsy theme using Docsy shortcodes.

* Implement 'community' page

Adds content file and shortcodes as needed to implement the 'Community'
page using the Docsy theme using Docsy shortcodes.

* Override Docsy's list community layout

Docsy has a default 'list.html' layout file, which is opinionated about
the opening copy and block structure of this page.

* Import new site stylesheet into overridden main imports

* Apply external link icon styles

* Size homepage logo responsively

* Hide root /docs leaf pages from sidebar nav

* Move FAQ to the /docs/what_is_grpc section

* Add new in-page TOC for large screens and down

This overrides the default Docsy 'baseof' for the docs section, as well
as a new partial and styles to wrap the default table of contents in an
expandable menu.

* Clean up docs index pages for basic list layout

* Implement 'alert' Docsy shortcode in content

Docsy has a single shortcode for handling the type of functionality that
several shortcodes are currently. Whether the Docsy 'alert' shortcode is
further customized later or not, this change will allow several files to
be replaced with one.

* Replace Reddit with Google Group link in footer

* Override list page layout for the docs section

This new override is in place to account for custom frontmatter params.
Currently, the index pages for individual programming languages are
given a custom layout.

* Replace alt layout with flag for language indexes

This replaces the use of an alternate layout file for programming
language home pages with a flag that can lean on the newly overidden
'docs/list.html' template file.

* Add comments to site-specific stylesheet

* Disable Docsy overrides of default Bootstrap buttons

* Add new shortcode for rendering ToC on main pages

* Override Docsy secondary color with 'gRPC blue'

* Hide subsection list on Overview page

* Override Hugo sitemap and hide legacy pages on it

The 'quickstart' and 'tutorials' pages under the root /docs folder are
to be left, but hidden from in-page navigation and indexing. This uses
the example-site Docsy sitemap.xml file to override the default Hugo
one. A frontmatter param of 'private' is used as a flag to hide the page
from the sitemap.

* Remove unused layout, partials and shortcodes

* Disable ToC on language list pages

* Translate image rendering from Bulma to Bootstrap

* Add bannner partial to main page templates

This refactors the optional banner set in the site config from Bulma to
a custom class. In order to include the partial in the base site
structure, the default 'baseof' layout file has been overriden.

* Override breadcrumb partial to display on mobile as well

* Override Docsy CSS partial with diffs from old CSS partial

* Extract language home page content to partial

* Refactor 404 page to use Docsy-like structure and classes

* Translate buttons shortcode from Bulma to Bootstrap

* Refactor contribute page to have same structure as the other standalone pages

* Fix overflow issue with docs content on small mobile screens

* Fix user logo height on 'about' page

* Apply base and responsive styling to homepage images

* Support short titles for side nav and breadcrumbs

This change makes a check for a frontmatter param for shortened titles
while building links. It also revises the name of the param from the
existing "short" to "short_title".

* Enable "simple" view of languages index page

Frontmatter param of "simple_list" is provided by Docsy

* Remove javascript partial no longer required

As Alpine is no longer in use to trigger modals and the anchor tag
offset has been generated by Docsy, the JavaScript partial can be
removed.

* Revert auto-format changes

* Give same max-width to main content as container

In the docs section and the blog, the max-width is defined by Docsy as
80%. This intentionally caps that value at the same max-width defined by
the 'container' used elsewhere for very large screens.

* Remove list bullets and increase spacing on prog-lang-home pages

* Add redirect rule for FAQ page

* Specify 'main' branch when building meta links

The gRPC repo has updated its "master" branch to the gaining-acceptance
"main" naming.

* Enable multi-language support on site

This sets up a folder structure and configuration to enable future work
to add multiple languages to the site. To add another language, create
content under an approprite content/ subdirectory and add the key to the
'languages' param in config. As soon as a second language is added, a
dropdown menu will be generated in the Docsy top nav to select the
language.

* Revert git command in netlfy build steps

* Give supported language pages custom titles

Since this is overriding Docsy's "head" partial, the ranging over the
default "alternative output formats" and creating broken links has been
commented out of the partial as well.

* Revert "Revert git command in netlfy build steps"

This reverts commit 60a6fc076f.

* Disable Docsy buttons using variable override

* Remove deprecation warning on use of '.Dir'
2020-12-17 02:13:50 -05:00
Intae Kim 66d4f81b85
Java basics tutorial typo (#565) 2020-12-16 07:36:01 -05:00
Eric Anderson 5555065fc9
Update grpc-java release to version 1.34.1 (#563) 2020-12-15 14:22:10 -05:00
Patrice Chalin d2b5760d43
Wireshark blog entry edits - 2020/12/04 (#559) 2020-12-05 09:17:17 -05:00
Patrice Chalin a873ea96e1 Rename Wireshark blog entry file 2020-12-04 20:36:25 -05:00
huangqiangxiong 40a2de58ee
Blogpost about how to use wireshark with protobuf and grpc dissectors (#467)
* Blogpost about how to use wireshark with protobuf and grpc dissectors

Add this blogpost as recommended on
https://github.com/protocolbuffers/protobuf/issues/3303

* Update content according to last comments

1. change title to "How to analyze gRPC with Wireshark"
2. add link to github id (after the name attribute).
3. add "Protocol Buffers" for "Protobuf" in first sentence.
4. add summary info about the intent and scope of this blog.
5. move the history to a nearly end section.
6. add a short section about how to capture gRPC traffic.
7. change "official *.proto library of Protobuf" to "Protocol Buffers Well-Known Types"
8. remove the section about JSON-serialized capture.
9. remove the sections about build-in UDP and custom dissectors, instead leaving a link to wireshark protobuf wiki page.
10. remove sample link of Protobuf only capture from referrence section.

* Update how-to-analyze-grpc-with-wireshark.md

Updated according to comments.
1. Update date.
2. Fixed some link errors.

* PR #467 copyedits, spelling and text wrap 2020-11-27

* PR #467 correct clerical and grammar errors 2020-11-28

also update date

* Mark as draft

Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
2020-12-04 19:52:43 -05:00
Patrice Chalin fb9fd47086
Makefile: only build drafts and futures for draft branches (#558) 2020-12-04 19:33:56 -05:00
Patrice Chalin d9270c373b
Update to Hugo 0.79.0 (#557) 2020-12-04 17:21:32 -05:00
Patrice Chalin 4a0ffb3121
Makefile cleanup: drop docker-serve (#556) 2020-12-04 17:11:33 -05:00
Patrice Chalin 09b587eda5
Drop sandbox /docs/example page (#555) 2020-12-04 16:53:56 -05:00
Patrice Chalin a285edecf9
Update gRPC Core version to v1.34.0 (#552)
https://github.com/grpc/grpc/releases/tag/v1.34.0
2020-12-03 14:51:30 -05:00
Patrice Chalin dbbf89ff28
Python quick start: drop error message (#554) 2020-12-03 13:29:26 -05:00
Patrice Chalin a988da152d
Update grpc-go version to v1.34.0 (#551)
https://github.com/grpc/grpc-go/releases/tag/v1.34.0
2020-12-03 11:55:56 -05:00
Chengyuan Zhang 4bad6192e5
Update grpc-java release version to 1.34.0 (#550) 2020-12-01 18:54:25 -05:00
bartolootrit dc36e5bb8f
Authentication examples for Node.js and Python (#535) 2020-12-01 07:51:04 -05:00
Patrice Chalin abf7cb9527
Add robots meta "noindex, nofollow" for /docs/{quickstart, tutorials} (#547)
Closes #546
2020-11-25 19:55:06 -05:00
Patrice Chalin 4e983c1b4d
Refresh docsy submodule (#544)
Contributes to #479. Initial PR: #228
2020-11-24 10:28:24 -05:00
Patrice Chalin dfe7d849f6
Drop /release (#542)
Closes #502
2020-11-24 08:14:25 -05:00
Patrice Chalin 743bea1398
Drop generic ALTS page (#540)
Contributes to #527
2020-11-23 17:32:40 -05:00
Patrice Chalin 4ca9ea504d
Python-specific ALTS authentication page from template (#539)
Contributes to #527
2020-11-23 17:15:42 -05:00
Patrice Chalin ff29119400
Java-specific ALTS authentication page from template (#538)
- Contributes to #527
- Fix code rendering: ensure that blank lines are also rendered
2020-11-23 16:54:45 -05:00
Patrice Chalin c1d97fbe94
Go-specific ALTS authentication page from template (#537)
- Contributes to #527
- Also included are minor tweaks to the C++-ALTS page
2020-11-23 16:04:31 -05:00
Patrice Chalin 7851780af3
More ALTS page cleanup (#536)
Contributes to #527, followup to #528, as we transition to language-specific pages.
2020-11-23 15:32:27 -05:00
Patrice Chalin 1fd7b23b83
C++ specific ALTS authentication page from template (#528)
* C++ specific ALTS authentication page from template
  - Contributes to #527
* Support for missing code samples
2020-11-23 14:49:11 -05:00
Patrice Chalin a878bf399a
Fix top 404s for Oct-Nov 2020 (#534)
Closes #533
2020-11-19 16:33:09 -05:00
Bryant Hagadorn d2d9079211
Fix undefined markdown link reference in C++ Quick start (#532) 2020-11-19 12:53:20 -05:00
Michael Thomsen 53302100f3
Platform tweaks (#529)
* Platform tweaks
* Put development & target platforms in one list (#531)

Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
2020-11-18 14:23:51 -05:00
Patrice Chalin 10250e2956
Blog: strip Cloud Run entry, refer to original (#530)
Contributes to #518
2020-11-18 14:18:00 -05:00
Patrice Chalin c6d9c02ea8
Platforms page rework; add Flutter (#525)
- Supersedes #524
- Prep work for #491
2020-11-17 13:26:57 -05:00
Patrice Chalin d51db981f1
Cleanup: use relref rather than ref (#526) 2020-11-16 14:32:27 -05:00
Patrice Chalin ba455b73d2
Go: add link to "Stubbing gRPC in Go" post (#523)
- Link added to "Developer stories..." section. I haven't worked my way through the article's example, but it does seem like a good candidate post to add to dev stories.
- Contributes to #433
2020-11-16 12:59:31 -05:00
Patrice Chalin ce47d4e6d9
Add link to Cloudflare's "Road to gRPC" post (#522) 2020-11-13 15:22:32 -05:00
Patrice Chalin f5a0f021c3
Python: update supported versions (#514) 2020-11-13 13:20:04 -05:00
Patrice Chalin 5058a972d1
Drop HTTP/2 article, redirect to canonical source, etc (#519)
This PR drops `blog/http2-smarter-at-scale.md` and adds a redirect to the [article's canonical source on the CNCF website](https://www.cncf.io/blog/2018/07/03/http-2-smarter-at-scale/). Somehow, the original article was republished on the gRPC blog 10 days later, but with errors (e.g., #512), missing links (links that are in the original but were not "ported" to the local version), mis-named images (e.g., the use of [Kotlin Android app example](59fc928363 (diff-d63be804f6094986a8876f51d2e9cc7bc3ba0ec25c7faa09746fc72d7a58be80R22))).

This PR also fixes footnote links in the followup article.

Contributes to #518
2020-11-13 12:32:55 -05:00
Tushar Kataria e45241410c
Update http2-smarter-at-scale.md (#512) 2020-11-13 08:41:09 -05:00
Patrice Chalin b1c63bbade
PHP: no longer in beta; update supported versions to 7+, only (#517) 2020-11-12 21:37:45 -05:00
Patrice Chalin e4428794ec
gRPC official support table: cleanup, no content changes (#513) 2020-11-12 19:08:01 -05:00
Patrice Chalin dbf48141eb
C# language-home: use new layout, link to examples and docs (#510)
Contributes to #481, #345, #506
2020-11-12 11:43:56 -05:00
Patrice Chalin b083b4b6dc
Update grpc_vers.core to v1.33.2 (#509) 2020-11-11 21:42:17 -05:00
Patrice Chalin 5dae8a86aa
Python language-home: use new layout, link to examples and docs (#508)
Contributes to #481, #345, #506
2020-11-11 18:36:44 -05:00
Patrice Chalin fc77facf2c
C++ language-home: use new layout, link to examples and docs (#507)
Contributes to #481, #345, #506
2020-11-11 17:39:39 -05:00
Patrice Chalin 59a278d69c
Fetch specific version of grpc-go repo in quick start and tutorial pages (#504)
Closes #437
2020-11-05 19:41:43 -05:00
Patrice Chalin a2ad08a60c
Update grpc-go version to v1.33.1 (#503)
Link: https://github.com/grpc/grpc-go/releases, https://github.com/grpc/grpc-go/releases/tag/v1.33.1.
2020-11-05 18:44:38 -05:00
Patrice Chalin 8afa0eb13f
Config of gRPC pkg versions: make it easier/more uniform to introduce new languages (#499)
* grpc_release_tag -> grpc_vers.core
* grpc_java_release_tag -> grpc_vers.java
* Updated config params
2020-11-05 18:27:52 -05:00
Patrice Chalin b894fffd91
Cross-link Java and Android-Java pages (#497)
Contributes to #481. Related: #496.
2020-11-05 09:51:34 -05:00
Patrice Chalin 45bd9a81f3
Cross-link Kotlin/JVM and Kotlin-for-Android pages (#496) 2020-11-04 08:57:25 -05:00
Patrice Chalin 8dfba18191
Show "More..." nav entry for prog_lang_home subpages only (#495)
Closes #483
Closes #492
2020-11-03 13:50:34 -05:00
Patrice Chalin 9f99a644ae
Use new lang layout for Go, Java, and Kotlin pages (#494)
Closes #481
2020-11-03 13:29:10 -05:00
Patrice Chalin 9a6a83213a
Cleanup of manually formatted language homepages (#493)
No user-visible change in the generated site.

This PR will make generated-site diffs easier to manage when the language homepages are migrated over to use the layout. Also added whitespace cleanup of prog_lang_home partial.
2020-11-03 12:42:32 -05:00
Patrice Chalin 3193fcf2c0
Android pages: adjust titles and fix left-nav (#490)
Followup to #489, #473, contributing to #472.
2020-11-03 10:20:03 -05:00