Commit Graph

273 Commits

Author SHA1 Message Date
Eric Van Norman d59b390a49
Update lint_site to only check languages for files in current PR (#7133)
* Update lint to only check languages for files in current PR

* Default branch to master if undefined, lint fixes

* Fix @ in Makefile.core.mk

* Add pt-br support to language check

* Review comments

* Apply suggestions from code review

Either BRANCH is specified or a language, else it fails.

Co-Authored-By: Frank Budinsky <frankb@ca.ibm.com>

* Update scripts/lint_site.sh

Co-Authored-By: Frank Budinsky <frankb@ca.ibm.com>

* Update Makefile.core.mk

Co-Authored-By: Frank Budinsky <frankb@ca.ibm.com>

* Don't check languages for lint-fast if no languages are found

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>
2020-04-29 08:18:13 -07:00
Justin Pettit 46d65cef33
lint_site.sh: Don't print error if "public" directory doesn't exist. (#7172) 2020-04-27 13:42:18 -07:00
Frank Budinsky 1fe7056ffa
Partial convert mirror test to new model (#7153)
Reverted the actual mirror test script, because mirror test seems to have some subtle failure when running with what seems to be the exact same commands via snips. Will investigate further in followup PR. Merging this one to get the generator changes.
2020-04-25 12:34:24 -04:00
Travis Clarke a937dec53c
Fix reference docs: galley cmd removed (#7132) 2020-04-23 07:44:01 -07:00
Frank Budinsky a7107678f5
Convert TCP traffic shifting test (#7131)
* Convert TCP traffic shifting test

* lint errors

* regen

* test disable spellcheck

* temporary disable gen-check

* disable inappropriate bash lint errors

* disable gen check

* one more regen

* reenable gen check

* remove -it options

* revert commands

* fix app health check outdated
2020-04-22 18:26:27 -07:00
Xinnan Wen 74550f1bd4
add proxy repo to scrap docs from (#7113)
* add proxy repo to scrap docs

* add new docs

* fix lint
2020-04-21 17:19:54 -07:00
Steven Dake d6e9f4b92b
Retire helm documentation as we use a protobuf (#7106)
* Retire helm documentation as we use a protobuf

The new rendered source of truth is:
https://preliminary.istio.io/docs/reference/config/istio.operator.v1alpha1/

This is rendered from the API repo protobuf which (may) need description fields
set. That protobuf is here:

https://github.com/istio/api/blob/master/operator/v1alpha1/operator.proto

* Follow the flowchart

The flowchart is not quite right and could use some improvement.

* Update content/en/blog/2019/performance-best-practices/index.md

Co-Authored-By: Frank Budinsky <frankb@ca.ibm.com>

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>
2020-04-21 07:55:44 -07:00
Shamsher Ansari c1dd1ceeff
Pass utf-8 encoding as a param to opening md files (#7098) 2020-04-17 07:23:56 -07:00
Frank Budinsky f2cf780bfb
Update doc test README (#7080)
* Update doc test README

* add sh

* tweaks

* formatting

* format

* fix comment

* wording

* convert mtls migration task

* Update tests/README.md

Co-Authored-By: Eric Van Norman <ericvn@us.ibm.com>

* Update tests/README.md

Co-Authored-By: Eric Van Norman <ericvn@us.ibm.com>

Co-authored-by: Eric Van Norman <ericvn@us.ibm.com>
2020-04-15 08:44:18 -07:00
Frank Budinsky 3b59501872
Generate test snippets from md files POC (#7044)
* Generate test snippets from md POC

* fixes

* fix python lint

* fix snip source

* improvements

* update snip calls

* add copyright header

* lint errors

* lint error in md instructions

* better default snip_id

* run test without snippet gen

* gofmt

* fixes

* fix path

* fixes

* fix verify
2020-04-14 07:13:44 -07:00
Frank Budinsky dd1fe5e3bb
Suppress brittle link warnings (#7028)
* Suppress brittle link warnings

* tweak
2020-04-06 09:09:42 -07:00
Frank Budinsky 46876db586
Make site linter more configurable (#7014)
* Make site linter more configurable

* change brittle github links error to warning

* turn off external link checking by default

* update makefile

* fix target lint

* remove cross language link

* better variable name
2020-04-01 14:48:13 -04:00
Eric Van Norman 31d625dc79
Ignore Aporeto.com for now (#7003) 2020-03-30 09:58:50 -04:00
Steven Dake 53b35a13fe
Remove operator yaml experiment (#6985) 2020-03-26 13:46:29 -07:00
Travis Clarke 71a9cd7ef0
Update generated docs (#6870) 2020-03-16 11:47:36 -07:00
Eric Van Norman fc26fca934
Remove KubeCon EU event, fix KubeSphere.io links, ignore 429s. (#6886)
* Remove KubeCon EU event

* Make kubsphere.io link changes

* Ignore 429 return codes on links
2020-03-16 10:19:12 -07:00
Frank Budinsky 8774229973
Cleanup .spelling (lower case istiod not allowed) (#6858)
* Cleanup .spelling

* remove lower case istiod

* add backticks

* remove backticks

* restore backticks
2020-03-11 16:23:03 -04:00
John Howard 1ffb1d8506
Add lint-fast target for local development (#6718)
This takes 30s and runs the spellcheck and some other quick linters.
2020-03-09 12:57:13 -07:00
Martin Taillefer 5bdc5a1cae Fix archive site build. 2020-03-06 19:44:47 -08:00
Martin Taillefer 323f2a67fa
Update generated docs (#6759) 2020-03-05 15:21:03 -08:00
Frank Budinsky 5b6932ad40
v1.5 (#6760) 2020-03-05 16:58:51 -05:00
lei-tang 5f16efe2d0
Remove webhook task from Istio 1.5 documentation (#6515)
* Remove webhook task from Istio 1.5 documentation

* Revision based on review comments

* Add archive.istio.io to url-ignore list
2020-02-21 17:26:06 -08:00
Jason Wang 3e410d2462
Update grab reference docs scripts (#6393)
* Update reference docs for 1.5

* scripts

* rerun update

* update contents

* update contents again
2020-02-06 11:18:59 -08:00
girishranganathan 4c68100797
adding layer5 adapter to the repos (#6376) 2020-01-31 08:02:03 -08:00
Daniel Grimm b0792d4790
Update grab_operator_yamls.sh script to point to istio/istio (#6352) 2020-01-31 08:01:55 -08:00
Jhon Mike 2fc8d01192 Started translation to portuguese brazil (#6230)
* create content pt-br

* create and translate i18n/pt-br.toml

* add pt-br language in config.toml

* update urls with pt-br

* add folder content pt-br on linter

* fix url images

* remove test directory

* remove script blocks index.html

* fix linter errors

* update pt-br with en master

* Update content/pt-br/_index.html
2020-01-07 21:25:08 -05: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 4c076b297d
Upgrade tool versions. (#5860) 2019-11-25 14:32:22 -08:00
Martin Taillefer 1e37f32720 Add instructions for translators. (#5853) 2019-11-25 11:13:39 -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 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
mtail e1f95a7984 Update archiving behavior so that archiving 1.4 and beyond will work. 2019-11-16 12:20:24 -08:00
mtail c5882c540c Remove debug stuff from script. Sorry 'about that. 2019-11-15 17:19:21 -08:00
Martin Taillefer a01547341a
Add a new lint check. (#5744)
- Prevent translated content from declaring aliases against the English content.

- Fix all instances where the above was happening.
2019-11-15 17:13:03 -08:00
mtail adb7ada779 Another archive fix. 2019-11-14 15:27:59 -08:00
mtail 7b63f658ad Archive fix. 2019-11-14 14:42:46 -08:00
Martin Taillefer 48c8a28968
Prepare for 1.5. (#5689) 2019-11-14 13:01:31 -08:00
mtail 9933211fef Preparation before making the release branch. 2019-11-14 11:06:20 -08:00
Martin Ostrowski 136584981d Remove CR from base operator manifest (#5524) 2019-11-08 12:10:52 -08:00
Martin Taillefer 08189f25ef
Update reference docs. (#5392) 2019-11-05 12:03:41 -08:00
Martin Taillefer 3304aceca3
Clean up build logic. (#5380)
- Swap the "build" and "gen" terms used in this repo to match
what we do in other repos. "gen" generates a bunch of files, which
is needed by "build". Unlike other repos, the output of "gen" doesn't
need to be checked in to Git however.

- The clean target now cleans the generated directory.

- Makefile.core.mk now defines SOURCE_BRANCH_NAME that decides which
branch we get reference material from. This makes it much simpler to
switch branches.

- Added the "update_all" target which does all the work needed to pull
in the imported content.
2019-11-05 10:24:45 -08:00
Martin Taillefer 6c3f5d2e85
Workaround for sudden Netlify failures (#5379) 2019-11-05 06:24:57 -08:00
Jimmy Song bcaea11f4c zh-translation: initialize the translation content (#5305)
* zh-translation: initialize the translation content

- Restart the Chinese translation precess, refer to https://github.com/istio/istio.io/issues/5250
- Translation progress is tracked on https://github.com/servicemesher/istio-official-translation
2019-11-02 06:47:26 -07:00
Frank Budinsky c9174678ed
Add oreilly.com to lint exceptions (#5306) 2019-10-31 09:34:59 -04:00
Steven Dake fe2106bc55 Standalone operator update (#5280)
* Staandalone operator update

* remove file before making new operator.yaml

* operator.yaml was already removed.

* Run grab operator once more
2019-10-29 10:10:36 -07:00
Eric Van Norman 1b10a13ea2 Remove demo-auth profile from operator (#5243) 2019-10-25 11:35:47 -04:00
Martin Taillefer e84d07d7f1 Fill in the script to grab example snippets from GCS buckets. (#5242) 2019-10-23 13:35:42 -07:00
Martin Taillefer c2d0793f3f Prevent lint failures for web sites that are timing out. (#5210) 2019-10-20 19:37:36 -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
Lin Sun 402e41d772 modify watch namespace to only Istio-operator (#5183)
* modify watch namespace to only Istio-operator

also start the eval with demo profile first.

* use demo as the first starting point

* update grab script

* add watch ns

* fix lint
2019-10-20 15:00:36 -07:00
Martin Taillefer d6445fc726
Update reference docs. (#5173)
preliminary.istio.io will now display reference material for the release-1.4 branches
of istio/istio, istio/api, and istio/operator.
2019-10-17 11:09:11 -07:00
Steven Dake d5482da0aa A compromise PR of a long original work (#5146)
* A compromise PR of a long original work

See PR: https://github.com/istio/istio.io/pull/5142

Pretty much everything about this PR is compromised...

* Apply reviewer comments.
2019-10-15 09:55:20 -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
Kyle DeFrancia d1cc1c3965 add newrelic-istio-adapter repo to adapter docs (#5053) 2019-09-25 08:51:35 -07:00
Martin Taillefer 5bed8784b9
Update common files. (#5052) 2019-09-25 06:56:54 -07:00
Martin Taillefer d71b114f19
Fixes for the archive site. (#4989) 2019-09-13 08:32:11 -07:00
Martin Taillefer e4d9f90839
Update reference docs. (#4979) 2019-09-12 13:23:39 -07:00
Martin Taillefer fb8b983622 Fix archive build. 2019-09-12 11:52:26 -07:00
Martin Taillefer 82f6ed62db Final prep before creating the 1.3 branch. 2019-09-12 10:12:57 -07:00
Martin Ostrowski d06177b3ee Add operator repo to internal Istio repos (#4955) 2019-09-10 16:09:55 -07:00
Martin Taillefer c4dd5227f5
Replace uses of ``` with {{< text >}} (#4950)
- Add a lint check to prevent further use of ```
2019-09-10 10:55:41 -07:00
Mariam John e9bf06a280 Update tablegen.py to be able to be run as part of the CI system (#4913)
Enable tablegen.py to download the Istio repo for the latest release instead of
relying on one being already installed.

Fixes Bug:#3576
2019-09-09 07:09:44 -07:00
Martin Taillefer d46044856c
Update reference docs. (#4937) 2019-09-07 07:13:42 -07:00
Martin Taillefer 4e9b3a89b3
Add www.mysql.com to the link checking exception list, since it seems to have frequent spurious failures. (#4882) 2019-09-03 09:47:42 -07:00
Martin Taillefer 9cbf4ff46b
Update common files and enable more linters. (#4874) 2019-08-29 20:41:08 -07:00
Eric Van Norman 2d1243292b Path updates (#4869) 2019-08-29 08:57:32 -07:00
Martin Taillefer a48f05a3e9 Update common files (#4870)
- Enable a bunch of linting rules in the repo, and addressed all the linting
errors
2019-08-29 08:09:32 -07:00
Sam Naser dbda0caef4 Fix path in scripts/tablegen.py to reflect content reorg (#4865) 2019-08-29 05:50:34 -07:00
Martin Taillefer 8c74d34ae2
Update reference docs. (#4829)
- This required fixing the script that grabs the reference docs, it had degenerated in the last
few weeks. While I was there, I made the script work using the build-tools container, and fixed
a bunch of shell script linting warnings.
2019-08-26 14:03:41 -07:00
Martin Taillefer a442094083 Avoid redudant module downloads when running nodejs stuff. (#4808) 2019-08-19 02:49:33 -07:00
Steven Dake 060a010576 Docs/minification (#4809)
* Build the website with minification

* Update commonfiles

* Add preset-minify to list of presets
2019-08-16 21:51:31 -07:00
Martin Taillefer 4b21bc14aa
Make sure we spell check all .md files, we have been skipping some. (#4806) 2019-08-16 14:08:14 -07:00
Steven Dake 3c816319b2 Modify build_site.sh to work with new build-tools image (#4801)
* Modify build_site.sh to work with new build-tools image

babel-cli must be used instead of babel.  babel=version6,
babel-cli=version7.  I don't know the details, but make serve
seems to work well enough.

I had to drop a minifier rule. We can reintroduce this rule.

The babel-cli required a reordering of command line args.

* Take 2

* Make netlify work properly
2019-08-15 19:03:48 -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
Martin Taillefer 822958f02a
Update reference docs. (#4771) 2019-08-07 07:08:49 -07:00
Martin Taillefer 5eb4a59a3d Update common files. (#4770) 2019-08-06 14:03:36 -07:00
Martin Taillefer 9cd1368a65
Update reference docs. (#4737) 2019-07-29 10:23:50 -07:00
Mariam John f8f2404d64 Add feature to generate diffs for helm values.yaml file between releases (#4402)
This feature adds the capability to compare changes to the configuration options
in the helm values.yaml files between the current and previous release. This was
included in the 1.1 release but did not get merged. Here is the link to the
original PR: https://github.com/istio/istio.io/pull/3420

Fixes: #4384
2019-07-27 06:20:44 -07:00
Martin Taillefer 76a2b5fab2
Use updated container, now built in the tools repo. (#4722) 2019-07-25 15:55:33 -07:00
Martin Taillefer 22fd781637
Put apporbit.com on the exception list since their site is down. (#4689) 2019-07-19 07:29:59 -07:00
Martin Taillefer 8777efc969
Update reference docs. (#4514) 2019-06-20 12:27:36 -07:00
mtail 527312311f Another fix for archives. 2019-06-19 14:51:39 -07:00
mtail 37cd6fb4b8 Final batch of archive fixes. 2019-06-19 08:51:37 -07:00
mtail 9afdd77866 Another archive script fix. 2019-06-19 07:23:25 -07:00
mtail 9918cc6c96 More archive fixes. 2019-06-19 06:02:19 -07:00
mtail d5013d3cd3 Fixes for the archive site. 2019-06-19 05:41:46 -07:00
mtail 32d03c7729 Prepare for 1.2 branch. 2019-06-18 17:57:29 -07:00
Martin Taillefer 0c936f92f5
Update refefence docs. (#4452) 2019-06-17 12:42:23 -07:00
Martin Taillefer 73c4478315
Update reference docs (#4391) 2019-06-13 10:58:07 -07:00
Martin Taillefer 92b11e66cd Update reference docs (#4389)
Also run the SVG optimizer.
2019-06-13 17:46:51 +00:00
Martin Taillefer 3663043551
Import common files into this repo. (#4246) 2019-05-31 05:01:37 -07:00
mtail 793fe3ae92 Update reference docs.
And delete stale OWNERS files
2019-05-30 11:28:41 -07:00
Martin Taillefer 1efa84d298
Update reference docs. (#4236) 2019-05-28 20:27:52 -07:00
Martin Taillefer 652e05159a
Upgrade to Hugo 0.55.5 (#4095) 2019-05-03 21:47:45 -07:00
Martin Taillefer 2ca67fd5b5
Improve linting (#4083)
- 'make lint' no longer purges the HTMLProofer cache, which considerably improves perf when doing
repeated lints.

- Fix patterns used in lint_site.sh to be more selective in order to avoid linting SVG files and
other such things.
2019-05-01 10:37:38 -07:00
mtail 24d972fd7a Next batch of archive-related updates. 2019-04-25 19:52:00 -07:00
mtail ef9c246951 More work on the archive creation script. 2019-04-25 19:29:28 -07:00