Commit Graph

473 Commits (966c0e3c3dd86e32a2ff67738c4bd3891a4e3108)

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