Commit Graph

339 Commits (6f2a67a76e70edd7b5402b3ccf134c0fa07f3bf6)

Author SHA1 Message Date
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