Commit Graph

336 Commits (136bdad0d4a00c296da6ca72baa09731aba729c7)

Author SHA1 Message Date
Karen Bradshaw 0898f1ccfc clean up analytics in footer 2020-08-12 19:00:55 -04:00
Tim Bannister c105f1a03a Fix glossary definition shortcode
Fix a bug rendering short glossary definitions. Also, add an example
of a short glossary definition to the style guide.
2020-08-11 22:41:42 +01:00
Karen Bradshaw 88856e6c01 modify layout of codenew shortcode 2020-08-11 09:58:12 -04:00
Rémy Léone 7258a8dfb6 Add a search JSON-LD meta description
Co-Authored-By: Tim Bannister <tim@scalefactory.com>
2020-08-10 09:34:56 +02:00
Brian Pursley 7bc5ee0710 Preserve relative path when switching between versions of the documentation 2020-08-09 10:41:36 -04:00
Kubernetes Prow Robot 91494d2e3c
Merge pull request #22579 from tengqm/disable-analytics-in-non-production
Disable analytics for non-production environment
2020-08-01 16:43:40 -07:00
Kubernetes Prow Robot 7713f1c16f
Merge pull request #22440 from sftim/20200709_link_to_alternative_translations
Add machine-readable hyperlinks to alternative translations
2020-07-30 14:41:06 -07:00
Tim Bannister 90b85c7a5e Automatically detect MermaidJS shortcode
Rather than requiring metadata set in a page's front matter,
automatically detect when detect when a page relies on MermaidJS.
2020-07-27 17:37:47 +01:00
Kubernetes Prow Robot 98fbbed9e2
Merge pull request #22673 from shuuji3/en/fix-glossary-definition-shortcodes-bug
Fix a bug of shortcode 'glossary_definition' which selects a wrong term
2020-07-26 20:48:16 -07:00
TAKAHASHI Shuuji 97b22f9fbe Fix a bug of shortcode 'glossary_definition' which selects a wrong term. 2020-07-24 01:43:34 +09:00
Celeste Horgan 7cd2327f87 Remove shortcodes in favor of layout partials
Signed-off-by: Celeste Horgan <celeste@cncf.io>
2020-07-23 09:31:51 -07:00
TAKAHASHI Shuuji 130822d3d6 Clean up case study images. 2020-07-22 14:24:04 +09:00
Qiming Teng bf11d5a744 Disable analytics for non-production environment
The analytics code/link is not always working. It takes about 33 seconds
to fail when building local sites for testing, and that is terrible.

This PR disables the analytics in non-production environment, so local
build starts up in seconds!
2020-07-18 21:27:57 +08:00
Qiming Teng 026989d5c5 Fix language selector issue
The language selector is not working. We are getting ERR_CONNECTION_CLOSED
when fetching jquery-3.3.1.min.js from code.jquery.com. The failure of
jquery is breaking other scripts such as jquery-ui-1.12.1.min.js,
script.js, bootstrap.min.js etc.

