Commit Graph

106 Commits

Author SHA1 Message Date
Martin Taillefer 33bdfdc942
Fix a few bugs and add a feature. (#1111)
- Link injection for document headers has been broken for a while due to my
misunderstanding of the "for in" syntax in JavaScript. This now works as expected.

- Same problem also prevented the feature that causes every link to outside of istio.io
to be opened in a separate window. This now works as intended.

- Made the gear dropdown menu be right-aligned such that it doesn't go off-screen on
portrait mode tablets.

- Stop importing Popper.js since it's only needed for dropdown menus that aren't in the
nav bar. Ours is in a nav bar...

- Added link injection for <dt> terms, which makes it easy to create links to individual glossary entries.
2018-03-28 09:00:14 -07:00
Martin Taillefer 50e33d872d
Eliminate flickering on page load. (#1068)
- Fix another issue with my arch-nemesis, the Copy button. My last fix for Copy button issues
resulted in screen flickering upon page loading. This is now fixed.

- Pin the size of the gear and magnifying glass icons in the header to avoid flicker as the
fonts for those renders a few ms too late and lead to flickering on page load.

- Cleaned up the site's JavaScript for clarity, and include minimized versions in the
site for improved perf.
2018-03-12 09:46:07 -07:00
Martin Taillefer 8d8fd08399
Introduce support for building the site in "preliminary" mode. (#1052) 2018-03-05 11:05:26 -08:00
Martin Taillefer 6b2cb6c271
Simplify version handling. (#1033) 2018-02-25 10:47:06 -08:00
Martin Taillefer d330ae1f0c
A few improvements (#1017)
- We now automatically detect when a TOC has no entries in it and omit the spacing on the right side
for the TOC. This improves the formatting of a few pages on the site.

- Make an another attempt at preventing the dropdown arrow from wrapping under the cog on smaller screens.
This new solution seems to work across several browsers I've tried.

- Remove an extraneous header in one page.
2018-02-20 08:07:08 -08:00
Martin Taillefer 50199cec08
Fix problem with the sidebar introduced by the Copy button fix. (#1015)
The voodoo to support the copy button was accidentally affecting the
sidebar. Changed class names to avoid this.
2018-02-19 10:08:59 -08:00
Martin Taillefer e42f7ed9ba
New format for FAQ, allowing for deep links to answers and making it easier to browse. (#1013) 2018-02-19 05:31:16 -08:00
Martin Taillefer fd5d4a2cb2
A few fixes (#1007)
- Add support for showing the archive date in the footer.

- Fix invalid HTML in the header which improves the responsive layout. In particular, the down arrow
for the dropdown menu tends to stay on the same line as the cog more than before.

- Tone down the blue color of links so it's not so intense. There's still good contrast
between links and normal text.

- Remove broken og:image meta tag from each page. It used to point to a logo.png
file, which we deleted months ago. Turns out it's not intended for web site logos
anyway.

- Add og:url and og:site_name per best practices.

- Remove one more stray border on the community page. I thought I got rid of 'em last time,
but I missed one.
2018-02-18 12:13:35 -08:00
Martin Taillefer 85e5f4c98f
Add "smart" version switching, where we try to switch you to the same general area of the web site across (#968)
versions.

Also, upgrade to FontAwesome 5.0
2018-02-12 07:04:53 -08:00
Martin Taillefer fcff7b5505
Add support for a dark color theme. (#966)
* Add support for a dark color themes.

- The version dropdown is now replaced with a gear dropdown. This dropdown lets you
pick the version of the site to look at, and lets you pick the light or dark color
themes for the site.

- Fixed a rendering glitch on the community page where a stray right and bottom border
was rendered.
2018-02-11 18:10:12 -08:00
Martin Taillefer 08f924f85b
Add support for archiving istio.io contents. (#833) 2018-02-06 21:02:08 -08:00
Martin Taillefer 428af2c847
Update reference docs. (#937) 2018-02-06 09:48:31 -08:00
Martin Taillefer e795a779c4
Regenerate docs with latest tooling. (#926) 2018-02-01 21:04:37 -08:00
Martin Taillefer 23b47d9983
Prepare for new generated reference content. (#889)
- Stop using the prism functionality for syntax highlighting since
it doesn't handle embedded links in <pre> blocks, which prevents
cross-linking to type names properly. We now roll our own PRE block
handling.

- Stop drawing a box around inline code elements which substantially improves
the visuals, especially in tables.

- Improve appearance of tables to be a bit cleaner.
2018-01-29 06:44:07 -08:00
Martin Taillefer efb592ba9d
Update from Bootstrap 4 Beta to Bootstrap 4 release. (#890) 2018-01-27 22:03:30 -08:00
Laurent Demailly f68eedb402
Revert "Improve consistency of the coloring of a few elements with the site theme" (#853)
* Revert "Improve consistency of the coloring of a few elements with the site theme. (#851)"

This reverts commit 73dee9e611.
2018-01-07 20:27:00 -08:00
Martin Taillefer 73dee9e611
Improve consistency of the coloring of a few elements with the site theme. (#851) 2018-01-07 19:29:26 -08:00
Martin Taillefer aab7fa27a8
Major update of the web site's infrastructure. (#826)
Four major themes to this work:

* Performance. This new site is fast. It loads considerably faster, especially on mobile.
Every pixel is drawn exactly once. Clicking around doesn't result in things jiggling everywhere.

* Navigation. I wanted to make it easier to get around the site, especially on mobile. To that end, we now have:

  - Sticky navigation elements. The top nav bar, the left sidebar and the right TOC are now sticky and remain
on screen even as page content is scrolled.

  - Tabs in the Docs section have been removed and integrated as accordion items in the left sidebar.

* Layout. I moved a bit of content around to make it easier to find and give us some room to grow:

  - The Help page is now replaced with a full Help section. This provides a home for the FAQ, glossary,
bug reporting, and troubleshooting pages.

  - The About page is now replaced with a full About section. This provides a home for the release notes, roadmap, upcoming "in the news" section, etc.

* Design. I tried to improve consistency across the site and provide a slightly lighter feel by minimizing the impact of some design elements. Specifics:

  - Font sizes are now consistent across the site.

  - The site does a much better job at adjusting to different screen sizes which makes the mobile experience better.

  - Accessibility is improved by adding many attributes for screen readers, and by ensuring the site scales properly based on user-selected fonts.
2018-01-03 08:16:28 -08:00
Martin Taillefer e20db6abf4
Update prism to latest rev. (#819)
- Regenerate prism code to get latest fixes.
- Add support for docker and perl files
- Fix several improperly formatted code blocks
2017-12-28 23:33:03 -08:00
Martin Taillefer add92253df
A batch of small site improvements.
- We no longer have a redirect from the top-nav Blog link to the
current latest blog post, which looks nicer.

- Added a link to our team drive to the community page.

- Upgrade a few icons from PNG to SVG

- Reintroduce content compression which I accidentally left turned off previously.

- Reintroduce the RSS icon on blog posts which disappeared in last week's great blog
page redesign.

- Update doc contribution guide to cover blog posts and setup pages.

- Add templates for setup topics and blog posts.

- Compress our SVG files for faster loading.
2017-12-17 11:38:29 -08:00
Martin Taillefer b7787ca1c1
Revamp blog page look & feel.
- The blog page now has a sidebar showing all blog posts.

- Blog entries now cleanly display the publication date, attribution, and subtitle

- Sidebar entries, both for blog posts and for docs now show tooltips when hovering the mouse over the entry.
2017-12-11 06:58:38 -08:00
Martin Taillefer 2c7b33d6cc
Add a Mixer SPOF blog. (#774)
While I was here, added a TOC to blog posts.
2017-12-08 07:22:11 -08:00
Martin Taillefer cdce9159d9
Move things around so we get a sidebar on the doc welcome page. (#766)
This finally gives a home to oddball things like the FAQ, Glossary,
Release notes, and Contributing to the Docs stuff.

Took the opportunity to do a bit of tidying up in the directory structure
of the site by removing useless subdirectories.
2017-12-06 10:08:41 -08:00
Martin Taillefer 05ae202696
Updated artwork for home page + cleaned up logo + new logo label font (#757) 2017-12-04 19:22:02 -08:00
Martin Taillefer 293633f8e0
Fixed a couple rendering bugs I introduced, and improve loading perf. (#742)
- I left a debugging string ("Chevron") in the text, which
would show up on screen. Oops.

- The trick I used to glue the footer to the bottom of the browser window ended up causing trouble with the
vertical scroll bar positioning. I reverted this trick, in favor of a simpler approach. Instead of gluing
the footer to the bottom of the window, I simply make it so the bottom of the page is already rendered in the
same blue as the footer.

- Move a script from loading in the header to loading in the body. According to the Chrome profiler, this
saves a bunch of time blocking rendering during page load.
2017-11-26 22:41:40 -08:00
Shriram Rajagopalan 54dc734f1c
Remove stray word (chevron) 2017-11-26 19:02:34 -05:00
Martin Taillefer 9aa8f5b947
Site cleanup
- Remove unreferenced files

- Stop using sitemap_exclude in front matter since nothing is looking at this.

- Minify the javascript files for faster loading.

- Cleanup and add favicons

- Fill some of the app manifests for Android and Windows to integrate more nicely.

- Address a few Lighthouse auditing issues.
2017-11-26 13:37:14 -08:00
Martin Taillefer 2a181a22cd
Add a help page (#738)
- istio.io/help now brings up a help page which groups together all the things users can do when
they need help.

- Replaced the FAQ link in the top right of each page with a Help link instead

- Did a bit of cleanup in the page footer content & naming

- Whenever there isn't much page content, the page footer is now glued to the bottom of the visible browser page instead
of floating like a fool in the middle of the page/screen.

- Fix clickable region in new FAQ page. Instead of just being able to click on the words, you can now click
on the whole heading area to expand it.
2017-11-26 05:57:32 -08:00
Martin Taillefer 15b128b65b
Revamp the glossary page. (#734)
- Better aesthetics.

- Can now navigate by clicking on a letter selector.

- Each word can now be linked to directly (although discoverability
could be better)

- The glossary is now referenced from the header.

- You can now find the glossary at istio.io/glossary
2017-11-24 22:48:01 -08:00
Martin Taillefer 0ba1adcfbc
Revamp the FAQ page. (#733)
- The FAQ page now has categories to make the page more scalable.

- Removed the FAQ pages that were added a little while ago and integrate
their content into the main site FAQ page.

- Stop computing sitemap.xml since there's a Jekyll plugin that does that
for us.
2017-11-24 20:32:09 -08:00
Martin Taillefer 3f4d22b776
Add a custom 404 page so we don't get the default GitHub one. (#732) 2017-11-23 09:51:41 -08:00
Martin Taillefer 146203f238 Explicitly pull in clipboard.js to avoid bugs between prism and latest Chrome. (#579) 2017-09-30 13:06:01 -07:00
mtail c9e672d6cc Few cosmetic updates. 2017-07-22 05:55:59 -07:00
Martin Taillefer 8b330092e6 Use CDNs for common libraries and update to latest revisions. (#418)
Use more efficient github.png as suggested by PageSpeed.
2017-07-21 14:45:46 -07:00
Martin Taillefer 74f0174523 Get TOC on Troubleshooting page. 2017-05-23 20:25:56 -07:00
Martin Taillefer 1f69ebd1a4 Update Mixer FAQ answer. (#324) 2017-05-23 19:42:14 -07:00
Martin Taillefer 760de2eb22 Add a FAQ entry about "Why Mixer?"
- Also a few fixes in other FAQ entries.

- Force the right-hand scrollbar on, which eliminates the very annoying left/right jiggle that
was happening whenever loading a new page on istio.io.
2017-05-23 11:54:25 -07:00
Martin Taillefer df7666a93f Eliminate white strip on left side of screen. 2017-05-23 10:48:20 -07:00
ryangrahamnc 4cf4c69e8d fixed leftnav not responding on mobile (#309) 2017-05-23 08:25:58 -07:00
ryangrahamnc 19215a5b1e wrapped a div around the non-toc contents of the docs pages. used position:relative and zindex to make toc overlap other content (#296) 2017-05-22 10:17:54 -07:00
Martin Taillefer 507417f058 Avoid page content shifting left & right based on the presence/absence of right scrollbar. 2017-05-22 06:37:06 -07:00
Martin Taillefer 5dcee28bac Various clean up items. 2017-05-21 08:55:45 -07:00
Martin Taillefer d464c77b5b A few formatting fixes.
- The welcome screen now uses the same layout as all the non-docs pages so it looks more
'normal'

- The TOC's right margin has been shrunk to be consistent with the left margin.

- The community page now uses the color Twitter and GitHub images.

- Move a few things around to maintain order in the web site support stuff.
2017-05-21 00:27:20 -07:00
ryangrahamnc aa75c05125 removed the empty nav from the welcome docs page. http://localhost:4000/docs/index.html . jekyll is really hard to use, lol (#288) 2017-05-19 17:20:13 -07:00
ryangrahamnc 9cd741e2c5 moved the rss icon to the top-right, directly under the header, and aligned with the right of the content (#285) 2017-05-19 13:18:32 -04:00
Martin Taillefer 4d7f17a09c Spruce up our code blocks.
- Use different rendering style for code blocks.
- Define a default language so stuff always looks right.
- Add a bit more info to the writing-a-topic guide.
2017-05-18 07:08:36 -07:00
Martin Taillefer 0e52a7af34 Replace Jekyll's syntax highlighter with Prism. It handles YAML much better.
Prism also includes its own Copy to clipboard functionality, so remove our home
grown version.
2017-05-17 21:54:47 -07:00
Martin Taillefer 0a5a870b02 Minor addition to style guide. 2017-05-17 10:32:19 -07:00
Varun Talwar 39fe382f98 Adding analytics code (#246) 2017-05-17 06:49:27 -07:00
Dave 31a2f09892 remove manual setting of sidebar height and shift border (#237)
* remove manual setting of sidebar height and shift border to content container. refactor

* fix size of copy button font and move button above code blocks
2017-05-16 20:56:29 -07:00