Commit Graph

298 Commits

Author SHA1 Message Date
Patrice Chalin 8443a4baeb
Wireshark post: fix port naming prose (#606)
* Wireshark post: fix port naming prose - and added the request screenshot which I missed in the previous commit.
* Compress request screenshot
2021-01-22 07:08:39 -05:00
Patrice Chalin 64ae35d58a
Wireshark blog post: 2021-01-18 rework (#598)
* Wireshark blog post: 2021-01-18 rework + 01-20 edits

* Tweak about preloading of msg defs from .proto

Co-authored-by: huangqiangxiong <qiangxiong.huang@qq.com>

* More updates following review + new images

Co-authored-by: huangqiangxiong <qiangxiong.huang@qq.com>
2021-01-21 11:37:42 -05:00
Michael Lumish cb721320df
Update Node quickstart and tutorial to use grpc-js (#500) 2021-01-14 10:54:08 -05:00
Patrice Chalin ce46d18cce
Whitespace cleanup in layouts and title (#581)
- Remove newline from blog post title
- Layouts: whitespace cleanup
- No content changes in generated site (modulo whitespace)
2020-12-19 15:05:11 -05:00
Aidan Ranney c00e9fc283
Address fixes and add meta (GitHub) links to pages (#578)
* Fixup to make comment consistent with others

* Replace missing FA icon with equivalent

* Render SVGs with Markdown and restore alt text to an image

* Give used-by user logos equal padding

* Fix border radius on search inputs

* Add meta links to all pages

* Fix overflow issue from covering link's content box

* Fix spacing issue on icon links in production
2020-12-18 20:04:43 -05:00
Aidan Ranney 8e4f008bb5
Add new shortcode to add missing headings to ToC (#577)
Previously, the Markdown renderer was not being passed the headings to
render on "language home" list pages. This moves some of the template
logic into a shortcode and specifies that it should be rendered as
Markdown. The shortcode is then called directly in the index pages.
2020-12-18 12:17:10 -05:00
Aidan Ranney a8b0a9db9a
Refactor Docs ToC and improve styles (#567)
* Refactor inline ToC approach and add second link

This revises the approach to expanding and collapsing the inline ToC in
the docs pages - rather than template login, a more CSS-driven solution
was adopted. A fix to the shortcode ToC and some improved comments on
the styles have also been added.

* Optimize common background SVG

* Revise style structure and class names on pages

* Move Gitter to social links

* Render images with Markdown parser where able

* Fill view height with docsy ToC

* Fix reference to font awesome icon

* Pass over styles to implement a namespacing scheme

This revises much of the inline styles using Bootstrap utilities to try
and limit their use to Bootstrap components and concerns with display
and layout. Some styling has been extracted to namespaced classes when
either the object in question had potential for reuse, extracting
improved clarity, or the content was encapsulated on a top-level page.

An exception has been made to the inline table of contents on top-pages,
as this has a dependency on Docsy's internal ToC styling, as well as our
overrides for use in the /docs section. Its inline styling has been
minimized.
2020-12-18 08:40:50 -05:00
Patrice Chalin 877b035d32
Make page titles unique: reorder title parts (#569)
* Make page titles unique: reorder title parts

- Final work towards #363
- Contributes to #362

* Cleanup/shorten ALTS page titles

* More title cleanup

* Python generated-code page tweak
2020-12-17 09:44:50 -05:00
Patrice Chalin 043713001a
Minor cleanup following first docsy PR (#568) 2020-12-17 02:37:06 -05:00
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
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 09b587eda5
Drop sandbox /docs/example page (#555) 2020-12-04 16:53:56 -05:00
Patrice Chalin dbbf89ff28
Python quick start: drop error message (#554) 2020-12-03 13:29:26 -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 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
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 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 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 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
Patrice Chalin 948bef55e5
Kotlin Android Quick start page (#471)
Closes #468
2020-11-03 09:01:28 -05:00
Patrice Chalin 281e5ceffb
Move Android Java pages to platforms/android/java (#489)
Followup to #473, which made minimal changes -- it _only_ relocated the Android and Web pages without changing them. This PR moves the Android pages (which are Java specific) to a sublevel, like this:

- /docs/
  - platforms/
    - android/
      - **java/{quick-start, basics,...}**
      - kotlin/quick-start
      - dart or flutter ...
    - web/{quick-start, basics, ...}

Context: https://github.com/grpc/grpc.io/pull/473#issuecomment-714048028
2020-11-03 08:43:43 -05:00
Patrice Chalin bb85a41f22
Create docs/platforms, relocate android & web pages (#473)
Closes #472
2020-11-02 15:16:56 -05:00
Patrice Chalin b5f585c983
Drop /docs/talks and redirect to Showcase (#488)
Drop Presentations / Talks page. Instead redirect to your new Showcase page. (2020/11/02 Docs WG meeting)

Closes #280
2020-11-02 15:07:12 -05:00