Commit Graph

131 Commits

Author SHA1 Message Date
Martin Taillefer 838cc6c1d7 Fix missing script file. 2020-03-11 19:46:03 -07:00
mtail 8482359213 Another script update. 2019-04-25 13:05:21 -07:00
mtail 2ee04f4d25 Script update for archive builds. 2019-04-25 13:01:24 -07:00
mtail dd6e61fc94 Add old Jekyll-based archives. 2019-04-25 12:30:48 -07:00
Martin Taillefer edfbb9cc93
Support for building archive.istio.io (#4044)
* Add support to build archive.istio.io's landing page. (#4036)

(cherry picked from commit 8d5c03b060)

* Site improvements

- 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.

(cherry picked from commit fb67031c07)
2019-04-25 12:29:21 -07:00
Martin Taillefer 554e6ae904 Use server-side redirects instead of alias files for better experience. (#3799)
(cherry picked from commit 22f520809f)
2019-04-22 09:48:30 -07:00
Martin Taillefer 942c4e66d7 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.

(cherry picked from commit d458423cf4)
2019-04-22 09:46:35 -07:00
Martin Taillefer ce3b8f1d21
Update reference docs. (#3971)
Adds the Skywalking adapter docs.
2019-04-09 10:26:21 -07:00
Martin Taillefer c31a8fdefd Site improvements (#3928)
- Added the text_hack shortcode to embed text blocks in a tabset in a list. This fixes the
indenting problem in that case. It's a hack, thus the name, but it works.

- Added a download button in the footer of each page.

- Tweaked the rendering of the horizontal lines in the panels on the home page to
improve appearance and avoid occasional funny rendering.

- Run the SVG optimizer on the site content to reduce the size of a few newly added/updated
files.
2019-04-03 10:26:46 -07:00
mtail ba0fb5cda9 Port scripts to TypeScript.
- Port all the JavaScript to TypeScript. Finally, a typed language to
eliminate a whole class of avoidable errors. This ends up being a line-
by-line affair, mostly about adding type information on functions and
some function calls. This also involved adding quite a few null checks
(since TypeScript tracks nullness). This results in the code being
inherently more robust in the face of somehow malformed HTML which
doesn't contain what the script code is expecting to find.

- Ditch the recently added JSHint linter in favor of tslint.
2019-03-31 21:16:16 -07:00
Martin Taillefer 5affd1fc9b
Add linting for our JavaScript. (#3903)
Fix a few uncovered linters issues snd a real functional bug.
2019-03-30 21:34:22 -07:00
Martin Taillefer c312a1a520
Enable linting of SASS files. (#3902)
- Fixes a bunch of trivial lint issues so the linter can be
turned on.
2019-03-30 20:12:15 -07:00
Martin Taillefer 0880b7450d
Fix a bunch of lint-related errors. (#3897) 2019-03-29 22:04:29 -07:00
Martin Taillefer 6cd5b7d468
Site fixes. (#3834)
- Implement missing keyboard support in the sidebar.

- Fix keyboard logic in tabs, preventing the strip from being
navigated into.

- Fix keyboard navigation to the print/download/copy buttons in text blocks.
When using the keyboard, those buttons didn't become visible.

- Use common code for menu, tabset, and sidebar navigation logic.

- Fix menu width to use font-size scaling instead of a fixed pixel with.
Also made the menu a bit wider to avoid unsightly wrapping in the menu.

- Set a minimum width for text boxes in order to avoid the print/download/copy
buttons from rendering poorly.
2019-03-23 07:19:24 -07:00
Vincent 817fe0ef5f zh: /docs/setup/kubernetes/additional-setup/config-profiles/index.md (#3807)
* zh: /docs/setup/kubernetes/additional-setup/config-profiles/index.md

* fixed: link to en

* removed empty lines

* fixed: ignore istio.io/edit/ from lint_site.sh
2019-03-22 09:31:42 -07:00
mtail 732f8a9bcd Switch this script to bash to eliminate a Netlify error. 2019-03-19 17:06:41 -07:00
Mariam John b7246ffd43 Fix missing whitespace on Installation Options (#3762)
Fixes Bug: #3740
2019-03-19 08:40:35 -04:00
Martin Taillefer b322ba16c2
Add test files for text block tests. (#3726) 2019-03-17 08:22:03 -07:00
Martin Taillefer 69830194de
Finish accessibility support in tab sets. (#3720) 2019-03-16 06:55:45 -07:00
Mariam John 9169ad192f Parse comments for configuration options (#3701)
Read comments from the parsed values.yaml and store them in the description field.

Fixes Bug: #2566
2019-03-15 15:39:38 -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 5cf1f7d7ab
Reenable link checking. (#3664) 2019-03-13 09:44:16 -07:00
Mariam John 9255c72fe3 Escape pipe symbol if it appears in the configuration options (#3627)
Fix for invalid values in Installation Options table (#3618)
2019-03-11 13:07:42 -07:00
Mariam John 34a2b7a2b9 Regenerate install options page for release-1.1 (#3592) 2019-03-08 16:15:23 -05:00
flydragon ca34f26c69 Spelling (#3487)
* zh: content/docs/setup/kubernetes/platformsetup/minikube

update

Signed-off-by: ylf <1045438139@qq.com>

* spelling

fix spelling errors in kubernetes install minimal

Signed-off-by: ylf <1045438139@qq.com>

* zh: content_zh/spelling

Fix the configuration item of Chinese check. The current configuration item is wrong.

* zh: content_zh/spelling

Fix the configuration item of Chinese check. The current configuration item is wrong.

* spelling

fix spelling errors in kubernetes install minimal

Signed-off-by: ylf <1045438139@qq.com>

* spelling

fix spelling errors in kubernetes install minimal

Signed-off-by: ylf <1045438139@qq.com>

* spelling

fix spelling errors in kubernetes install minimal

Signed-off-by: ylf <1045438139@qq.com>
2019-03-05 07:50:33 -08:00
Martin Taillefer 7bf371365e
Optimize all our SVG files. (#3468) 2019-03-03 08:14:50 -08:00
Martin Taillefer 6db37da6a1
Add the svgo tool to the docker image. (#3466) 2019-03-03 07:21:07 -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 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
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 3f3f3f5353
Add a new link check to prevent links to specific lines in GitHub files. (#3387) 2019-02-26 06:53:57 -08:00
Martin Taillefer 8a0b90baab
Update reference docs. (#3383) 2019-02-25 21:14:18 -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
Martin Taillefer f345007ca3
Add do not edit warnings to auto-generated files. (#3366) 2019-02-23 12:21:43 -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 6d57493a14
Enable blockquote lint check. (#3295) 2019-02-19 09:49:44 -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
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 6fbbc5525d
Update to Hugo 0.54 (#3242) 2019-02-12 19:25:03 -08:00
Martin Taillefer d6b3bfac56
Add support for {{< quote >}} (#3237) 2019-02-12 08:22:28 -08:00
Martin Taillefer e9112e7a65
More style cleanup. (#3230) 2019-02-11 21:07:03 -08:00
Martin Taillefer b3db41da99
Added more lint rules and fix offenders (#3227)
- Ensure that references to GitHub content use the proper annotations so
we get links to the correct branches.

- Added a check to make sure content is not using blockquotes (instead of
{{< warning >}}, {{< tip >}}, and {{< idea >}}. This check is currently
disabled, pending the Chinese content being updated.

- Fix a few violations of these new checks.
2019-02-11 12:49:47 -08:00
Martin Taillefer 2434af7761
Update reference docs. (#3204) 2019-02-06 20:39:46 -08:00
Mariam John 149f9ddfbc Update tablegen.py to update the installation option table for 1.1 (#3188)
Updated tablegen.py to process the configuration options from the values.yaml
files under /istio/install/kubernetes/heml/subcharts directory and the
remaining configuration options like global, istiocoredns, istio_cni from
values.yaml under /istio/install/kubernetes/helm/istio directory.
2019-02-04 09:58:52 -05:00
Vincent 4fd40a24c7 New option: Let linter ignore the external links (#3046)
* let linter ignore the external links

* fixed: typo
2019-01-07 09:58:44 -08:00
Kevin Simper e5e8875a5e Allow the site static content to be built on netlify (#3015) 2019-01-03 07:49:44 -08:00
Martin Taillefer 8fd070d4ca Fix CI failures. (#2989)
This includes updating to the latest reference docs from the 1.1 branches.
2018-12-17 15:05:38 -08:00