Commit Graph

129 Commits

Author SHA1 Message Date
Vadim Eisenberg bb22b22308 Use kubectl with EOF instead of cat with pipe (#2620)
* handle kubectl create/apply -f - <<EOF

in the same way as "cat <<EOF | kubectl apply -f -"

* replace cat <<EOF | kubectl apply/create -f - with kubectl apply/create -f - <<EOF
2018-09-15 14:37:23 -07:00
Martin Taillefer 9f187ee64f Improve the release note link shortcode. (#2597)
- When displaying a "Changes" button, we now display a diff from the previous patch to the current
patch, instead of a diff from the base release to the current patch.

- Properly localize the release note buttons so these can be translated.
2018-09-12 10:47:45 -07:00
mtail 7032ed4904 Fix search.
I messed up the use of search engine ids.
2018-09-08 07:37:04 -07:00
Martin Taillefer cb58e4539e
Site improvements (#2555)
- Move some strings from the footer to the translation table so they can be translated.

- Use a custom search engine for the preliminary site, so the preliminary site can actually be searched.

- Improve a few shortcodes to improve how they work when nested in tabs.

- Move a few constants out of the layouts and into args.yml for cleanliness.
2018-09-07 09:38:40 -07:00
Martin Taillefer 815aaaa72e
Finish implementing tab support. (#2492)
- Support cookies. Tab setting are now remembered across page visits. Set it, and forget it.

- Fix problems with nested text blocks.
2018-09-01 08:59:39 -07:00
Martin Taillefer 99be6fd164
Add support for tabbed content. (#2484) 2018-08-31 08:13:21 -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
Martin Taillefer 2796aca4ac
Add download, diff, and docs links to release notes. (#2441) 2018-08-28 13:07:27 -07:00
Martin Taillefer 7c34e8aaa1
Add 'Customers' and 'Partners' pages (#2266) 2018-08-27 07:27:38 -07:00
Martin Taillefer 94ccb1b08e
Fix mentions of specific releases (#2379)
- Remove the release-specific wording on the main release note page and on the docs page. This
ends up being hard to keep correct and not really useful.

- Add a full_version variable in args.yml which contains the 3 part release version
such as 1.0.1. When we release a new patch, we need to update this number in the current
release branch.

- Apply the full_version variable to the download button on the home page. It will now say "DOWNLOAD 1.0.1".
2018-08-25 05:59:39 -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
mtail 8db4fc5047 Fix $cat scanning to be more leniant 2018-07-12 16:45:41 -07:00
mtail 4bba186b81 Special case empty @@ in code blocks to be NOPs. 2018-07-10 12:15:21 -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
Martin Taillefer 072abae8ce
Improve name selection process for the new PRE block download feature. (#1693)
- If an explicit downloadas filename is not supplied in markdown, it is
now derived from the document title, with a proper extension based on the
content syntax.

- Made things work correctly for PRE blocks introduced with normal markdown
``` instead of our magic {{< text >}} sequences.
2018-07-06 18:59:46 -07:00
Martin Taillefer 69c04f6401
Create hidden links for the special @@ references. (#1686)
This gives us link checking for the @@ code block references.
2018-07-06 07:31:31 -07:00
Martin Taillefer 512fdb5b61
Add download & print buttons to all PRE blocks. (#1680)
Also, replaced the text in the Copy button with an icon instead.
2018-07-06 05:30:35 -07:00
Martin Taillefer 07ed229051
Simplify linking to GitHub content. (#1669)
- Add <github_file> <github_blob> and <github_tree> to make it simpler to link to the right
place on GitHub.

- Use these new sequences throughout the docs.

- Also, fix bad HTML generated for the TOC in certain cirsumstances.

- Fix extra blank line inserted at the bottom of indented code blocks.
2018-07-04 04:16:49 -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
Martin Taillefer d818d4713b
A few rendering fixes. (#1626)
- Workaround the fact some of the styles for code blocks were being overriden by
Bootstrap.

- Align table indent and code indent so things look nicer.

- Fix missing "sidebar button" when on mobile in the help and about sections. I forgot to set a
variable to trigger the thing to be present in those cases.

- Improve footer layout for mobile.

- Get a nicer looking light bulb icon.
2018-06-29 06:52:07 -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
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
Martin Taillefer 1dcd301bd6
Introduce better linking support to github.com/istio/istio (#1443)
- Within a code block, you can now surround a relative file path with @@. This will
cause the path to be rendered as a link to raw.githubusercontent.com/istio/istio/<path>.
This lets the user click on the link to see the content of the file, which is mighty
handy.

- Updated all code blocks to take advantage of the above.

- Introduce support for {{< branch_name >}} which returns the source code branch
name associated with the current doc site.

- Use {{< branch_name >}} in all our references to content in istio/istio on GitHub. This thus
pins our references to the correct version of the content in GitHub. This prevents errors from
gradually appearing in our doc set as content in GitHub starts to diverge from the expectation
in the site content.
2018-06-06 08:21:18 -07:00
mtail a74010e01e Fix some out of date front-matter. 2018-06-01 10:58:38 -07:00
mtail 61a4a6a2ec Another experiment for image links. 2018-05-31 12:16:35 -07:00
mtail da42e92238 Turn image URls into absolute references so they work consistently with page URLS with or without a trailing / 2018-05-31 10:32:50 -07:00
mtail 76545ee3be Fix a few formatting problems with the rate limiting doc.
(cherry picked from commit f66eddc)
2018-05-31 07:42:35 -07:00
Martin Taillefer d0f8fddfbf
Cleanup (#1363)
- Remove some leftover toc:false front matter from a few pages. The site now generally
figures out automatically that a TOC is not necessary.

- Enable a Hugo feature that queries Git for a last modified date on files. As a result,
instead of having the site build date in the footer, we now have a "this page was last modified"
date.

- Move the landing page's content out of the layouts directory and into the content directory
where it belongs.

- Use Hugo shortcodes for our embedded icon imagery. And make those icons scale with the
font size rather than being fixed sizes.

- Enable support for emojis in our content. Just use 
and you'll get a sailboat for example.
2018-05-26 08:28:14 -07:00
mtail 951a8ed9f4 Switch from Jekyll to Hugo. 2018-05-25 20:02:32 -07:00