Commit Graph

347 Commits

Author SHA1 Message Date
Martin Taillefer 36c30cf45b
Fix rendering issues with banners and stickers. (#5995)
- Pick a better color for links in banners and sticks in the light theme.

- Don't underline banners when they're used as links.

- Properly vertically center single-line stickers
2019-12-05 14:03:06 -08:00
Martin Taillefer c863bea599
Content changes to prepare to switch to the new Hugo. (#5993)
These fix problems encountered when switching to the new Hugo which has
a completely different markdown engine. I went through diffs of the generated
HTML and made required adjustments.
2019-12-05 12:44:01 -08:00
Martin Taillefer 03399edcc1
Now collect additional info when a user says a page is not helpful. (#5980)
* Now collect additional info when a user says a page is not helpful.

* Update i18n/en.toml

Co-Authored-By: Frank Budinsky <frankb@ca.ibm.com>
2019-12-05 11:42:41 -08:00
Martin Taillefer 138d604676
Leverage new deacription strings on the security bulletin page. (#5982)
Fixes #5902.
2019-12-05 11:40:56 -08:00
Martin Taillefer 779a6754b3
Delete a useless shortcode. (#5983) 2019-12-04 15:02:24 -08:00
Martin Taillefer 1dba095f79
Add support for events. (#5953)
Events are used for special announcements. There are stickers and banners that can be
displayed to the user. These can be used to announce an imminent release with a
sticker and countdown clock, or can be used to invite users to a future
conference, or can be used to announce that a new release is available for download.

See the authoring guide for instructions on how to use these announcements.
2019-12-04 12:12:52 -08:00
Martin Taillefer 6165cb9821
Replace cookies with local storage. (#5949)
- We don't need cookies for istio.io, the few settings we do have should be
managed with browser-local storage instead. This is a better privacy posture,
and avoids sending needless data to the server for every request.
2019-12-02 13:02:51 -08:00
Martin Taillefer a222793255
Site improvements. (#5939)
- Move some info to front-matter in the different security bulletins
such that it can be used when building the security bulleting index page.

- Update the security bulletin index page to show affected relesses and
impact score.

- Make it so table headers are vertically centered, which looks a lot nicer
when there are a combination of single-line and multi-line headers in the
same table.

- Add a few checks to correctly hide draft mode documents from sight
in more cases.

- Remove a stale document that's been in draft mode since first being
created in 2017.

- Clean up a bit of text in some release notes.
2019-12-02 09:37:57 -08:00
Martin Taillefer d20a308703
Site improvements. (#5932)
- The section names in the header (Docs, Blog, etc) used to not be clickable
if you were on any page in the section. Now, they are clickable so that you can
use them to go back to the top of the section.

- Remove unsightly jitter of the section names in the header whenever the
"new content" dots where drawn. The header text is now rock solid as it normally is.

- Have the "new content" pills and dots fade it. There's necessarily a delay before
they get displayed, so instead of just popping them in which looks a big ugly, they
now gently fade in, as if the delay was intentional :-)

- Fix misuse of the JavaScript object model which would lead to script crashes in
certain cases.
2019-11-29 09:03:37 -08:00
Martin Taillefer 74266dbb6b
Fix bug in the change log code that could lead to lint errors. (#5924) 2019-11-28 16:32:48 -08:00
Martin Taillefer 1480cacce7
Don't link to language-specific content from preliminary.istio.io to istio.io. (#5900) 2019-11-27 12:56:51 -08:00
Martin Taillefer dbed6f0eba
Add a web site change log page. (#5861) 2019-11-27 10:31:46 -08:00
Martin Taillefer 6e44017067
Fix bug causing the breadcrumbs to be duplicated when building the site locally. (#5859) 2019-11-25 13:23:26 -08:00
Martin Taillefer 262ecce992
Site improvements. (#5836)
- The Yes/No feedback buttons now produce analytics events that include the
page language so that we can key off of that in the reports.

- Improve the layout of directory pages (_index.md) by removing excessive
blank space around each entry, which makes better use of the display area.

- Hide the Yea/No feedback buttons when printing.

- Fix the superscript link endnotes used when printing. These were
being rendered as full-size text instead of superscripts. This has
been broken for a long time it seems.
2019-11-25 11:34:54 -08:00
chentanjun f24e8d41f5 add zh in /zh、update lintcheck ci、fix conflicts (#5823) 2019-11-24 21:47:38 -08:00
Martin Taillefer 63452cf0b0 Fix occasional bad size of panel in the side nav. (#5821) 2019-11-22 06:36:23 -08:00
Martin Taillefer 1c00c8d3bf
Add support for user feedback on how useful the content is. (#5812) 2019-11-21 09:28:03 -08:00
Martin Taillefer 9a12bd4e2f Add tooltip when hovering over links in section index pages. (#5807)
You now get a tooltip with author name, publication date, and resding
time when you hover over a link to a page within a section index.
2019-11-20 08:18:47 -08:00
Martin Taillefer e3c8077416
Introduce a shortcode to produce the disclosure detail table in security bulletins. (#5800) 2019-11-20 08:06:15 -08:00
Martin Taillefer 6cdafbeb3d Add support for dots & pills for both news and blog posts. (#5768)
- If a returning user comes to the site, if there are unread
blog posts or news articles less than 15 quadrllion nanosecond
old will be treated as being unread. When there are unred articles,
the News or Blog link in the title bar will get a green dot indicating
articles are available. When clicking on News, then you'll get the
news categories with a pill showing how many articles are unread for
each category.

First-time visitors to the site will not get any dots or pills for
existing articles. These will only appear in subsequent visits for
new articles.

Due to the default behavior for new users, if you just look at the
preview, you will not see any pills or dots. To see what this actually
looks like, load up the preview, then go to the Chrome Developer Tools,
click on the Application tab, then on Local Storage, and then find the
visitedPages entry. Right click on the entry, select Edit Value,
and set the value to {}. Then refresh the page and you
should see some dots show up next to the Blog and News links in
the header.
2019-11-19 11:44:46 -08:00
Martin Taillefer b5ddc1fa56
Big cleanup of security bulletins. (#5761)
- Security bulletins now have a cleaner style, with a common table
at the top capturing common info.

- Generate a custom table when showing the list of bulletins.
2019-11-18 07:19:36 -08:00
Martin Taillefer 6e6eb6d031
Reorganize the news section. (#5740) 2019-11-16 19:25:54 -08:00
Martin Taillefer f631e0ca26
Fix problems with the glossary page. (#5758)
- Remove some stray characters at the top of the page.

- Fix scrolling behavior such that the selected letter stays on the
screen. This broke due to a bug fix on the istioctl page which had
an unexpected side effect,

- Remove extraneous alias that could lead to infinite redirect loops.
2019-11-16 12:18:00 -08:00
mtail 491031436f Reenable the language switch button for the preliminary site. 2019-11-16 07:07:56 -08:00
Martin Taillefer 2c5775d77d
Fixes to the release note action buttons. (#5701)
- For the main release page, have the DOWNLOAD selection take you to the getting started install page.
In other cases, it throws you to GitHub's release page.

- Fix color highlighting for the action areas. Some text was becoming invisible on
hover and the buttons generally didn't follow our color scheme & transitions. Now
they have like buttons do in terms of colors.
2019-11-15 07:34:34 -08:00
Martin Taillefer 3d58942d0f Site improvements. (#5719)
- Display the version number in the site header. The version number was only displayed
in tiny font in the footer, now it's quite a bit more obvious.

- Fix layout of the footer to avoid the icons wrapping on two lines when the browser was
specific widths.

- Clicking on a folder in the left navigation area no longer expands the
folder. It only brings up the page associated with the folder in the main
page area. This was always my intent, I never got around to it til now.
2019-11-15 06:57:46 -08:00
Martin Taillefer 48c8a28968
Prepare for 1.5. (#5689) 2019-11-14 13:01:31 -08:00
Martin Taillefer 77a6535313
Add redirect for download scripts. (#5687) 2019-11-14 10:50:09 -08:00
Frank Budinsky f5ce9feb70
Consolidate getting started instructions (#5642)
* Consolidate getting started instructions

* review comments

* fix broken links

* add istioctl link

* Fix spelling

* more broken links

* one more
2019-11-12 23:04:33 -05:00
Martin Taillefer 41df638ddc
Fix another bug blocking the Chinese translation work. (#5316) 2019-11-01 12:21:52 -07:00
Martin Taillefer 2edd60c0e4
Fix broken link in Chinese translations. (#5312) 2019-10-31 20:29:18 -07:00
Frank Budinsky f220f655a7 Deprecate helm install (#5270)
* Deprecate helm install

* fix lint

* address review comments

* correction
2019-10-29 06:37:34 -07:00
Martin Taillefer c2d1a234c3 Experiment with improved istioctl TOC layout. (#5274) 2019-10-28 19:19:34 -07:00
Martin Taillefer e8f8b4feb8
Improve snippet logic. (#5205)
- Support snippets that specify the body syntax and output
syntax of the snippet.

- Snippets with bash syntax triggered an incorrect error message.

- No error message was produced for a misnamed snippet

- Convert a security task to use snippets to populate its
many preformatted blocks.
2019-10-20 16:27:51 -07:00
Martin Taillefer b1e6f32a89 Fix breadcrumb studdering. (#5182) 2019-10-17 14:48:54 -07:00
Martin Taillefer c18122c369 Fix the breadcrumb studdering. (#5181) 2019-10-17 14:21:54 -07:00
Martin Taillefer b77085ccad
Workaround Hugo bug where it gets confused about directory parentage. (#5164)
Hugo produces confused results when directories are named as subsets of other
directory names (announcing-1.3 vs. announcing-1.3.1). Instead of using Hugo's
.Parent variable, we compute parentage manually using path names.
2019-10-16 08:13:29 -07:00
Martin Taillefer 612d10c921
Automatically a warning to older blog posts about them being potentially out of date. (#5134) 2019-10-15 10:02:20 -07:00
Martin Taillefer f7dd8c6613
Consolidate release-specific material into the news section. (#5138) 2019-10-15 09:27:11 -07:00
Martin Taillefer 9944d952ff
Add support for config analysis messages. (#5096)
- This provides the place where we can pour config analysis message
descriptions.
2019-10-08 10:30:41 -07:00
John Howard 0f2da716f7 Add istio.io/release-builder vanity url (#5072) 2019-09-27 13:45:27 -07:00
Martin Taillefer d42dfe94ba
Introduce top-level News section. (#5060) 2019-09-27 07:09:58 -07:00
Sylvain Baubeau dae7b33b96 add istio.io/client-go as vanity URL (#5065) 2019-09-27 06:43:13 -07:00
Ram Vennam 19a37e672b Download button and flow (#5029)
* download flow

* footer
2019-09-19 14:59:54 -07:00
Martin Taillefer 8d1fffac66 See if this simple redirect will work. 2019-09-18 09:04:11 -07:00
Martin Taillefer 2ef3b239ad
Fix handling of SVG files without a viewBox element. (#4960) 2019-09-11 11:23:10 -07:00
Martin Taillefer dfb41ae672
Add support for text block links that point to other repos. (#4952) 2019-09-10 11:57:07 -07:00
Martin Taillefer 01bdfb0130 Disable support for the Chinese translation since it has fallen out of date. (#4949) 2019-09-10 08:03:56 -07:00
John Howard 841f835f84 Update upgrade steps for Istio 1.3 (#4890)
* Update upgrade steps for Istio 1.3

Fixes https://github.com/istio/istio.io/issues/4889

* updates
2019-09-03 13:57:22 -07:00
Martin Taillefer 6132716ace
Fix bug preventing relative links to images in the zh directory. (#4816) 2019-08-21 15:20:35 -07:00
Martin Taillefer 52b2ad8dec Add a lint rule to prevent us forgetting to update the site version. (#4799) 2019-08-15 14:17:49 -07:00
Martin Taillefer 55d4514a08
Move Chinese content to content/zh, as agreed in WG meeting. (#4791) 2019-08-14 16:02:51 -07:00
Martin Taillefer d0cf1e171e
Move English content to content/en as agreed in WG meeting. (#4789)
Once this goes in, I'll move content_zh to content/zh.
2019-08-14 15:45:31 -07:00
Varga Zsolt 93bc0a4952 add istio.io/operator as vanity URL (#4761) 2019-08-05 12:32:45 -07:00
Katharine Berry 457d3b9dae Point /charts/ at GCS directly instead of gcsweb. (#4702) 2019-07-23 13:08:26 -07:00
mtail 664bcb81af Remove extraneous linefeed that was leading to extra whitespace in the HTML. 2019-07-05 04:31:34 -07:00
Martin Taillefer 53e04b461a
Update Slack-related info to match our current policies. (#4530) 2019-06-24 09:28:20 -07:00
mtail 5694543d2d Fix menu glitch 2019-06-19 06:45:36 -07:00
mtail d5013d3cd3 Fixes for the archive site. 2019-06-19 05:41:46 -07:00
mtail 099a91ebdd Simplified menu. 2019-06-19 05:00:25 -07:00
mtail df818f5f9b Finally pin down why an error emerged a while ago when building the site. 2019-06-14 20:50:34 -07:00
mtail 94122c6672 Forgot to update the redirect. 2019-05-12 20:02:37 -07:00
mtail 8289d588ed Cleanup redirects 2019-05-10 09:43:14 -07:00
Rigs Caballero e2be3ddf16 Move FAQ to be a top level section. (#4104)
Signed-off-by: rcaballeromx <grca@google.com>
2019-05-07 12:36:02 -07:00
Martin Taillefer 0423e9188a
Theme improvements (#4097)
- If no color theme has been selected, the site now follows the user's system's
color scheme. This only works in Safari right now, but support in Chrome and Firefox
is on its way.

- Fix occasional white flash that would happen when loading pages while using the dark
theme.
2019-05-04 07:03:06 -07:00
Martin Taillefer 652e05159a
Upgrade to Hugo 0.55.5 (#4095) 2019-05-03 21:47:45 -07:00
Martin Taillefer 469667b184
Site improvements (#4049)
- Add missing ARIA annotations on the See Also entry in the right-hand TOC

- Add missing ARIA annotations on the FAQ pages, and switch from a UL to an OL
list for the questions in order to get rid of the bullets.
2019-04-25 20:49:50 -07:00
mtail 24d972fd7a Next batch of archive-related updates. 2019-04-25 19:52:00 -07:00
Martin Taillefer 7e6a81bddc
Site improvements (#4048)
- Remove unnecessary ratio= attributes used with the image shortcode

- Make it so the gloss shortcode doesn't depend on the location of the glossary
within the content tree.

- Make it so the image shortcode understands languages. It will now look in the current
language's content tree, and then callback to the English tree if not found.

- Leverage the above to simplify the Chinese content and remove many absolute references from the
Chinese content to the English content.
2019-04-25 17:20:14 -07:00
mtail 3526c5612c Another change for archive mode. 2019-04-25 14:24:43 -07:00
Martin Taillefer 5ca5a0bfc4
Tune the archive_landing mode. (#4045) 2019-04-25 13:47:30 -07:00
Martin Taillefer 93ee2d86f0
Site improvements (#4043)
- A few small additions that make it possible to build archive.istio.io
directly from here, instead of having a dedicated set of hacks in
the admin-sites repo.
2019-04-25 12:18:14 -07:00
Martin Taillefer 8d5c03b060
Add support to build archive.istio.io's landing page. (#4036) 2019-04-24 16:07:51 -07:00
Martin Taillefer 6487e2f399
Simplify release tracking. (#4018) 2019-04-22 20:32:10 -07:00
Martin Taillefer d458423cf4 Site improvements. (#4015)
- Substantially simplify logic that deals with releases & release notes.

- Make it easier to add a new release to the site. THere are fewer things to
change as the site infra can figure more stuff out on its own.

- Make it so release notes can be added in one language without require them
to be added in the other language.

- Replace the ugly "a new version is available" callout on older release note
pages with a popup that only shows up when you click on the download button.
2019-04-22 09:12:18 -07:00
Martin Taillefer 533a3efc0e
Merge from release-1.1 branch (#4012) 2019-04-20 08:16:09 -07:00
Martin Taillefer 22f520809f
Use server-side redirects instead of alias files for better experience. (#3799) 2019-03-20 09:38:18 -07:00
mtail 3f6e52e399 Site improvements
- Darken the text color of the selected tab in a tab set.

- Remove extra bottom border line in collapsed sidebar panels.

- Cleaned up accessibility annotations for the sidebar.
2019-03-20 07:28:46 -07:00
mtail 78b8cb3e29 Fix a couple bugs when the site is switched to release mode. 2019-03-19 06:21:00 -07:00
Martin Taillefer 2258d0b03b
Improve text blocks. (#3727)
- Add tests for the various text block features.

- Combine text_file and text_dynamic into text_import

- Add support for snippet extraction for text downloaded from a URL

- Add support for formatting output blocks in a different style for
content downloaded from a URL

- Report some errors when unable to fetch content from a URL.

- Fixed a few small bugs along the way.
2019-03-18 06:31:26 -07:00
Martin Taillefer 69830194de
Finish accessibility support in tab sets. (#3720) 2019-03-16 06:55:45 -07:00
Martin Taillefer 2a5108806b
Site improvements. (#3706)
- Added a test suite to test out the different compositions of
site features.

- Substantially improve the composability of site features
(callouts, tabs, text blocks, boilerplates, lists). You can
now more confidentally mix & match these in any combination
and have a pretty good chance it'll render correctly.
2019-03-15 09:53:58 -07:00
mtail 5c1c9ae630 Revert "Site improvements (#3696)"
This reverts commit e1ce0c36
2019-03-14 19:59:48 -07:00
Martin Taillefer e1ce0c3633 Site improvements (#3696)
- Add a test suite for various compositions of site features.

- Substantially improve composition of various site features to eliminate bad
interactions. It's not perfect yet, but it's much better. The one thing still
broken is "a text block inside a warning in a list in a tab". There's still
something funny going on there, but I have some ideas for later.

- Added a new linter check to detect misuse of https://preliminary.istio.io in docs,
and fixed one offending instance.
2019-03-14 17:20:38 -07:00
Martin Taillefer e76ecb4154
1.1 Release notes (#3558)
Note done yet, but need to update the place holder...
2019-03-13 22:30:31 -07:00
Martin Taillefer 1cc06a6e9c
Site improvements (#3677)
- Added call-to-action buttons in the 1.1 announcements. We can use the same
buttons in future release announcements.

- Fixed broken large warning icon on the 404 error page.

- Fix oerder of blog posts in the side bar.

- Add support to not expand @@ notations in text blocks and use
it for a text blocks that's currently triggering a build failure

- Fixed broken rendering of some text blocks when syntax coloring
is turned off via the menu.
2019-03-13 21:53:55 -07:00
Martin Taillefer 0a07eed302
Fix a few bugs in the boilerplate shortcode. (#3652) 2019-03-12 09:56:52 -07:00
Martin Taillefer 1e075ef7cd
Fix broken links (#3636)
- We haven't been checking external links for months now due to a script error
when someone added an option that didn't work as expected. I'm fixing a bunch
of resulting broken links. I can't turn on the link checker yet since there are
some bad links in reference docs which I have to address first.

- Add a bunch of links to yaml files in our code examples using the @@ syntax.
2019-03-11 22:05:18 -07:00
mtail 90eba8afec Fix search URL. 2019-03-11 14:56:08 -07:00
Martin Taillefer fc058032b1
Fix broken callouts. (#3612) 2019-03-10 11:53:09 -07:00
Martin Taillefer b67e5126b4
Fix tab problem. (#3614) 2019-03-10 10:55:57 -07:00
Martin Taillefer 74e7ef56b1
Finish keyboard navigation for header & menu. (#3607) 2019-03-10 07:57:42 -07:00
mtail 373916fcfa Improve accessibility
- Increase the constrast for links, per LightHouse analysis.

- Add support for disabling syntax coloring in example text blocks. This
can be controlled from the menu.
2019-03-09 11:56:32 -08:00
Martin Taillefer 4d20265c5c
Bunch of site improvements. (#3601)
- Work on keyboard navigation support. It's not totally done yet,
but its a lot better than it's ever been.

- Fix incorrect font use for code blocks. They were coming out way
smaller than intended.

- Improve the HTML in a variety of ways to make it better for
screen readers.
2019-03-09 07:31:29 -08:00
mtail 6c91598a01 Fix handling of next {{< text >}} inside of an indented {{< tip >}}. 2019-03-08 15:29:17 -08:00
Dan Ciruli 88113f45cb Reorganized Community page, added calendar, clarified Slack (#3560)
* Reorganized Community page, added calendar, clarified Slack

* Spelling fix.

* Reordered icons

* Fixed linter errors

* Fixed linter errors

* Fixed linter errors
2019-03-07 15:34:35 -08:00
mtail c4ea43e386 Tweak the menu display.
Use animation to bring the menu up, and support the ESC
key to hide it.
2019-03-06 18:18:26 -08:00
Martin Taillefer 360fcb1713
Add support for an advisory string. (#3518) 2019-03-05 14:50:19 -08:00
Martin Taillefer d093f22d0c
Bunch of structural improvements. (#3488)
- Make better use of html semantic elements to help
search & screen readers.

- Add or improve ARIA annotations for accessibility

- Improve print-time formatting.
2019-03-04 07:26:48 -08:00
Martin Taillefer e9e69d0c71
A few formatting fixes. (#3473)
- Reshuffle the floating icons to put the most common thing on top

- In the sidebar, if a card has only top-level items (no subsections)
then move the text to the left to soak up the unused room normally
reserved for the chevron. This improves the look for blog-related cards

- Put a wee bit more spacing between the links in the header on mobile
to make 'em easier to hit with fat fingers.
2019-03-03 08:37:26 -08:00
Martin Taillefer 7bf371365e
Optimize all our SVG files. (#3468) 2019-03-03 08:14:50 -08:00
mtail ec2a9aa05c Fix a few translation strings. 2019-03-02 17:45:53 -08:00
Martin Taillefer 5a9f78e843
Add a fast language switcher button in preliminary mode. (#3464)
Also, when switching languages, the site now stays at the same page if possible.
This should help with translation work.
2019-03-02 17:39:32 -08:00
Martin Taillefer 18ce618eda
Simplify sidebar logic. (#3463) 2019-03-02 14:45:30 -08:00
mtail 73f94a3601 Fixed URL typo. 2019-03-01 15:04:19 -08:00
Martin Taillefer 33193040a1
Open up Slack to the world. (#3457) 2019-03-01 15:02:21 -08:00
Martin Taillefer dd0ecdf9ab
Site improvements (#3430)
- Add linter support to detect internal links to aliases. Those are now flagged as
bad links so the source needs to be updated to point to the real destination,
avoiding the user a redirect.

- Fixed occurences of links to aliases.

- Now only load popper.js on pages that use popups in order to improve
load times.
2019-02-28 13:58:54 -08:00
mtail e8fe89a3b4 Just provide a blank robots.txt file, maybe that'll unblock things. 2019-02-28 03:34:32 -08:00
mtail 5e64720574 Update robots.txt to allow sesrch to work on preliminary.istio.io. 2019-02-28 03:27:55 -08:00
mtail 748fe46dd3 Normalize search result CSS. 2019-02-28 02:20:52 -08:00
mtail c9165b5aa6 JavaScript cleanup.
Consolidate script from the English and Chinese landing pages into one place.
2019-02-28 01:59:19 -08:00
Martin Taillefer bedbc83da6
JavaScript cleanup. (#3427)
- Now that the scripts are loaded with 'defer', no need to trigger all
behavior via a DOMContentLoaded event handler as the scripts will all
naturally run after the DOM has been loaded.

- Use a considerably simpler approach to copy to the clipboard in code
blocks. This saves around 10K of script code believe it or not.
2019-02-28 01:38:52 -08:00
Martin Taillefer c8306acddf
Add an error check for invalid paths in the image shortcode. (#3421) 2019-02-27 15:17:09 -08:00
mtail 8f3a92c419 Improve page load time by better sequencing things. 2019-02-27 07:41:41 -08:00
mtail b0e49a95a9 Adjust the layout of the headline and sidebar a bit. 2019-02-26 21:37:34 -08:00
Martin Taillefer 5ce2285a01
Script cleanup (#3372) 2019-02-25 07:19:06 -08:00
Martin Taillefer 19f40b74b7
Redo theming logic. (#3370)
This all got much simpler, more robust, and faster to load by using
CSS variables.
2019-02-24 11:15:17 -08:00
mtail 8103d1f6e1 Disable the Edit This Page functionality for generated files. 2019-02-23 12:54:27 -08:00
Martin Taillefer 0ef9135a83
Add some buttons in preliminary mode. (#3365)
- We now display an "Edit this Page" and a "Report Bugs" button on every page
when rendering the preliminary mode site.

- Optimized the SVG imagery for smaller size and thus faster download & parsing.
2019-02-23 08:34:21 -08:00
Martin Taillefer 591815c72f
Eliminate the use of bootstrap and jquery. (#3323)
This removes two very large dependencies which ends up making
each page load considerably faster, especially on mobile. Plus,
not using bootstrap actually made several things simpler throughout
the site's logic.
2019-02-21 09:40:10 -08:00
mtail 1131e59d3e Update the vulnerability address. 2019-02-20 14:14:53 -08:00
Martin Taillefer 959da91043
Infrastructure improvements. (#3306)
- Stop using Bootstrap's tab component.

- Improve the formatting of the hesder on mobile.
2019-02-20 06:41:40 -08:00
Martin Taillefer 5e788508a0
Add support for content to be rendered about the auto-generated content in list pages. (#3299) 2019-02-19 12:15:39 -08:00
Martin Taillefer d5a9610fde
Implement custom navbar logic. (#3292)
- Stop using the bootstrap navbar. This new logic is considerably
simpler and gives a much better experience on mobile.
2019-02-19 07:55:45 -08:00
Martin Taillefer 532fe7d365
Add an icon in the title area of glossary term popovers. (#3286) 2019-02-18 13:34:04 -08:00
Martin Taillefer 4fb531c106
Add a sticky effect on the glossary page. (#3283) 2019-02-18 09:10:46 -08:00
Martin Taillefer 2dac7e0ff3
Site infra cleanup. (#3281)
- Refactor script code into smaller more manageable files.

- Use consistent naming style in script code.

- Stop using Bootstrap's dropdowns and popovers in favor of custom implementation.
There are only a few uses of Bootstrap to purge before I can ditch
the dependency on the Bootstrap & JQuery libraries, which will speed
up page loads.

- Find a few more static strings that should come from the xlation
dictionary instead.
2019-02-18 07:35:37 -08:00
mtail 569a4cfde1 A few fixes.
- Fix ordering of the new "Older Notes" entry in the release notes
area to ensure it is always last.

- Fix layout issue with narrow widths clipping a few characters off the left
edge of the page.

- Remove offending href syntax leading to bogus complaints from htmlproofer.
2019-02-15 06:58:41 -08:00
mtail c8e6f0e285 Make switching site versions smarter.
When you select a different version of the site from the gear menu,
we now try to put you on the same page in the other version if that
page exists. If the same page can't be found, then you land at the
root of the other site, like you did before.
2019-02-14 21:34:52 -08:00
Martin Taillefer 0621b6edb7 Move pre-1.0 release notes into a subdirectory. (#3264) 2019-02-14 14:41:24 -08:00
mtail a846186fc3 Eliminate manipulation of styles from JavaScript, only deal with classes. 2019-02-14 11:52:47 -08:00
mtail 3102359979 Simplify theme loading. 2019-02-14 05:52:50 -08:00
mtail 0077232110 Fix style switching problem in the updated JavaScript. 2019-02-13 20:34:17 -08:00
Martin Taillefer 7a81aba0ef
Remove weights on release notes and add publication dates instead. (#3258) 2019-02-13 12:41:52 -08:00
Martin Taillefer 3eba576a89
JavaScript cleanup (#3253)
- Upgrade from UglifyJS to Babel as a JS preprocessor. This lets me use modern ES6 syntax
in the JS code.

- Update JS code to leverage ES6.

- Remove most dependencies on JQuery for faster & smaller code. Once I remove the
dependency on the Bootstrap library, then the dependency on JQuery will also completely
go away.
2019-02-13 10:10:28 -08:00
Martin Taillefer d6b3bfac56
Add support for {{< quote >}} (#3237) 2019-02-12 08:22:28 -08:00
mtail 8da1d3e8bc Update callout icons to be more in-line with our general style. 2019-02-11 21:42:05 -08:00
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