Commit Graph

309 Commits

Author SHA1 Message Date
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
Martin Taillefer f17a5d2e79
Fix a bunch of absolute links that should have been relative. (#2933)
- Added a linter rule to prevent further occurances.
2018-11-30 06:41:56 -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 1d8f547826
Update to Hugo 0.51 (#2921) 2018-11-26 16:51:25 -08:00
Martin Taillefer 7c791bfc44 Add trulia.com to our exception list, since it is causing a lot of false positive lint failures. (#2864) 2018-11-12 13:44:00 -08:00
Andy Lai d478874e98 Remove static charts. (#2842)
Now that they are built along with daily releases and they can be found
in
https://gcsweb.istio.io/gcs/istio-prerelease/daily-build/master-latest-daily/charts/ for master
or https://gcsweb.istio.io/gcs/istio-prerelease/daily-build/release-1.1-latest-daily/charts/ for release-1.1.
2018-11-06 05:56:48 -08:00
Tim Swanson 2a82133d2d grab_charts.sh: Fix istio/cni repo location and helm repo add for istio/istio helm dependencies (#2827) 2018-11-01 07:16:20 -07:00
Tim Swanson 158bfa1d05 Update grab_charts for istio-cni chart. (#2777)
* Update grab_charts for istio-cni chart.

* grab_charts: Fix helm package to upgrade
2018-10-17 09:44:04 -07:00
mtail 1d312e2e84 Should have been in prior checkin 2018-10-08 22:37:00 -07:00
Martin Taillefer 28900ad96c
Improve spell checking command so we get colorized output. (#2752) 2018-10-08 22:31:10 -07:00
Martin Taillefer f902b3132e
Update to Hugo 0.49 (#2746) 2018-10-05 23:35:11 -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 3acfe3fe40
Replace references from istio.github.io to istio.io (#2686) 2018-09-25 12:13:38 -07:00
Venil Noronha 8ce1a5b739 Add Wavefront by VMware to adapters list (#2685)
Signed-off-by: Venil Noronha <veniln@vmware.com>
2018-09-25 14:43:38 -04: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
Zadkiel d23fbe9488 Grab charts and create helm repository (#2616) 2018-09-15 07:45:20 -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
Steven Dake 404294c332 Fixes: #2136 (#2399)
* Fixes: #2136

This is a first take at a table-creating tablegen that categorizes
the output of tablegen.py.  Still needed is the actual text that
goes in the description field.

* Address review comments
2018-08-27 12:14:31 -07:00
Xi Ning Wang 4513d8978e Update grab_reference_docs.sh (#2301) 2018-08-19 12:09:07 -07:00
Jimmy Song 91d2481bc5 Delete special chars and turn on HTML checking (#2292)
* Delete special chars and turn on HTML checking

- Refer to #2289 and issue #2290
- Delete the special chars in Chinese content
- Turn on HTML checking to highlight problems

* delete the redundant period
2018-08-19 07:42:20 -07:00
Martin Taillefer be7c374f29
Switch to Hugo 0.47 (#2288)
- Fixes the bug where not all of our files would get the right lastmod
time extracted from GitHub.

- Fixes most of the cases of bad HTML output around the use of {{<text>}}. There's
still a single bad case which I'll report to the Hugo folks.

- Use Hugo's new --minify option to minify HTML instead of having to use the
separate and slow html-minifier program.

- Fix some bad HTML on the landing page.
2018-08-17 22:33:16 -07:00
mtail a1c4aad23f Update reference docs.
This includes a revamp of the grab_reference_docs script to make
it easier to maintain and extend to different sources of docs.
2018-08-16 12:14:27 -07:00
Jimmy Song 0b2ea1d38e Enable extra lint stuff (#2158) 2018-08-06 09:43:31 -07:00
mtail 4424563918 Flip conditional polarity to remove useless work when linting. 2018-08-06 06:56:46 -07:00
Martin Taillefer fd290dc73e
Improve linting (#2148)
- We now detect text blocks that are incorrectly indented.

- We now detect image captions that end in a period.

- We now detect page descriptions that don't end in a period.

- CircleCi now runs linting without minifying HTML first, improving perf and
improving error output.

- In CircleCi, we now have a per-build cache for HTML proofer output. This
helps reduce the frequency of link timeout errors.

- Fix errors flagged by the above new lint checks.
2018-08-04 08:44:06 -07:00
Steven Dake b3fa64fa41 Fix generated tablegen.py (needs backport) (#2084)
Original table was dreadfully wrong.
2018-07-31 04:49:16 -07:00
Jimmy Song 0492530216 Fix Chinese spelling errors (#2044)
* Chinese: about/contribute/github/index.md

- translate working with GitHub
- translate contributing to docs index

* Chinese: add two indexes for policy and telemetry

- add policy and telemetry index
- add adapters index

* modify translation

* Fix Chinese spelling errors

- enable Chinese spelling checks
- fix spelling errors
- refer to #2038
2018-07-30 04:34:54 -07:00
Martin Taillefer 1c300c99bd
Spelling improvements (#2037)
Remove a bunch of entries that shouldn't have been in the spelling dictionary
and correct content aoocrdingly.

I'm disabling the Chinese spell checking for now, since I'm not able to fix the
spelling errors that emerged there. Once this PR is in, I'll file an issue to get
those spelling errors addressed and checking reenabled.
2018-07-29 14:27:06 -07:00
Martin Taillefer 04cc4a3d84
Start populating the ops guide. (#1994) 2018-07-26 15:05:23 -07:00
mtail 3dee29d873 Fix a linting error. 2018-07-23 17:27:29 -07:00
Martin Taillefer 5527dcbaf6
Switch uses of funny quotation marks to plain ones. (#1914)
- Use only standard quotation marks to avoid cut & paste stuff not working

- Put in a lint rule to prevent further use of non-plain quotation marks.
2018-07-22 08:48:03 -07:00
Yossi Mesika 0ea541d13f Move Helm customization section to the references category (#1699) 2018-07-16 21:46:52 -07:00
Martin Taillefer 597f7ce3b4
Enable more linting rules (#1824)
Fix feported linting errors.
2018-07-15 07:49:11 -07:00
Martin Taillefer a1b483a7f2
Update to latest Hugo (#1821) 2018-07-14 06:32:22 -07:00
Martin Taillefer 72f6f1353f
Update reference docs. (#1812) 2018-07-13 15:00:52 -07:00
Martin Taillefer f4a0656ab1 Add a lint check for incorrectly indented code blocks. (#1800)
Fixed a problem reported by the link check.
2018-07-13 07:26:36 -07:00
mtail 95ea76c737 Update reference docs. 2018-07-09 14:49:30 -07:00
Martin Taillefer 3d511f5a70
Various site fixes. (#1701)
- Prevent See Also sections from showing up on index pages.

- Clean up and simplify some JavaScript & CSS.

- Set a height for the idea and warning icons in order to prevent
screen flicker when loading pages with these icons.
2018-07-08 17:12:12 -07:00
Steven Dake 9765bf65ca Generate Helm config options from values.md (#1694) 2018-07-06 07:12:12 -07:00
Martin Taillefer 0541000be8
Switch from ``` to {{< text >}} to indicate text blocks. (#1644)
This fixes a number of cases of incorrect formatting of code blocks
throughout the site.
2018-06-30 07:11:21 -07:00
mtail 843bef8ddb Update reference docs. 2018-06-29 17:42:41 -07:00
mtail fa0a3fe408 Turn htmlproofer back on. 2018-06-28 07:53:34 -07:00
Martin Taillefer 5a1b090fbc
Improve handling for code blocks (#1580)
- Add the {{< text >}} shortcode as a way to declare code blocks. This shortcode
is intended to hide the subtleties around code blocks. More specifically, it
provides a transparent workaround for the Hugo bug around converting indented
code blocks with lines starting with dashes. It also deals with the special
formatting case we have around command-lines that start with `cat <<EOF`.

- Rename the {{< file_content >}} shortcode to {{< text_file >}} and the
{{< fetch_content >}} shortcode to {{< text_dynamic >}} for consistency in naming.
2018-06-28 06:29:27 -07:00
mtail 5cd535e05a Final round of file renames. 2018-06-27 07:21:21 -07:00
mtail 5296742475 First pass at refactoring file locations.
This also reenables html proofing, which I accidentally left
off in an earlier commit.
2018-06-26 23:29:47 -07:00
Martin Taillefer ac1cbc7730
Improve linting script (#1582)
- Add useful error messages so people can self-serve when they get linting errors.

- Run all linters even if one fails. This gives you all the linting errors in one shot.
2018-06-25 06:46:47 -07:00
Martin Taillefer 8c0cb431ce
Add support for snippets and file content insertion. (#1567)
- You can now use {{< file_content >}} to pull in files from the doc repo
into generated documentation. If you include the `snippet` attribute, you can
pull in only pieces of the file instead. This makes it possible to annotate
scripts and yaml files and extract those annotated bits and pieces into the
docs. This should let us have fully tested examples which are then incorporated
into the docs

- The previous {{< file_content >}} feature that lets you dynamically pull
content from a URL has been renamed to {{< fetch_content >}} instead.
2018-06-21 09:56:22 -07:00
Jason Young e0d5cee035 update galley references docs to istio.io (#1556) 2018-06-20 06:24:57 -07:00
Jason Young 5a25251d28 make reference generation work with golang vendor directory (#1557) 2018-06-19 16:50:54 -07:00
Jimmy Song b9f7174e2b quick start doc translation (#1523)
* quick start doc translation

* fix the markdown style

* enable Chinese spell checker
2018-06-18 06:08:12 -07:00
Martin Taillefer 5ce2c7bb2d
Bunch 'o fixes (#1529)
- Make "make serve" actually work.

- Eliminate superfluous "scroll left nav into view" button on screens that don't have a sidebar
(community & search result). Only matters on mobile.

- Fix unpleasant wrapping in the footer when on mobile.
2018-06-15 20:38:36 -07:00
Martin Taillefer 857f86abad
Update Makefile for simplified Netlify scheme. (#1525) 2018-06-15 17:02:08 -07:00
mtail f8a5265efa Get all the bits in place to do docker-based build, generation, linting, and serving of the site. 2018-06-15 15:51:04 -07:00
mtail 75b550307c Update reference docs. 2018-06-12 11:34:01 -07:00
mtail 5bfc6bafea Update reference docs 2018-06-11 22:29:34 -07:00
Martin Taillefer 80d948d44c
Update reference docs. (#1385) 2018-05-30 10:32:00 -07:00
mtail 951a8ed9f4 Switch from Jekyll to Hugo. 2018-05-25 20:02:32 -07:00
mtail 401989fba6 Shuffle content around for the Hugo migration. 2018-05-25 19:27:39 -07:00
Martin Taillefer 3aaa9653d6
Make spell checking and style checking part of our doc checkin gate. (#1154) 2018-04-05 10:31:50 -07:00
mtail 7acb463af4 Finish fixing remaining lint errors 2018-04-05 07:47:20 -07:00
Martin Taillefer a6fae1b368
Setup for linting markdown files. (#1147)
- linters.sh will run spell-checking and a style checker on
markdown files.

- Fix a whole bunch of typos and bad markdown content throughout. There are many more fixes
to come before we can enable the linters as a checkin gate, but this takes care of a majority
of items. More to come later.
2018-04-04 22:22:14 -07:00
mtail 054ce6164c Update reference docs. 2018-03-26 22:02:39 -07:00
Martin Taillefer 3285d62b97
Delete some old stuff we don't need anymore.
* Delete some old stuff we don't need anymore.

* Fix problem preventing proper section indices in the "About" section of the site.
2018-03-26 15:38:03 -07:00
mtail 3f07330cc8 Update reference docs. 2018-03-20 13:20:37 -07:00
Jason Young aacdcfc159 update document generation for istioctl (#1047) 2018-03-02 17:29:59 -08:00
Martin Taillefer 8ec8e250da
Update reference docs. (#942)
* Update reference docs.

- We now replace instances of https://istio.io with {{site.baseurl}} in imported
reference docs such that the generated site will work properly for staging and for
archive.istio.io

* Fix a bad link.
2018-02-06 20:48:33 -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
Shriram Rajagopalan 9a0cdae6a9
fix v1alpha2 docs (#919)
* doc fix

* nit
2018-02-01 16:23:48 -05:00
Martin Taillefer 5291eb1682
Update CLI docs and create reproducible process to update these docs. (#916) 2018-02-01 09:33:56 -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
Laurent Demailly b300210e82
Update script header to indicate the new location (#841)
* Update script header to indicate the new location

* Typo
2018-01-05 15:37:43 -08:00
Yang Guan e6fe749a2c Document CLI options for istio_ca (#441)
* Generate documentation for istio_ca

* linter
2017-09-12 16:38:13 -07:00
Laurent Demailly 301d8407c0 Fixing bug : we were pushing the previous build (#408)
Had to run it twice to make it work: fixing

Need to move _site after the build, not before
2017-07-11 15:29:34 -07:00
Laurent Demailly 4eff4773bf Typo fix + updated gitignore + grafana url fix (#405)
Typo fix + updated gitignore + grafana url fix
2017-07-10 15:20:45 -07:00
mandarjog 61d0bce7df versioned docs: add build scripts to be driven thru jenkins (#368)
* add build scripts to be driven thru jenkins

* uniformly handle site.baseurl

* data-src should use full paths for now

* update build with version tag

* Add explanation re: CORS

* remove gitmodules
2017-06-12 09:23:11 -07:00
Jason Young e671aa6e02 Refresh auto-generated command line reference docs (#141)
* refresh command tool docs

* use relative paths in auto-generated docs

* fix links

* hide --istioNamespace and remove links to avoid future maintenance burden

* review comments
2017-05-09 18:15:03 -04:00
Zack 4fa6a66361 Rename the mixer CLI markdown generation script, update it to generate istioctl reference docs as a single file too. (#112) 2017-05-04 11:41:59 -07:00
Zack 32119f89a9 Automate generation of mixer CLI collateral docs (#99)
* Automate generation of mixer CLI collateral docs

* SEE ALSO -> See Also
2017-05-02 15:11:18 -07:00
Martin Taillefer e0b9750ee4 Elimintate the need for the bodyclass: front matter field in docs. 2017-04-30 06:42:29 -07:00
Jason Young 98f1d119a4 update istioctl docs auto-generation script (#79)
* update istioctl docs auto-generation script

* istioctl: fix example usage formatting
2017-04-28 13:32:33 -07:00
Jason Young b45f1b4485 Auto-generate reference documentation for istioctl. (#67)
* wip - auto-generate istioctl reference

* address review comments
2017-04-27 10:31:58 -07:00