Commit Graph

40 Commits

Author SHA1 Message Date
Jan Tattermusch 30ca5681b3
Update C# documentation after C# source move (#1067) 2022-10-31 13:21:37 -04:00
Patrice Chalin 4e5a975ccb
Don't generate daily-build placeholder pages (#732) 2021-03-22 12:05:26 -04:00
Patrice Chalin 79dcc13640
Inline contribute.md into the Community page (#662) 2021-02-19 14:59:14 -05:00
Patrice Chalin a1b660a033
Blog posts: drop invalid & unnecessary Hugo aliases (#649) 2021-02-15 15:30:46 -05:00
Patrice Chalin ec08a198a2
Fix top blog 404s (2021/01) (#602) 2021-01-18 19:49:01 -05:00
Patrice Chalin d5db1b8003
Add redirect rule for /docs/guides/auth/ALTS (allcaps) (#575)
Closes #574
2020-12-17 14:36:56 -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
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 a878bf399a
Fix top 404s for Oct-Nov 2020 (#534)
Closes #533
2020-11-19 16:33:09 -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
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
Patrice Chalin 9fe1befed6
Fix redirect rule affecting C# tutorial (#430)
Closes  #429
2020-09-30 20:48:23 -04:00
Patrice Chalin 1fbbbeff3f
More blog-entry redirects (#394)
Contributes to #392
2020-09-15 12:58:39 -04:00
Patrice Chalin 48d4c97467
Add missing blog-entry redirects (#393)
Contributes to #392. (Also add spelling 'ignore' lists/words for the affected files.)
2020-09-15 12:19:33 -04:00
Patrice Chalin ae30032555
Address top site 404s as of 2020/07 (#341) 2020-07-06 15:25:55 -04:00
Patrice Chalin 3dba10d66a
Eliminate samples page (#328)
- Per working group discussion on 20/06/01.
- Contributes to #280
2020-06-29 14:30:18 -04:00
Patrice Chalin 47cd70ee9c
Simplify API reference URL design and redirect handling (#299)
* Redirect ".../api" paths
* Simplify logic
* Avoiding use of deprecated .Page.Dir
2020-06-19 12:39:48 -04:00
Patrice Chalin 43d2c4e5fc
Redirects: handle .html suffix (#289)
Closes #286
2020-06-16 08:05:13 -04:00
Patrice Chalin 6c27bd1dcb
Add "Daily builds" links for wrapped languages (#283)
- Remove "Packages" external link from main nav
- Add links to "Daily builds" for relevant wrapped languages.
2020-06-15 14:06:12 -04:00
Patrice Chalin 04e7616330 Redirects cleanup 2020-06-11 11:41:33 -04:00
Patrice Chalin 24f1af3017 All languages covered 2020-06-11 09:25:53 -04:00
Patrice Chalin 857a295683 Another redirect-rule variant trial 2020-06-11 09:25:38 -04:00
Patrice Chalin e81796f189 Use lang specific redirects + catch all 2020-06-11 09:25:13 -04:00
Patrice Chalin 9e3c9134cf
Add "What is gRPC?" section (#250)
* Add "What is gRPC?" section

* Move "core concepts" page to new section

* Move "What is gRPC" text to Intro page

* List techniques in Guides landing page

* Add "What is gRPC?" to Docs drop-down

* Link "Learn more" CTA to intro page

* Replace "What is gRPC?" links with "Intro" links

Replace links to
    [What is gRPC?](guides)
by
    [Introduction to gRPC](what-is-grpc/introduction)

* Replace links to "Overview" by links to Intro

Formerly the "Overview" page contained the text that is now in the intro page.

* Add redirect for concepts page

* Fix link in intro page
2020-05-29 20:20:03 -04:00
Patrice Chalin 3a008dc431
Drop contributing.md placeholder file (#248)
The Community page will hold this information. This is in preparation for rework of the Guides section.
2020-05-28 16:06:02 -04:00
Patrice Chalin d89cf21373
Move API-reference links to language-specific pages (#245)
* Move API-reference links to language-specific pages

* Remove language references from reference page

Note that the page no longer shows up in the left-nav.

* Drop shortcode and data file that aren't used anymore

* Drop reference page

* C# .NET page: make prose match other pages

* gRPC-for-.NET prose tweak

* Eric's feedback: don't add mention of gRPC core in Languages page
2020-05-28 15:05:33 -04:00
Patrice Chalin 08f2a06b14
C# pages: repurpose non-quick-start page into a "gRPC for .NET" page (#244)
* Initial revision

* Create separate dotnet page

* Simplify the C# section page
2020-05-28 13:14:44 -04:00
Patrice Chalin c141c4f7e6
Move generated-code references to the languages section (#242) 2020-05-27 16:50:37 -04:00
Patrice Chalin 5f9696803e
Add "Languages" section, and move quick start and tutorial pages there (#238)
* Introduce languages section

* Add Languages to top-nav Docs menu

* Link to Languages page from Docs landing page

* Redirects for quick start and tutorial pages

* Add some leading text for the language list pages

* Tweak Languages list page prose

* Fix language order in Languages page
2020-05-27 14:09:29 -04:00
Patrice Chalin 03dcc88418
Add link to Kotlin gRPC API ref docs, and cleanup redirects (#165) 2020-03-23 17:28:52 -04:00
Richard Belleville 5640a434ca Stop depending on grpc.github.io for the /release uri 2020-02-04 14:49:57 -08:00
lucperkins 5ed99de92e Add /release URL rewrite
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-05-01 09:21:22 -07:00
lucperkins 3b4f54cb78 Add /grpc redirect
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-04-23 09:35:23 -07:00
lucperkins 2782f091e4 Change structure of splat URLs
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-04-22 19:00:28 -07:00
lucperkins 75dffd32f4 Remove public folder from Git
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-04-22 18:27:11 -07:00
lucperkins 7a573575d1 Use splat redirects
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-04-22 18:20:32 -07:00
lucperkins 067307dd29 Add contents of new site repo
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-04-22 18:07:24 -07:00