This PR changes the head partial to use cached version of
jquery-3.3.1.min.js in hope we fix the language selector issue and
possibly other relate problems.
2020-07-18 20:12:31 +08:00
Kubernetes Prow Robot 1943aaafd6
Merge pull request #22311 from sabazubair/remove-anchor.js
Remove /static/js/anchor-4.1.1-min.js
2020-07-15 18:58:35 -07:00
Kubernetes Prow Robot e5be21ef4d
Merge pull request #22283 from thekad/issue-22044
Removing duplicate custom-jekyll js
2020-07-14 09:55:21 -07:00
Karen Bradshaw 28e42c0f4a format search-input.html 2020-07-13 17:15:39 -04:00
Tim Bannister 847f57ecf5 Fix whitespace trimming for note callout shortcode
Use the same whitespace trimming that the other callout shortcodes
(warning, caution) use, and avoid excessive newline removal.
2020-07-13 19:17:07 +01:00
Tim Bannister b59f68e857 Hyperlink to alternative translations 2020-07-09 13:31:25 +01:00
Celeste Horgan 37b1f94fe4 Revert T "version_menu" 2020-07-08 09:48:16 -07:00
Celeste Horgan f9e2439e56 Include scripts.html in case studies template 2020-07-07 17:50:20 -07:00
Celeste Horgan 086e8a60f2 Use bootstrap right alignment 2020-07-07 17:50:20 -07:00
Kubernetes Prow Robot 36578f4c9e
Merge pull request #22310 from shuuji3/make-versions-translatable-in-navbar
Make "Versions" string on the navbar translatable
2020-07-04 10:26:48 -07:00
Kubernetes Prow Robot 4c19ec60a1
Merge pull request #22175 from sftim/20200629_remove_capture_shortcodes
Remove capture shortcodes & warn on future use.
2020-07-04 05:30:48 -07:00
Tim Bannister 325ba8754a Warn on use of capture shortcode
If anyone uses the capture shortcode, emit a warning. The website
no longer uses capture shortcodes.
2020-07-04 11:11:29 +01:00
TAKAHASHI Shuuji a15b40604c Make "Versions" string on the navbar translatable. 2020-07-04 12:22:01 +09:00
Saba Zubair 9aad658f6a removed anchor-4.1.1-min.js file from static/js/anchor-4.1.1 and the corresponding call in /layouts/partial/head.html#L77. This completes #22040 and serves as my first contribution to an OS project. 🎉 2020-07-03 21:12:27 -04:00
Jorge Gallegos f34fe97ba0 Removing duplicate custom-jekyll js
After docsy theme got merged these scripts aren't needed anymore.  Confirmed
after removing it (and all `<script>` references to it) the tooltip
functionality is still there.
Also removed the reference in `config.toml` to it, which may have stripped some
dangling whitespace.
2020-07-02 16:35:51 -05:00
Tim Bannister d5c74c069c (Temporarily) disable upcoming events for live site
Live website builds are failing; disable this part of the shortcode to
allow builds to resume.
2020-06-30 19:17:18 +01:00
Karen Bradshaw e2dadcf668 adjust title, description order 2020-06-28 06:50:39 -04:00
Kubernetes Prow Robot d839ff12de
Merge pull request #21817 from shuuji3/narrow-spaces-between-lines
Narrow the space between lines in buttons in docs/home
2020-06-27 16:38:14 -07:00
TAKAHASHI Shuuji b2f7323f54 Narrow the space between lines of labels.
Apply suggestions from code review
Co-authored-by: Celeste Horgan <celeste@cncf.io>
2020-06-28 01:08:49 +09:00
Kubernetes Prow Robot b86347d72a
Merge pull request #22047 from sftim/20200624_mark_announcement_as_aside
Adjust HTML generated for announcements
2020-06-26 17:00:14 -07:00
Tim Bannister 8fcfbe692b Mark announcements nosnippet
Add special metadata that Google Search pays attention to, so that the
search engine ignores the <aside> element contents for announcements.
2020-06-26 21:20:16 +01:00
Kubernetes Prow Robot 989f5da043
Merge pull request #22046 from sftim/20200624_move_lead_text_after_heading
Move documentation page lead text after the heading
2020-06-25 10:50:38 -07:00
Kubernetes Prow Robot 5567be79bc
Merge pull request #21888 from Arhell/fix-toggle
fix toggle button color on hover & jumping menu when close
2020-06-25 01:24:40 -07:00
Tim Bannister 6a94d9838b Mark front page announcements as <aside> elements
This matches the HTML used on the rest of the site. It helps avoid
search engines treating the aside as the primary content of the web
page.
2020-06-24 22:35:00 +01:00
Arhell 2adc272dbe
fix toggle button color on hover & jumping menu when close 2020-06-25 00:08:03 +03:00
Tim Bannister e2805d47b5 Move documentation page lead text after the heading
This helps because the lead text follows the page heading on
the section index that links to a page. Consistency helps readability.
2020-06-24 22:01:14 +01:00
Arhell a3af36a5af
update search placeholder 2020-06-23 16:41:48 +03:00
Karen Bradshaw e4bab03c1a change main tag in announcement 2020-06-15 16:24:19 -04:00
Aidan Ranney 0625ced466
Revise the Kubernetes website to use Docsy (#20874)
* Add Docsy, required packages and config

* Apply Docsy integration work to k8s website

This encompasses significant changes to the style system, layout files,
as well as changes to some of the static assets. To examine this work
and the iterations that were performed, the original repository can be
found at https://github.com/gearbox-built/kubernetes-hugo.git

* Address issues found in review

The styling and positioning of the header, footer, some shortcodes and
main container elements are improved. A new partial is added for
favicons. The sidebars, as well as inner table of contents, have been
altered for better positioning and rendering of content. Localization
has also been addressed.

* Enable announcements

The recent Black Lives Matter announcement surfaced issues which have
been addressed.
2020-06-15 12:09:57 -07:00
Karen Bradshaw 59dbf9d693 clean up capture templates 2020-06-09 19:33:15 -04:00
Karen Bradshaw 1502e0281d config for removing capture stmts 2020-06-09 19:33:15 -04:00
Celeste Horgan 9b9ce1f942
Reimplement announcements (#21586)
* Reimplement announcements

Signed-off-by: Celeste Horgan <celeste@cncf.io>

Address deprecation-warning styling

Signed-off-by: Celeste Horgan <celeste@cncf.io>

Use partial only

Signed-off-by: Celeste Horgan <celeste@cncf.io>

Refine

Signed-off-by: Celeste Horgan <celeste@cncf.io>

* Turn on announcements for preview only

Signed-off-by: Celeste Horgan <celeste@cncf.io>

* Update config.toml

Co-authored-by: Celeste Horgan <celeste@cncf.io>

Co-authored-by: Zach Corleissen <zacharysarah@users.noreply.github.com>
2020-06-09 13:46:05 -07:00
Celeste Horgan 9caa83d75b Improve announcements implementation
Signed-off-by: Celeste Horgan <celeste@cncf.io>

Co-authored-by: Tim Bannister <tim@scalefactory.com>
2020-06-04 14:20:47 -07:00
Kubernetes Prow Robot 83a4559c2c
Merge pull request #21231 from Lonor/master
Bind the link of the page history to the language
2020-05-28 14:37:15 -07:00
Lawrence 4a1b1c4271
Bind the link of the page history to the language 2020-05-27 14:20:36 +08:00
Tim Bannister 2eb6ab1ad3 Add a link checker
Signed-off-by: Celeste Horgan <celeste@cncf.io>
2020-05-26 16:06:46 -07:00
Irvi Firqotul Aini 3530e6d6d0 Using regex to allow rendering notes with an indent, for example:
{{< note >}}
If the last element of the path is a substring of the
last element in request path, it is not a match (for example:
`/foo/bar` matches`/foo/bar/baz`, but does not match `/foo/barbaz`).
{{< /note >}}

After changin to hugo 0.70 trim seems to be not working.
2020-05-14 00:16:06 +07:00
Kubernetes Prow Robot ff40417bc7
Merge pull request #20878 from Arhell/subscribe
add localization for subscribe button
2020-05-12 12:00:37 -07:00
Arhell 491c9e2718
add localization for subscribe button 2020-05-12 20:46:35 +03:00
Karen Bradshaw 7a98007a29 update tabs shortcode 2020-05-11 18:12:43 -04:00
Kubernetes Prow Robot 6c96bcbe84
Merge pull request #20893 from jimangel/fix-feature-state
fix for feature state shortcode
2020-05-11 14:28:22 -07:00
Jim Angel f3e733ecba fix for feature state shortcode 2020-05-11 14:57:03 -05:00
Jim Angel afccb08ced updating link for community cal 2020-05-11 13:59:04 -05:00
TAKAHASHI Shuuji 7f95a9e419 Fix a broken table in contribute/new-content/overview.md by modifying shortcodes. 2020-05-03 14:39:31 +09:00
Maciej Filocha 50f10c2a1a Fix glossary_aka template 2020-04-28 11:30:06 +02:00
Jim Angel bea8e2b1be adding mermaidjs shortcode with example 2020-04-19 14:48:22 -05:00
Jim Angel a3decc2c8f automating-version-skew 2020-04-16 07:42:21 -05:00
Karen Bradshaw 45d3532de9 fix duplicate Slack name, header 2020-04-14 11:43:25 -04:00
Jim Angel 00b106a744 fixing information about dev contrib 2020-04-13 12:19:03 -05:00
Rémy Léone 9c864c965b Add a Progressive Web App manifest
Add a valid apple-touch-icon link in header
Co-Authored-By: Tim Bannister <tim@scalefactory.com>
2020-04-06 11:59:47 +02:00
Kubernetes Prow Robot 522d1ce587
Merge pull request #19343 from remyleone/logo_json_types
Add a logo JSON-LD meta information about Kubernetes
2020-04-04 13:39:45 -07:00
Ihor Sychevskyi 97849f96e3
fix home docs page button on mobile & tablet (#19646) 2020-03-22 14:06:44 -07:00
divya-mohan0209 56379649d3
Added date metadata to blog articles #19503 (#19523)
Added <time> </time> HTML element to the date heading in blog post articles. 
The opening <time> tag also was given a datetime attribute, with the value using another Hugo shortcode. Since these use Go time patterns; we included the following in the opening <time> tag datetime="{{ .Date.Format "2006-01-02" }}".
2020-03-07 05:31:34 -08:00
Kubernetes Prow Robot 066b9f3b8c
remove extra spaces from template (#19495) 2020-03-05 09:30:38 -08:00
Kubernetes Prow Robot 67c0fb987e
Training page in the top nav (#19214)
* Create new page and add to top nav

Signed-off-by: Celeste Horgan <celeste@cncf.io>

* The basics

Signed-off-by: Celeste Horgan <celeste@cncf.io>

* A bit of inline css

Signed-off-by: Celeste Horgan <celeste@cncf.io>

* Fix CSS

Signed-off-by: Celeste Horgan <celeste@cncf.io>

* Fix link + Add to bottom row

Signed-off-by: Celeste Horgan <celeste@cncf.io>

* Address feedback in PR

* Address feedback from elsewhere

* Fix button alignment

* Add training partners

* Simplify css

* Apply suggestions from review

Co-Authored-By: Zach Corleissen <zacharysarah@users.noreply.github.com>

* Fix landscape + text block widths

Co-authored-by: Zach Corleissen <zacharysarah@users.noreply.github.com>
2020-03-04 11:01:48 -08:00
Yong Zhang 55de253934
Localize “email address” placeholder on home page (#19359) 2020-02-28 01:22:39 -08:00
Flo 91759dcd79
Fix cursor not being correct on copy icon (#18901) 2020-02-27 07:53:27 -08:00
Rémy Léone 9142d89630 Add a logo information about Kubernetes 2020-02-27 15:54:19 +01:00
Sascha Grunert 3ecfc9f47f
Fix wrong CHANGELOG locations (#19089)
We prefixed the CHANGELOG path in k/k with `CHANGELOG/`, which should
reflect every part of the website as well.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-02-25 05:42:49 -08:00
Utwo a5f2cece61
Fix form allignment in mobile view. (#17007)
* Fix form alignement in mobile view

* Remove margin left

* Add mare space between input and button
2020-02-24 11:55:36 -08:00
Karen Bradshaw 9fab3c3098
Add latest-semver shortcode (#19110) 2020-02-16 08:21:28 -08:00
Rémy Léone 207c654042
Add a theme-color (#18976) 2020-02-14 16:33:27 -08:00
Qiming Teng b550c6c051
Remove shortcode 'code' (#19035)
A long time ago, we added a new shortcode `codenew` as a replacement of
the `code` shortcode. The intention was to consolidate all example
manifests to a single subdirectory, i.e. `content/<lang>/examples`. Now
this transition is almost over. We have only two instances where the old
`code` shortcode is referenced.

This PR makes the `policy.rego` file inlined content so that all
referenes to `code` are killed. We can safely drop the `code` shortcode.
If desired, we can rename the `codenew` shortcode to `code` in a
(series of) separate PR(s).
2020-02-10 19:52:00 -08:00
John Morrissey 1e6d352c93
maintain the current relative path when switching to other site versions (#18871) 2020-02-06 13:05:26 -08:00
Jie Shen a34bbe4365
Cleanup user journeys related configs and scripts (#18814) 2020-01-30 17:46:19 -08:00
Tim Bannister 7d424c304c Localize logo title (#18318)
The Kubernetes logo links to the top-of-site for the current
localization, so localize the title attribute.
2020-01-15 07:39:32 -08:00
Chaitanya 891814d1d6 Replaced logo names with link titles for images alt text (#16691)
Signed-off-by: ChaitanyaKaranam <karanam.krishna.25@gmail.com>
2019-12-23 21:07:29 -08:00
Roy Hvaara 88d0f78251 Add YouTube social button in header and footer (#16838) 2019-12-04 15:22:31 -08:00
Chris Abraham 7bf90015f0 swapped in svgs for the remaining pngs on the case studies page (#17615) 2019-11-17 12:41:41 -08:00
bells17 5306b4e784 Remove a space previous a tooltip text (#17194)
* Remove a space previous a tooltip text

* Improve format
2019-11-06 07:53:52 -08:00
Chaitanya 6a4238aa71 Accessibility updates - main landmark roles (#17106)
* Removed multiple main tags from home page

Signed-off-by: chaitanyakaranam <chaitanya.karanam@yahoo.com>

* Removed multiple occurances of main in case-studies page

Signed-off-by: chaitanyakaranam <chaitanya.karanam@yahoo.com>

* Replaced css for main tag with .main-section class

Signed-off-by: ChaitanyaKaranam <karanam.krishna.25@gmail.com>

* Added main landmark role for all the pages

Signed-off-by: ChaitanyaKaranam <karanam.krishna.25@gmail.com>

* Force checks.

request-checks: true
2019-10-27 04:43:24 -07:00
Chris Abraham 6e2683269a Use SVGs instead of PNGs in the case studies page (#17095)
* favor svg over png for logos on case studies page

* added svgs for all case studies

* favor svg over png for logos on case studies page

* added svgs for all case studies

* duplicating the jd logo so both are svg

* switch to svgs in the case studies block on the homepage
2019-10-23 09:02:15 -07:00
Chaitanya 920d14f4fc Accessibility Updates (#16633)
* Fixed accessibility issues in home page

Signed-off-by: ChaitanyaKaranam <karanam.krishna.25@gmail.com>

* Fixed accessibility issues for docs/home page

Signed-off-by: chaitanyakaranam <chaitanya.karanam@yahoo.com>

* Fixed accessibility issues for /partners page

Signed-off-by: chaitanyakaranam <chaitanya.karanam@yahoo.com>

* Fixed accessibility issues for /community page

Signed-off-by: chaitanyakaranam <chaitanya.karanam@yahoo.com>

* Update layouts/partials/header.html

Co-Authored-By: Tim Bannister <tim@scalefactory.com>

* Update layouts/partials/footer-scripts.html

Co-Authored-By: Tim Bannister <tim@scalefactory.com>

* Update layouts/index.html

Co-Authored-By: Tim Bannister <tim@scalefactory.com>

* Update content/en/partners/_index.html

Co-Authored-By: Tim Bannister <tim@scalefactory.com>

* Update content/en/community/_index.html

Co-Authored-By: Tim Bannister <tim@scalefactory.com>

* Added missing quotes

* Added landmark roles for search bar and footer

Signed-off-by: chaitanyakaranam <chaitanya.karanam@yahoo.com>

* Changed images alt text

Changed alt text from 'kubernetes community' to 'Kubernetes Conference Gallery'

* Removed verb from iframe title

Signed-off-by: chaitanyakaranam <chaitanya.karanam@yahoo.com>

* Change alt text for GitHub image

Co-Authored-By: Tim Bannister <tim@scalefactory.com>

* Few alt text changes

* Modified alt text
2019-10-05 22:23:09 -07:00
Roy Hvaara bd7dae1c87 Use HTTPS for links (#16668) 2019-10-02 23:14:08 -07:00
aimeeu d549942636 Add announcement shortcode and partial (#16210)
Add shortcode, partial, and css so we can display an accouncement
site-wide.
Create a shortcode for use in content/en/ _index.html so
announcement is displayed on website landing page.
Create a partial for use in layouts/docs/baseof.html so
announcement is displaye on every page in '<url>/docs/home'
directory.
Add two values to config.toml: announcement (boolean) for toggling
display of announcement; announcement_message, which is the actual
message.

Signed-off-by: Aimee Ukasick <aimeeu.opensource@gmail.com>
2019-09-09 14:22:55 -07:00
mohamed chiheb ben jemaa 63eb064d96 update sweetAlert and fix scrolling after copy (#15542) 2019-08-21 17:20:32 -07:00
Thibaut Tauveron bfe83d284c fix unexpected line breaks for localized glossary tooltips #15390 (#15920) 2019-08-18 17:58:04 -07:00
mohamed chiheb ben jemaa 73ef2c557b adjust and center Blog links (#15541) 2019-08-15 20:28:33 -07:00
Ben Hall 779b2be65c Update Interactive Terminal button. Add button directly to port 30000 for dashboard. Use new Start script to launch minikube. (#15689) 2019-08-06 11:03:55 -07:00
Harsh Vardhan b7b8ce0b25 Fix Prev/Next navigation buttons when viewing article (#15439)
Earlier both the on the left and right buttons had the text `Next>>` now
the left one will have the text `<< Prev`

fixes: https://github.com/kubernetes/website/issues/15438

Signed-off-by: Harsh Vardhan <harsh.vardhan@mayadata.io>
2019-07-21 01:46:54 -07:00
Rael Garcia c138c9c158 Replace tabs by spaces in glossary-terms partials (#15408)
Using tabs in this partials seems to cause Hugo to parse the partial
as a code block instead of rendering the HTML code.

Solves #14792 rendering issues.
2019-07-14 03:41:03 -07:00
Jim Angel 05a84463b2 fixes offline dependencies (#15257)
fixing tweet tags by replacing with embedded html
2019-07-11 16:07:04 -07:00
Rémy Léone 1206e3c6a1 Fix robots.txt (#14774)
Lighthouse in Google Chrome reported an issue
2019-06-24 20:52:35 -07:00
mhamdi semah 582cda6192 Blog post index for past years does not expand making older posts unreachable (#14875) 2019-06-24 20:10:35 -07:00
Alexandre Vilain b473890928 Fix 404 on link: "Download Kubernetes" (#14969) 2019-06-18 13:45:49 -07:00
Luc Perkins 654db85168 Use Hugo extended for Sass/CSS (#13113) 2019-06-09 06:31:07 -07:00
Rémy Léone 871ba61574 Update bootstrap js because bootstrap 3.3.7 is vulnerable (#14775)
https://snyk.io/vuln/npm:bootstrap?lh=3.3.7&utm_source=lighthouse&utm_medium=ref&utm_campaign=audit
2019-06-07 19:01:08 -07:00
Tim Bannister 1078044001 Fix HTML typo (#14527) 2019-05-26 21:35:48 -07:00
Supriya Sirbi 53b03baaa8 Subscribe button on the home page is not aligned. #13672 (#14175) 2019-05-08 20:42:48 -07:00
Seokho 017a224473 Fix glossary tooltip mismatch (#14227) 2019-05-08 13:18:36 -07:00
Chris Abraham 4e35312a7f New Community page, as designed by @alexcontini (#13046)
* new community page

* update
2019-04-26 12:40:05 -07:00
Danny Berger 4029a7ab5e Normalize case: Github -> GitHub (#13828) 2019-04-25 09:40:47 -07:00
Rael Garcia 20842e037a Add localization support for layouts (#13832)
Add layouts/docs/glossary en i18n strings
Add layouts/docs/glossary es i18n strings
Use i18n strings in layouts/docs/glossary
Add layouts/blog/pager en i18n strings
Add layouts/blog/pager es i18n strings
Use i18n strings in layouts/blog/pager
Add layouts/blog/list en  i18n strings
Add layouts/blog/list es  i18n strings
Use i18n strings in layouts/case-studies/list
Add layouts/docs/search en i18n strings
Add layouts/docs/search es i18n strings
Use i18n strings in layouts/docs/search
Add layouts/partials/feedback en i18n strings
Add layouts/partials/feedback es i18n strings
Use i18n strings in layouts/partials/feedback
Set html lang using "{{ .Language }}"
2019-04-16 17:36:01 -07:00
Luc Perkins 645d3d8ded Create table shortcode that allows for table captions (#13117)
* Create table shortcode for captions

* Allow for tables without captions

* Add table documentation in shortcodes guide

* Docs cleanup
2019-04-09 22:20:12 -07:00
Karen Bradshaw 0c568fa9c9 fix note shortcode, lists (#13587)
* fix note shortcode, lists

- fix note shortcode for use in lists
- add example in style guide

* add more items to list

* update warning, caution, minor tweaks

* more updates
2019-04-09 18:44:12 -07:00
Bjørn Erik Pedersen b51bdc88cc Make it compatible with Hugo 0.55 (#13680)
This commit adds two backwards compatible changes to prepare for the next Hugo version, most notable:

* All the `File` methods on `Page` has been deprecated and will give a warning in the next Hugo version. Adjust this by changing `.Dir` to ´.File.Dir` and similar.
* Version the capture shortcode to use the old behaviour for markdown rendering of shortcode inner content.
2019-04-08 18:19:05 -07:00
Christian Oliff 2d1fdb0666 Always load Mailchimp CSS over HTTPS (#13678) 2019-04-08 18:17:04 -07:00
Damini Satya 532bb26b9d Fix#13372 - Issue template for bug, support, feature requests (#13373)
* Fix#13372 - Issue template for bug, support, feature requests

* Point to the bug template for every bug report from website
2019-04-02 08:02:38 -07:00
Zach Corleissen 5bbd682613 Update the blog's download link (#13536) 2019-03-29 13:06:15 -07:00
Kaitlyn Barnard 14bfed8631 Adding image to Twitter meta data (#13261) 2019-03-27 16:28:50 -07:00
Jim Angel 39cb126d96 Update deprecationwarning.html (#13461)
ref: https://github.com/kubernetes/website/pull/13406#issuecomment-476806146
2019-03-26 13:19:17 -07:00
Kaitlyn Barnard 2b6780ad94 Adding link to submit a blog (#13252) 2019-03-18 14:24:21 -07:00
Dani Comnea 56021dc671 Reorganize Federation tasks so we have it group and under one topic (#12900)
* Reorganize Federation tasks so we have it group and under one topic

* Intended replacement
2019-03-12 13:38:39 -07:00
Karen Bradshaw 7b07d19360 fix short_description field in glossary files (#13045) 2019-03-09 00:33:29 -08:00
Luc Perkins 0650b70742 Fix sticky footer issue (#10681)
* Fix sticky footer issue

* Fix merge conflict

* Aesthetic changes to 404 page
2019-02-27 20:07:42 -08:00
Jean-Yves Gastaud e4967c3ece Allow translation of kubeweekly block (#12873) 2019-02-27 01:45:43 -08:00
June Yi 8e5d7e4829 Make k8s.io/docs/home to support i18n (#12570)
* Make k8s.io/docs/home to support i18n

* Apply kbhawkey's review comment
2019-02-21 08:24:20 -08:00
Dani Comnea 9054d61419 Fix the codenew shortcode where site.Params.githubWebRow is null (#12743) 2019-02-20 17:00:48 -08:00
Damini Satya 461fadb8c3 Update download icon and add RSS label (#12648)
* Add 'RSS feed' label

* Update download icon
2019-02-14 22:10:09 -08:00
Seokho bdd953f0d3 Substitute en.toml for pedefined english shortcodes (#12418)
Rev Substitute en.toml for pedefined english shortcodes

Remove prefix Substitute en.toml for pedefined english shortcodes

Rev minor Substitute en.toml for pedefined english shortcodes
2019-02-14 17:32:53 -08:00
Roy Lenferink 5d61f1c926 Typo resolved (#12555) 2019-02-08 15:43:44 -08:00
Luc Perkins c6dd35ba51 Update to Hugo 0.53 and remove all .Site references (#12079)
* Remove all .Site variable references

* Update Hugo version in Travis CI config and Makefile
2019-02-05 08:33:23 -08:00
Qiming bef190960f Translate some remnant partials for localization (#12239) 2019-01-28 23:18:04 -08:00
Zach Corleissen 0b87f30699 Setup to set up (#12367)
Adding a trivial change

Undoing trivial change to trigger deploy
2019-01-24 13:49:01 -08:00
Andrew Chen b3ed053c82 Refactor home page (#10795)
* Fix docs home subnav link name

* change linkTitle to Home

* accept fix from master

* refactor docs home template

* bump

* test

* switch layout to basic

* swap in cards

* test card css

* add launch-cards and launch-card classes

* swap in content

* use different layout name to not affect user journeys

* revert file naming

* revert docsportal.html

* remove main, add kubeadm link

* documentation -> docs

* change kubeadm link
2019-01-23 18:36:23 -08:00
Roy Lenferink 0ca5d446d9 Edit button on translated pages working as well now (#12230) 2019-01-15 12:48:55 -08:00
Karen Bradshaw fd82826476 Add template for tool reference docs (#11618)
* [WIP] Add template for tool reference docs

- provide a template for generating tool reference docs.
- use in reference-docs/gen-compdocs/generators to create
  consist looking markdown files for the tools.

* Fix lines

* remove test page
2019-01-07 07:40:53 -08:00
Alex Contini 11a52d31c3 updates to kubecon banners (#11760)
* updates

* updates

* Update list.html
2018-12-14 09:36:49 -08:00
Jim Angel 27b7b453a9 Official 1.13 Release Docs (#11401)
* Update metadata.generation behaviour for custom resources (#10705)

* update docs promoting plugins to beta (#10796)

* docs update to promote TaintBasedEvictions to beta (#10765)

* First Korean l10n work for dev-1.13 (#10719)

* Update outdated l10n(ko) contents (#10689)

fixes #10686

* Translate concepts/overview/what-is-kubernetes in Korean (#10690)

* Translate concepts/overview/what-is-kubernetes in Korean

* Feedback from ClaudiaJKang

* Translate concepts/overview/components in Korean (#10882)

* Translate concepts/overview/components in Korean #10717

* Translate concepts/overview/components in Korean

* Translate concepts/overview/components in Korean

* Apply Korean glossary: 서비스 어카운트

* Translate concepts/overview/kubernetes-api in Korean (#10773)

* Translate concepts/overview/kubernetes-api in Korean

* Applied feedback from ianychoi

* kubeadm: update the configuration docs to v1beta1 (#10959)

* kubeadm: add small v1beta1 related updates (#10988)

* ADD content/zh/docs/reference/setup-tools/kubeadm/kubeadm.md (#11031)

* ADD content/zh/docs/reference/setup-tools/kubeadm/kubeadm.md

* ADD content/zh/docs/reference/setup-tools/kubeadm/generated/kubeadm_init.md

* Update content/zh/docs/reference/setup-tools/kubeadm/kubeadm.md

Accepted

Co-Authored-By: YouthLab <tsui@highyouth.com>

* do not change 'master' or 'worker' nodes to '主从'

* Doc updates for volume scheduling GA (#10743)

* Doc updates for volume scheduling GA

* Make trivial change to kick build

* Document nodelease feature (#10699)

* advanced audit doc for ModeBlockingStrict (#10203)

* Rename EncryptionConfig to EncryptionConfiguration (#11080)

EncryptionConfig was renamed to EncryptedConfiguration and added to
the `apiserver.config.k8s.io` API group in Kubernetes 1.13.

The feature was previously in alpha and was not handling versions
properly, which lead to an originally unnoticed `v1` in the docs.

* content/zh/docs/reference/setup-tools/kubeadm/kubeadm-init.md

* trsanlate create-cluster-kubeadm.md to chinese (#11041)

* trsanlate create-cluster-kubeadm.md to chinese

* Update create-cluster-kubeadm.md

* update the feature stage in v1.13 (#11307)

* update new feature gates to document (#11295)

* refresh controller role list on rbac description page (#11290)

* node labeling restriction docs (#10944)

* Update 1.13 docs for CSI GA (#10893)

* dynamic audit documentation (#9947)

* adds dynamic audit documentation

* Copyedit for clarity

See also inline question/s

* Fix feature state shortcode

* Update feature state

* changes wording for dynamic audit flag behavior

* Minor copyedit

* fix dynamic audit yaml

* adds api enablement command to dynamic audit docs

* change ordering dynamic audit appears in

* add references to dynamic audit in webhook backend

* reword dynamic audit reference

* updates stages field for audit sink object

* changes audit sink api definition; rewords policy

* kubeadm: remove kube-proxy workaround (#11162)

* zh-trans content/en/docs/setup/independent/install-kubeadm.md (#11338)

* zh-trans content/en/docs/setup/independent/install-kubeadm.md

* Update install-kubeadm.md

* Update dry run feature to beta (#11140)

* vSphere volume raw block support doc update (#10932)

* Add docs for Windows DNS configurations (#10036)

* Update docs for fields allowed at root of CRD schema (#9973)

* Add docs for Windows DNS configurations

* add device monitoring documentation (#9945)

* kubeadm: adds upgrade instructions for 1.13 (#11138)

* kubeadm: adds upgrade instructions for 1.13

Signed-off-by: Chuck Ha <ha.chuck@gmail.com>

* add minor copyedits

Addressed a couple of copyedit comments a bit more cleanly.

* kubeadm: add improvements to HA docs (#11094)

* kubeadm: add information and diagrams for HA topologies

* kubeadm: update HA doc with simplified steps

* kubeadm: update HA doc with simplified steps

* edit ha, add new topology topic, reorder by weight

* troubleshoot markdown

* fix more markdown, fix links

* more markdown

* more markdown

* more markdown

* changes after reviewer comments

* add steps about Weave

* update note about stacked topology

* kubeadm external etcd HA upgrade 1.13 (#11364)

* kubeadm external etcd HA upgrade 1.13

Signed-off-by: Ruben Orduz <rubenoz@gmail.com>

* Update stacked controlplane steps

* kubeadm cert documentation (#11093)

* kubeadm certificate API and CSR documentation

* copyedits

* fix typo

* PR for diff docs (#10789)

* Empty commit against dev-1.13 for diff documentation

* Complete Declarative maangement with diff commands

* Second Korean l10n work for dev-1.13. (#11030)

* Update outdated l10n(ko) contents (#10915)
* Translate main menu for l10n(ko) docs (#10916)
* Translate tasks/run-application/horizontal-pod-autoscale-walkthrough (#10980)
* Translate content/ko/docs/concepts/overview/working-with-objects/kubernetes-object in Korean #11104 (#11332)
* Pick-right-solution page translates into Korean. (#11340)
* ko-trans: add jd/..., sap/..., ebay/..., homeoffice/... (#11336)
* Translate concept/workloads/pods/pod-overview.md (#11092)

Co-authored-by: June Yi <june.yi@samsung.com>
Co-authored-by: Jesang Myung <jesang.myung@gmail.com>
Co-authored-by: zerobig <38598117+zer0big@users.noreply.github.com>
Co-authored-by: Claudia J.Kang <claudiajkang@gmail.com>
Co-authored-by: lIuDuI <1693291525@qq.com>
Co-authored-by: Woojin Na(Eddie) <cheapluv@gmail.com>

* Rename encryption-at-rest related objects (#11059)

EncryptionConfig was renamed to EncryptedConfiguration and added to
the `apiserver.config.k8s.io` API group in Kubernetes 1.13.

The feature was previously in alpha and was not handling versions
properly, which lead to an originally unnoticed `v1` in the docs.

Also, the `--experimental-encryption-provider-config` flag is now called
just `--encryption-provider-config`.

* Documenting FlexVolume Resize alpha feature. (#10097)

* CR webhook conversion documentation (#10986)

* CR Conversion

* Addressing comments

* Addressing more comments

* Addressing even more comments

* Addressing even^2 more comments

* Remove references to etcd2 in v1.13 since support has been removed (#11414)

* Remove etcd2 references as etcd2 is deprecated

Link back to the v1.12 version of the etcd3 doc for
the etcd2->etcd3 migration instructions.

I updated the kube-apiserver reference manually,
unsure if that is auto-generated somehow.

The federation-apiserver can still potentially
support etcd2 so I didn't touch that.

* Remove outdated {master,node}.yaml files

There are master/node yaml files that reference
etcd2.service that are likely highly out of date.
I couldn't find any docs that actually reference
these templates so I removed them

* Address review comments

* Final Korean l10n work for dev-1.13 (#11440)

* Update outdated l10n(ko) contents (#11425)

fixes #11424

* Remove references to etcd2 in content/ko (#11416)

* Resolve conflicts against master for /ko contents (#11438)

* Fix unopened caution shortcode

* kubeadm: update the reference docs for 1.13 (#10960)

* docs update to promote TaintBasedEvictions to beta (#10765)

* First Korean l10n work for dev-1.13 (#10719)

* Update outdated l10n(ko) contents (#10689)

fixes #10686

* Translate concepts/overview/what-is-kubernetes in Korean (#10690)

* Translate concepts/overview/what-is-kubernetes in Korean

* Feedback from ClaudiaJKang

* Translate concepts/overview/components in Korean (#10882)

* Translate concepts/overview/components in Korean #10717

* Translate concepts/overview/components in Korean

* Translate concepts/overview/components in Korean

* Apply Korean glossary: 서비스 어카운트

* Translate concepts/overview/kubernetes-api in Korean (#10773)

* Translate concepts/overview/kubernetes-api in Korean

* Applied feedback from ianychoi

* kubeadm: update the configuration docs to v1beta1 (#10959)

* kubeadm: add small v1beta1 related updates (#10988)

* update new feature gates to document (#11295)

* Update dry run feature to beta (#11140)

* kubeadm: add improvements to HA docs (#11094)

* kubeadm: add information and diagrams for HA topologies

* kubeadm: update HA doc with simplified steps

* kubeadm: update HA doc with simplified steps

* edit ha, add new topology topic, reorder by weight

* troubleshoot markdown

* fix more markdown, fix links

* more markdown

* more markdown

* more markdown

* changes after reviewer comments

* add steps about Weave

* update note about stacked topology

* kubeadm: update reference docs

- add section about working with phases under kubeadm-init.md
- update GA / beta status of features
- kubeadm alpha phase was moved to kubeadm init phase
- new commands were added under kubeadm alpha
- included new CoreDNS usage examples

* Generate components and tools reference

* Add generated federation API Reference (#11491)

* Add generated federation API Reference

* Add front matter to federation reference

* Remove whitespace from federation front matter

* Remove more whitespace from federation front matter

* Remove superfluous kubefed reference

* Add frontmatter to generated kubefed reference

* Fix kubefed reference page frontmatter

* Generate kubectl reference docs 1.13 (#11487)

* Generate kubectl reference docs 1.13

* Fix links in kubectl reference

* Add 1.13 API reference (#11489)

* Update config.toml (#11486)

* Update config.toml

Preparing for 1.13 release, updating the config.toml and dropping the 1.8 docs reference.

* update dot releases and docsbranch typo

* adding .Site. to Params.currentUrl (#11503)

see https://github.com/kubernetes/website/pull/11502 for context

* Add 1.13 Release notes (#11499)
2018-12-03 17:21:11 -08:00
Luc Perkins 4a6a022e61 Update Git info CSS (#10496) 2018-11-24 08:03:52 -08:00
Kayce Basques 59c4712807 add feedback widget to bottom of docs (#11037) 2018-11-20 05:44:49 -08:00
Luc Perkins d65e1790ff Add admonition type to shortcode (#9482)
* Change existing admon blocks

* Fix includes issue
2018-11-06 11:33:04 -08:00
Andrew Chen 6cd8128475 Fix secondary nav to use Home (#10800) 2018-11-01 05:44:44 -07:00
wangxy518 61afa0380f Update baseof.html (#10696) 2018-10-25 11:28:37 -07:00
Zach Corleissen abcee2dccd Update localization guidelines (#10485)
* Update localization guidelines for language labels

Continuing work

Continuing work

Continuing work

More work in progress

Add local OWNERS folders

Add an OWNERS file to Chinese

Remove shortcode for repos

Add Japanese

Alphabetize languages, change weights accordingly

More updates

Add Korean in Korean

Add English to languageName

Feedback from gochist

Move Chinese content from cn/ to zh/

Move OWNERS from cn/ to zh/

Resolve merge conflicts by updating from master

Add files back in to prep for resolution

After rebase on upstream/master, remove files

Review and update localization guidelines

Feedback from gochist, tnir, cstoku

Add a trailing newline to content/ja/OWNERS

Add a trailing newline to content/zh/OWNERS

Drop requirement for GH repo project

Clarify language about forks/branches

Edits and typos

Remove a shortcode specific to a multi-repo language setup

Update aliases and owners

Add explicit OWNERS for content/en

Migrate content from Chinese repo, update regex in config.toml

Remove untranslated strings

Add trailing newline to content/en/OWNERS

Add trailing newlines to OWNERS files

add Jaguar project description (#10433)

* add Jaguar project description

[Jaguar](https://gitlab.com/sdnlab/jaguar) is an open source solution for Kubernetes's network based on OpenDaylight.
Jaguar provides overlay network using vxlan and Jaguar CNIPlugin provides one IP address per pod.

* Minor newline tweak

blog post for azure vmss (#10538)

Add microk8s to pick-right-solution.md (#10542)

* Add microk8s to pick-right-solution.md

Microk8s is a single-command installation of upstream Kubernetes on any Linux and should be included in the list of local-machine solutions.

* capitalized Istio

Add microk8s to foundational.md (#10543)

* Add microk8s to foundational.md

Adding microk8s as credible and stable alternative to get started with Kubernetes on a local machine. This is especially attractive for those not wanting to incur the overhead of running a VM for a local cluster.

* Update foundational.md

Thank you for your suggestions! LMK if this works now?

* Rewrote first paragraph

And included a bullet list of features of microk8s

* Copyedit

fix typo (#10545)

Fix the kubectl subcommands links. (#10550)

Signed-off-by: William Zhang <warmchang@outlook.com>

Fix command issue (#10515)

Signed-off-by: mooncake <xcoder@tenxcloud.com>

remove imported community files per issue 10184 (#10501)

networking.md: Markdown fix (#10498)

Fix front matter, federation command-line tools (#10500)

Clean up glossary entry (#10399)

update slack link (#10536)

typo in StatefulSet docs (#10558)

fix discription about horizontal pod autoscale (#10557)

Remove redundant symbols (#10556)

Fix issue #10520 (#10554)

Signed-off-by: William Zhang <warmchang@outlook.com>

Update api-concepts.md (#10534)

Revert "Fix command issue (#10515)"

This reverts commit c02a7fb9f9.

Update memory-constraint-namespace.md (#10530)

update memory request to 100MiB corresponding the yaml content

Blog: Introducing Volume Snapshot Alpha for Kubernetes (#10562)

* blog post for azure vmss

* snapshot blog post

Resolve merge conflicts in OWNERS*

Minor typo fix (#10567)

Not sure what's supposed to be here, proposing removing it.

* Feedback from gochist

Tweaks to feedback

* Feedback from ClaudiaJKang
2018-10-12 14:25:01 -07:00
Andrew Chen 58aa2d5c30 Fix edit page button at bottom of pages. (#10517) 2018-10-05 15:13:03 -07:00
Kaitlyn Barnard 147537bb2e Update to newsletter signup (#10499)
* update to newsletter signup

* Update en.toml
2018-10-04 13:10:21 -07:00
Luc Perkins 48aa30df96 Add og:image meta tag to non-blog pages (#10213)
* Add og:image meta tag to non-blog pages

* Fix other minor OpenGraph issues
2018-10-03 20:57:18 -07:00
Takuya N b980de0edd Fix links to featured case studies (#10461)
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2018-10-03 17:11:55 -07:00
Luc Perkins 4c2b56625c Temporarily remove Hugo Pipes Sass conversion (#10373)
* Add new Sass generation system

* Remove resources folder

* Add develop Sass command and sourcemaps

* Add Hugo version shortcode for use in docs

* Add OWNERS file to ./sass folder
2018-10-01 13:38:01 -07:00
Bjørn Erik Pedersen 32014f94b3 Merge missing translations (#10355)
* Merge missing translations

* Disable Norwegian
2018-10-01 12:38:37 -07:00
James Adarich c71303c70a remove duplicate stack overflow icon (#10318) 2018-09-18 06:16:26 -07:00
Bjørn Erik Pedersen 1b5ff98a44 Make the home page into reusable and translatable blocks (#10071)
* Make navigation and UI strings i18n friendly

This commit

* Extracts most UI strings into i18n bundles so they can be translated
* Makes a proper Hugo menu out of the hardcoded menu that is shown on smaller screens
* Changes the language selector logic to navigate to the current page in the other language if possible (e.g. the translation). If not possible, it takes you to the home page for that language.

For testing, this commit also adds Norwegian as a new language. This is turned off.

* Make the home page into reusable and translatable blocks

This commit adds a set of block type shortcodes that is then used to build the home page.

* These shortcodes gets common image resources from a new headless bundle. These resources can be inherited or overridden by translations.
* The hardcoded case studies section on the home page is replaced with a query and a loop.
* The hardcoded feature list on the home page is replaed qith a query and a loop.
2018-09-14 14:47:24 -07:00
Cody Clark 1a9b307b4e Add Katacoda Embedded Live Environment (#10276)
* Create kat-button

* Update test.md

* Update test.md

* Update test.md

* Update style-guide.md

* Update style-guide.md

* Update style-guide.md

* Update style-guide.md

* Update style-guide.md

* code highlight fix
2018-09-13 15:45:54 -07:00
Luc Perkins 9ce0cd0906 Add AnchorJS logic for header links (#10155)
* Add AnchorJS JavaScript

* Remove existing inpage_heading logic

* Remove underline from anchor tags

* Use single icon and add touch visibility

* Use paragraph link icon for AnchorJS

* Update Sass to use code formatting in docsContent headers

* Update header size coverage to H3-H6
2018-09-10 13:09:36 -07:00
Luc Perkins e25a377509 Use local assets over CDN assets (#10153)
* Use local assets over CDN assets

* Add versions to JS filenames
2018-08-30 20:24:28 -07:00
Andrew Chen ca175df615 Remove unnecessary link (#10154) 2018-08-30 15:02:19 -07:00
Kazuki Suda 964cb2654a Fix not to escape html in in-page headers (#10130) 2018-08-30 05:08:33 -07:00
Kaitlyn Barnard 3f8fe0768c Updating links for KubeCon China (#9709)
* updated links

* Update 2018-06-26-kubernetes-1.11-release-announcement.md
2018-08-22 12:06:28 -07:00
Sam Foo 22f1f28bfa Remove imported/ references (#10004)
Signed-off-by: GuessWhoSamFoo <sfoohei@gmail.com>
2018-08-21 15:54:33 -07:00
Luc Perkins b6bb3a60a0 Add _headers file checking logic (#9879)
* Add _headers file checking logic

* Remove netlify_noindex_headers.txt file
2018-08-21 12:51:15 -07:00
wangxy518 c06564991d Update header.html (#9863) 2018-08-21 12:24:24 -07:00
Bjørn Erik Pedersen 5d6ca9ef5c Convert case-studies to bundles (#9822) 2018-08-20 12:07:54 -07:00
Andrew Chen 84abf8eacf Change Documentation and Home links in nav (#9914) 2018-08-20 08:33:42 -07:00
Misty Linville f8e4d35c5f Add JS to linkify in-page H1-H6 (#9751) 2018-08-18 07:36:42 -07:00
Math Costa fcc03c3474 Bing search for China users (#9845)
* Updates readme's site building instructions

* Alters dockerfile to use extended hugo build

This is necessary for the pipes used w/ TOCSS since node-sass was dropped

* WIP for bing search implementation

* Implements Bing search instead of google

* Makes bing the default result provider and uses google and it's available

* Adds pagination to bing and replaces the $.get call with a $.ajax call

* front adjust

* bing limit pagination

* Adds break if there are less than 10 pages worth of results on bing search

* Adds proper google script ref and proper config id

* Removes console.log call
2018-08-16 11:47:07 -07:00
Misty Linville ae0c28db7c Improve the preview card when sharing to social media (#9495)
* Improve social media share sheet metadata

* Improve social media share sheet metadata

* Improve social media share sheet metadata

* Improve social media share sheet metadata
2018-08-13 14:57:35 -07:00
Misty Linville 5ae0d0dd8d Reorganize docs contrib guide (#9510)
* Reorganize docs contrib guide

* Address first round of feedback from Brad, Jared

* Standardize on 'SIG Docs'

* Address more feedback

* Rewrites to participating.md

* Tweak navigation titles

* Document PR Wrangler

* Document SIG Docs chairperson

* Fix codeblock that shows how to use <codenew>

It was being interpreted as a Hugo shortcode.
2018-08-06 16:15:57 -07:00
Andrew Chen 4920a51665 Revert 9225, fix indexing for k8s.io (#9767) 2018-08-06 14:19:16 -07:00
Luc Perkins 1778e77165 Localization instructions (#9192)
* Begin re-working localization instructions

* Fix dangling sentence

* Re-arrange sections plus new content

* Fix TOC issue with misplaced capture directive

* Create new shortcodes for versions and language repos

* Add more translation instructions

* Remove translation docs added as an example

* Finish draft of localization doc

* Remove extraneous note
2018-07-27 17:13:56 -07:00
Luc Perkins bf4b9377e6 Auto _headers file generation logic (#9225) 2018-07-27 15:27:57 -07:00
Luc Perkins 1060c00b2a Use Hugo for Sass processing (#9404)
* Move all Sass into a common /assets directory

* Remove node-sass make command

* Change head partial to accommodate full Sass rules

* Bump Hugo version in Netlify config

* Use separate partial for CSS imports

* Bump Hugo version

* Remove PostCSS from the pipeline

* Un-bump version

* Update Hugo version to 0.44

* Update Hugo version in Makefile

* Update production Hugo version

* Fix misspelled variable name

* Add ./resources folder to Git

* Update Hugo version in Netlify config to 0.45.1

* Use un-cached css.html partial

* Re-work extra CSS logic for .Params.css
2018-07-26 02:53:57 -07:00
Zach Corleissen e4ce692417 Add ICP license to the site footer (#9589) 2018-07-19 22:00:52 -07:00
Chris Morgan 764a751c5b Fix the semantically very broken search box (#9408)
This was very annoyingly very broken. *Very* broken.

Two primary issues:

1. Autofocus. Autofocus should only be used on a field when it is the
   expected action on the page, because it steals keyboard events such
   as the arrow keys and Space for navigation, and causes users of
   screen readers confusion as they’re thrown into a strange place.

   It’d be just barely OK to use it on search pages, but used on
   *every* page in the documentation, it’s just *super* annoying.

2. Not being a form. I have *no* idea why anyone would ever have
   written it the way it was—it’s just awful from end to end, a bad
   reimplementation of a subset of native browser functionality.
   It’s a form, let it *be* a form.

   Possibly the most baffling part of it was the use of location.replace
   which breaks the back button. I just… why!?

   While I was at it, I gave the search box an aria-label for good
   measure, but I didn’t change its type to "search" because that has
   UI implications on some platforms that I’m too lazy to deal with.

This is still pretty bad, because that magnifying glass is done in CSS
rather than being a fair dinkum submit button, but I just wanted a
quick fix because the autofocus issue is annoying me *so much*.
2018-07-18 15:24:12 -07:00
Andrew Chen 3fccec89e0 Add Google Customer Survey code (#9132) 2018-07-13 10:42:26 -07:00
Andrew Chen 13bc6ffd22 Add current version of Google Analytics code, Global Site Tag (gtag.js). (#9131) 2018-07-13 10:34:26 -07:00
craigbox c35bc3677b Make the RSS refer to Kubernetes, not Hugo. (#9471)
* Make the RSS refer to Kubernetes, not Hugo.

* Update index.rss.xml
2018-07-11 10:42:25 -07:00
Misty Linville 1b914f4ac7 Add Git info to per-page template (#9309)
* Add per-page Git commit info

* Try moving the buttons down below the page TOC

* Add page history to page footer
2018-07-02 16:17:19 -07:00
Qiming a3415f6228 Consolidate YAML files [part-2] (#9236)
Changes that will help upcoming consolidation work:

- Add variable `githubWebsiteRaw` to config.toml to facilitate building
  links to raw YAML files
- Revise `codenew` shortcode to generate links to raw YAML files instead
  of github.com file view;
- Rename `artifacts` directory to `examples` to better reflect its usage;

Accompanied changes as show cases:

- Moved `deployment.yaml`, `deployment-update.yaml` and
  `deployment-scale.yaml` to the new `examples/application` subdirectory;
- Removed duplicate instances of the above YAML files in other
  directories;
- Update example_test.go to test the relocated YAML files and removed
  testing for files that no longer needed.
2018-06-26 09:34:52 -07:00
Qiming 99c4c54cb5 [WIP] Attempt to consolidate YAML files (#8965)
This is an attempt to consolidate YAML files so that:

- They can remain untouched when we moving the documents around;
- Contributors do not have to change the test cases each time a
  documentation is moved;
- We can encourage referencing the existing YAMLs from different
  concept or task pages when possible.
2018-06-25 12:25:21 -07:00
Jorge O. Castro 227d0418c0 Add links to forum (#8945) 2018-06-11 17:26:27 -07:00
Takuya Tokuda d2ce897c08 add Open Graph tags (#8947) 2018-06-07 14:55:24 -07:00
Paris 7b8f4a3353 Update contribute button on footer (#8955)
Adding link to new contributor guide; fixes issue #8904
2018-06-06 20:41:24 -07:00
Kaitlyn Barnard 5b6afb68ee updating KubeCon banners on Community page (#8908) 2018-06-06 18:06:23 -07:00
Takuya Tokuda 0502832cbb Ordering content by weight (#8787)
* ordering content by weight

* fix weight of 'setup' contents

* fix weight of 'concepts' contents

* fix weight of 'tasks' contents

* fix weight of 'tutorials' contents

* fix weight of 'reference' contents

* Revert "fix weight of 'tasks' contents"

This reverts commit 4b6916bed0.

* Revert "fix weight of 'tutorials' contents"

This reverts commit a1f7833143.

* Revert "fix weight of 'setup' contents"

This reverts commit 91c8de3665.

* Revert "fix weight of 'reference' contents"

This reverts commit cc95605f6a.
2018-06-06 16:51:26 -07:00
Andrew Chen 4691ee4ef7 fix column size bug -- add decimal number to div operation (+7 squashed commits) (#8631)
Squashed commits:
[b645d8e] remove debug
[47ba8b9] test new column size
[2f12ba5] use float
[b16f50b] test division
[789e289] test ceil
[012f6ad] debug offset
[514b529] debug column size
2018-06-06 15:20:24 -07:00
Takuya Tokuda b24f6327bf Fix a bug that the personal-data description is not displayed in docs/home/. (#8712) 2018-06-06 13:12:25 -07:00
T N 3c1c581de6 Fix responsive around sidebar on blog (#8610) 2018-06-05 03:52:54 -07:00
Bjørn Erik Pedersen a7d2dfc4fc Fix some issues with ToC (#8797)
* Allow HTML in ToC

Fixes #4793

* Extract ToC id from the header

This is needed when the id is set explicitly in markdown.
2018-06-04 08:35:54 -07:00
Takuya Tokuda 6ff5ca460f wrap sentence by p tag (#8785) 2018-06-01 20:46:55 -07:00
Kazuki Suda 813e1157d9 Fix no title elements in HTML fo all pages (#8529) 2018-05-18 10:44:52 -07:00
Bjørn Erik Pedersen 228bdfbab4 Remove double head tag (#8319)
It is also included in the base template to make it well formed.
2018-05-15 15:41:27 -07:00
Bjørn Erik Pedersen 7f3b633aa0 Convert site to Hugo (#8316)
This commit converts content and layout to use Hugo.
2018-05-05 09:00:51 -07:00