Commit Graph

25 Commits

Author SHA1 Message Date
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
mtail a888849a2e Remove stray debug print. 2019-12-04 12:30:12 -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
mtail 701a9b3541 Change end-of-line character to \n. 2019-12-03 05:44:19 -08:00
Martin Taillefer 81050e0881
Fix bug preventing theme switching from working properly. (#5960) 2019-12-03 05:35:35 -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 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 008db4721b
Fix problems expanding entries in the sidebar, especially on Firefox. (#5831) 2019-11-25 15:06:37 -08:00
Martin Taillefer 4c076b297d
Upgrade tool versions. (#5860) 2019-11-25 14:32:22 -08:00
Martin Taillefer e545c0592d
Simplify introducing a new translation. (#5858)
- Instead of needing to cut & paste code, a new translation
just requires adding the language code to an array.
2019-11-25 12:40:04 -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
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 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 f7dd8c6613
Consolidate release-specific material into the news section. (#5138) 2019-10-15 09:27:11 -07:00
Martin Taillefer 0b12069971 Fix the preformatted block download function on Firefox. (#4999) 2019-09-13 23:09:04 -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
Romain Lenglet 0181a4e05b Update CNI docs (#4398) 2019-06-18 13:52:58 -07:00
mtail 793fe3ae92 Update reference docs.
And delete stale OWNERS files
2019-05-30 11:28:41 -07:00
Martin Taillefer c86583e1f4
Change 'plain text' to plaintext. (#4103) 2019-05-07 09:26:58 -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 94ada19a4b
Site improvements (#4050)
- Fix highlighting of TOC entries in the Chinese version of the site.
I wasn't doing the right escaping to deal with UTF-8 chars.
2019-04-25 22:46:33 -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