Commit Graph

110 Commits

Author SHA1 Message Date
Martin Taillefer e9112e7a65
More style cleanup. (#3230) 2019-02-11 21:07:03 -08:00
mtail e2aec3458e Improve the glossary popovers so they work better on mobile. 2019-02-10 20:36:25 -08:00
mtail efdae03b36 A few more fixes following the big cleanup. 2019-02-10 16:17:45 -08:00
Martin Taillefer 141a2182c2
A bunch of infrastructure cleanup. (#3221)
- Switch from the Bootstrap grid system to the CSS grid. Much cleaner and faster.

- Add "See also" and "Links" to the list of translation strings

- Prevent the breadcrumb line from being included in the link endnotes when printing a page.

- Cleanup/rename several of the CSS and layout files for clarity.

- Switch the community page from using clumsy tables to a much cleaner approach
with shortcodes.

- Don't show buttons in the link endnotes when printing a page.

- Don't render the link endnotes section at all if the page has no links to include
2019-02-10 07:21:19 -08:00
Martin Taillefer c32db038ed
Introduce support for glossary term highlighting. (#3211)
- You can now mark a word as being a glossary term. This will trigger special rendering inviting the
user to click on the item in order to get a popup window showing the glossary text for the term. This
is very nice when introducing a new term within a page.

- Updated our dependency  on Bootstrap and ClipboardJS to the latest versions.
2019-02-08 07:29:38 -08:00
Martin Taillefer 4807e58d09
Fix rendering problem with indented tips, warnings, and ideas. (#3192) 2019-02-01 10:30:49 -08:00
Martin Taillefer dd782b3d12
Improve the looks of warnings, info blobs, and tips. (#3181) 2019-01-31 12:11:53 -08:00
Martin Taillefer d77ac74d81 Generalize handling of text blocks with <<EOF syntax. (#3136) 2019-01-24 17:17:18 -08:00
Martin Taillefer 4b22211317
Add breadcrumbs at the top of each content page. (#3093) 2019-01-16 09:46:52 -08:00
Martin Taillefer 3e0b27838f
Fix incorrect favicon dimensions. (#3091) 2019-01-15 13:34:42 -08:00
Martin Taillefer d7c4eb33f5
Switch to discuss.istio.io (#3071) 2019-01-10 07:11:00 -08:00
SataQiu c9bec145d2 fix figure style issue (#3039)
* fix figure style issue

* update layouts/shortcodes/image.html
2019-01-05 18:29:44 -08:00
Martin Taillefer 51f878a914
Simplify use of the image shortcode. (#3021)
- The width value now defaults to 100%, so it doesn't need to be specified explicitly
in many cases.

- The ratio value can now be computed automatically for PNG and JPG files, so it doesn't need
to be specified explicitly.
2019-01-03 07:46:55 -08:00
Martin Taillefer 1ca2020e42
Improve boilerplates so they can now contain shortcodes (#3019) 2019-01-02 17:42:56 -08:00
Martin Taillefer b22c30f127
Add support for boilerplate text. (#3005) 2018-12-23 07:46:24 -08:00
Martin Taillefer 777abf274a
Improve tab behavior. (#2923)
- Address rendering issue with text blocks nested in a tab that use
the magic @@ linking sequence.

- Made it so when selecting a tab in a particular tab set, other tabset
sharing the same cookie name on the current page will also switch to their
corresponding tab.
2018-11-27 07:25:15 -08:00
Martin Taillefer e4c547edc2
Use Hugo's errorf command instead of injecting magic error strings into the generated HTML. (#2922)
This produces better errors with source file & line info when shortcodes are misused by
markdown files.
2018-11-26 17:22:57 -08:00
Martin Taillefer 06d546c52c
Fix some mishandling of path separators, leading to problems on Windows. (#2920) 2018-11-26 15:38:17 -08:00
Martin Taillefer 35b41b1e20
Compensate for a Hugo bug when running on Windows. (#2919) 2018-11-26 09:41:01 -08:00
mtail 1b9e81f771 Site improvements
- The release note index page is now rendered as a simple list rather than the normal gallery mode.

- Fix use of toc: front-matter, which should be skip_toc instead.
2018-10-31 07:15:57 -07:00
Martin Taillefer 32f569bdc7
Turn on Chinese support (#2817)
- Readds the language selection menu choices.

- Enable default language choice based on browser setting. This is used before the menu
forces a particular choice.
2018-10-30 07:21:14 -07:00
Martin Taillefer 9cbb0db783
Clearly indicate which version of k8s we support. (#2786) 2018-10-19 12:53:12 -07:00
Martin Taillefer 9885a6c0e0
Move inline images to a more sane location. (#2748) 2018-10-06 06:50:16 -07:00
Martin Taillefer a2026aab5e
Clean up a bunch of loose ends (#2745) 2018-10-05 22:21:56 -07:00
mtail 85c571ec86 Revert a change to this file, which broke a bunch of pages. 2018-10-05 18:01:11 -07:00
mtail e704d68356 Fix stray backslash that creeped in the template. 2018-10-05 17:52:27 -07:00
Martin Taillefer 9540cd2d19
Site improvements. (#2742)
- Auto-generate tables of template->adapters and adapter->templates

- Make the "Edit this page on GitHub" menu option track the branch correctly instead of always pointing to master.

- Update the reference docs.
2018-10-05 11:15:26 -07:00
Martin Taillefer aec96f3233
Add support for logos in partner components (#2724)
* Add support for logos for partner components.

* Update reference docs.
2018-10-02 12:04:15 -07:00
mtail f204b6a9b9 Update reference docs. 2018-09-29 11:15:58 -07:00
Martin Taillefer 208760597b
Add support for partner components. (#2704)
Partner components (adapters not controlled by the Istio org) are now
called out as such on their page. Component authors have a chance to put
all sorts of info about their component to make it easy for customers
to find and use their component.
2018-09-28 15:40:10 -07:00
Martin Taillefer 7d150577ed
Add support for the last_update front-matter field. (#2690) 2018-09-25 15:24:14 -07:00
Martin Taillefer 3acfe3fe40
Replace references from istio.github.io to istio.io (#2686) 2018-09-25 12:13:38 -07:00
Martin Taillefer edfdf7d795
Site improvements. (#2663)
* Site improvements.

- For SVG images, authors no longer need to specify image ratios
(which is a constant source of errors)

- Move more icons into the new icons.svg file to further reduce
average page load times.

- Rationalize Istio logo file names.

- Improve underlining behavior for sidebar headers and the RSS feed
Subscribe link.

- Made the RSS feed subscribe link open in a new tab.

- Increase the constract ratio for some elements in dark mode
text blocks (namely, YAML field names)

- Reduce the "brightness" of the light bulb icon which helps it
not pop so much in dark mode.

- Optimize the fonts we load and the order we load them in so as to improve page load time and
reduce the initial render time.

* Sadly, embedding SVGs into the HTML results in duplicate element ids, which is invalid HTML :-(
2018-09-21 17:56:46 -07:00
Martin Taillefer 0a4264417f
Site improvements (#2633)
- Use a new approach to managing icons. This has two primary benefits:

  - It makes it possible to color the icons such that they look good in the
    dark theme. Previously, the icons were rendered in black on dark grey when
    using the dark theme.

  - The average payload size for our web pages is reduced and we better use the
    browser cache.

- The new icon approach makes it possible to remove our dependency on the fontawesome
  package, which further slims down our payload requirement

- Refresh our iconography for a slightly lighter look.

- Remove the extra thick left-hand border of text blocks to lighten the
look.

- Added a "NN minutes to read" indication on top of each page. This is
only displayed if the count is > 1 minute.

- Added a calendar icon next to the blog post date.

- Exposed a bunch of strings that were buried in CSS/JS to translation.

- Add the 'keywords:' front-matter fields to the Hugo archetypes.
2018-09-17 08:52:23 -07:00
Vadim Eisenberg bb22b22308 Use kubectl with EOF instead of cat with pipe (#2620)
* handle kubectl create/apply -f - <<EOF

in the same way as "cat <<EOF | kubectl apply -f -"

* replace cat <<EOF | kubectl apply/create -f - with kubectl apply/create -f - <<EOF
2018-09-15 14:37:23 -07:00
Martin Taillefer 9f187ee64f Improve the release note link shortcode. (#2597)
- When displaying a "Changes" button, we now display a diff from the previous patch to the current
patch, instead of a diff from the base release to the current patch.

- Properly localize the release note buttons so these can be translated.
2018-09-12 10:47:45 -07:00
mtail 4cbf305582 Search page CSS tweak. 2018-09-10 20:30:43 -07:00
Martin Taillefer 3fba212ac0
Switch the archive site to refinement-based search. (#2560) 2018-09-08 16:02:29 -07:00
mtail b8605a6c91 Another search fix. 2018-09-08 09:21:30 -07:00
mtail 7032ed4904 Fix search.
I messed up the use of search engine ids.
2018-09-08 07:37:04 -07:00
Martin Taillefer cb58e4539e
Site improvements (#2555)
- Move some strings from the footer to the translation table so they can be translated.

- Use a custom search engine for the preliminary site, so the preliminary site can actually be searched.

- Improve a few shortcodes to improve how they work when nested in tabs.

- Move a few constants out of the layouts and into args.yml for cleanliness.
2018-09-07 09:38:40 -07:00
Martin Taillefer 7e6a8924bd
Replace uses of the deprecated .URL field with .Permalink. (#2530) 2018-09-05 16:14:12 -07:00
Martin Taillefer 9955c399a0
Site improvements (#2526)
- Change how the RSS feed is generated in order to avoid a crashing bug in Hugo when
used in server mode.

- Prevent the OWNERS file from leaking into the generated site.
2018-09-05 09:55:01 -07:00
Martin Taillefer fdc9d56483
Use correct analytics id for normal/archive/preliminary versions of the site. (#2520) 2018-09-04 19:29:12 -07:00
Martin Taillefer 815aaaa72e
Finish implementing tab support. (#2492)
- Support cookies. Tab setting are now remembered across page visits. Set it, and forget it.

- Fix problems with nested text blocks.
2018-09-01 08:59:39 -07:00
Martin Taillefer 99be6fd164
Add support for tabbed content. (#2484) 2018-08-31 08:13:21 -07:00
Martin Taillefer 77a5540c04
Upgrade to Hugo 0.48 (#2471)
Take advantage of the simplified template syntax introduced in 0.48
in a bunch of places.
2018-08-30 07:24:52 -07:00
Martin Taillefer 2796aca4ac
Add download, diff, and docs links to release notes. (#2441) 2018-08-28 13:07:27 -07:00
Martin Taillefer 7c34e8aaa1
Add 'Customers' and 'Partners' pages (#2266) 2018-08-27 07:27:38 -07:00
Martin Taillefer 94ccb1b08e
Fix mentions of specific releases (#2379)
- Remove the release-specific wording on the main release note page and on the docs page. This
ends up being hard to keep correct and not really useful.

- Add a full_version variable in args.yml which contains the 3 part release version
such as 1.0.1. When we release a new patch, we need to update this number in the current
release branch.

- Apply the full_version variable to the download button on the home page. It will now say "DOWNLOAD 1.0.1".
2018-08-25 05:59:39 -07:00