Commit Graph

97 Commits (ebb38a98e7813887822f630507dce8f77e3414a1)

Author SHA1 Message Date
Andrew Chen 6da5f52fb2 Add 404 redirects (#4675)
* Add redirect for legacy kubectl links

* remove js redirect for kubectl

* fix link URLs

* add 404 redirects

* remove js forwarding rules

* clean up _redirects

* fix coreos links
2017-08-07 15:13:14 -07:00
Andrew Chen 68a3a7e074 Add redirect for legacy kubectl links (#4672)
* Add redirect for legacy kubectl links

* remove js redirect for kubectl
2017-08-07 12:05:44 -07:00
Andrew Chen 2e257d9707 Changes for move to Netlify (#4464)
* disable jekyll-redirect-from gem

* add _redirects file

* disable 404 redirect script

* add 301 redirect to test

* retain _redirects file

* Convert redirect_from's to _redirect file. (#4409)

* Remove redirect_from's. (#4424)

* Add 301's to _redirects. (#4427)

* add whitespace before 301

* move redirects in /js/redirects/js to _redirects

* add disabled option for cn redirect

* convert include to array in _config.yml

* enable redirects.js script for legacy support
2017-07-28 08:23:11 -07:00
Andrew Chen 3cb315606c v1.7 patch 01 2017-06-30 00:02:17 -07:00
Ryan McGinnis f0c445980d Update script.js
In copyCode function, removes target.value from if (succeed) sweetAlert function. 

Sometimes target.value is too long, which causes the sweetAlert box to be cut off from the page. The confirmation button also gets cut off, which means that the user can't close the box, which means they need to refresh the page to continue.

Instead, the alert tells the user which file was copied.
2017-06-27 08:58:02 -07:00
Ahmet Alp Balkan d94196e14f
redirect fix for meanstack article
Linking to the correct article.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2017-06-26 15:41:17 -07:00
Ahmet Alp Balkan 9ec9c73466 /docs/samples revamp: move examples to /tutorials
Addresses the work described at #4134.

- Remove /docs/samples page: This page mostly had links to examples on
  kubernetes/kubernetes (examples dir) which is now at kubernetes/examples
  repository. It was linking to README.md files for tutorials. Now removing
  this page as we are moving tutorials from kubernetes/examples to here:

  - Create redirects from /docs/samples/ to /docs/tutorials/ (both JS and
    redirect_from).
  - Deprecate "MEAN Stack" tutorial: This tutorial overlaps quite a bit with
    existing "maintained" examples and has been out-of-date for a while.
    Creating an external redirect to its original and more up-to-date location:
    https://medium.com/google-cloud/running-a-mean-stack-on-google-cloud-platform-with-app-engine-and-mongolab-4bbd2040ea75

- Import README.md files of maintained examples (guestbook, wordpress+mysql and
  cassandra) to this repository and serve them under /docs/tutorial.

- Update /docs/tutorials ToC:
  - Link to imported tutorials.
  - Fix missing articles on sidebar (_data/tutorials.yml) and make the tutorials
    listed on tutorials/index.md available on the sidebar (closes #4007).

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2017-06-26 11:22:35 -07:00
Ahmet Alp Balkan d33222a6c3 Copy-to-clipboard fix (#4190)
* Copy-to-clipboard fix

target.setSelectionRange(0, target.value.length); does not always seem to be
working. It doesn't work once the text is unselected. Using textarea.select()
function: https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select

Fixes #3965.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>

* Empty commit

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2017-06-26 11:12:14 -07:00
Ahmet Alp Balkan e883a27f3b networkpolicies.md --> network-policies.md for SEO
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2017-06-22 10:47:34 -07:00
Andrew Chen ee74993fa4 Refactor Troubleshooting (#3564)
* Refactor Troubleshooting

* reorder ToC

* Move troubleshooting into Home ToC
2017-04-28 14:53:12 -07:00
Andrew Chen 15f724223e Cleanup, simplify /js/redirect.js (#3417) 2017-04-14 16:07:46 -07:00
Steve Perry 3e4c2bbbd9 Experiment: Redirect using only redirects.js. (#3413) 2017-04-14 14:02:17 -07:00
Andrew Chen 005fce03fe WIP: Cleanup /docs/contribute/ migration (#3278)
* WIP: Cleanup /docs/contribute/ migration

* #3278 Changing /docs/contribute to /docs/home/contribute (#3285)

* WIP: #3278 Adding redirects /docs/contribute/ /docs/home/contribute/

* WIP: #3278 modifying /docs/contribute/ paths within files to /docs/home/contribute/

* Revert "WIP: #3278 Adding redirects /docs/contribute/ /docs/home/contribute/"

This reverts commit a82efdee50.

* WIP: #3278 Adding redirects /docs/contribute/ /docs/home/contribute/

* WIP: #3278 Correcting syntax mistake in redirect.js

* WIP: #3278 Correcting another syntax mistake in redirect.js

* WIP: #3278 Removing deprecated files so redirects work

* Removing the #

* WIP: #3278 Updating pattern in redirect.js

* WIP: #3278 Removed the wrong # previously redirect.js
2017-04-10 13:24:14 -07:00
Ahmet Alp Balkan 4bb4a9f1e2
Delete swagger-ui
Deleting swagger-ui and setting up a redirect to Reference section.

Closes #1924
Fixes #2220

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2017-04-06 14:34:37 -07:00
Andrew Chen 8529eec655 Limit resource-quota redirect 2017-04-03 13:40:29 -07:00
Andrew Chen 65b6d0b682 WIP: Add redirect for V1 paths (#3160)
* Add redirect for V1 paths

* fix api-reference and kubectl redirects

* fix bugs

* fix regex

* fix redirect URL

* more debug

* global match

* fix regexp

* remove debug

* generalize

* address @foxish feedback
2017-03-31 10:48:37 -07:00
Andrew Chen 9c090f0709 Fix rewrite of /index.md to / 2017-03-28 16:05:48 -07:00
stkevintan a7830ae27f fix some irregular coding && uniform indent to space 2016-12-27 14:57:48 +08:00
Eric Baum 8264a17c4e Merge remote-tracking branch 'refs/remotes/kubernetes/master' into UC-design-patch 2016-12-13 21:33:46 +00:00
Nikhil Jindal 0ae94418ae Fixing broken http://kubernetes.io/kubernetes/third_party/swagger-ui/ (#1921) 2016-12-11 16:32:21 -08:00
Eric Baum 08a199d6d1 Update header
Updates header to remove hamburger on desktop, set 100px margin, and
adds 100px margin to body.
2016-12-09 23:03:48 +00:00
steveperry-53 dd08e2bae9 Fix carousel images. 2016-11-28 12:59:10 -08:00
Jess Frazelle cbb4d33b3e
fix 404 redirect
Signed-off-by: Jess Frazelle <acidburn@google.com>
2016-10-12 14:17:27 -07:00
scotty a6c9579233 partners 2016-09-30 10:21:03 -07:00
scotty ae8d6a053c case studies 2016-09-14 10:39:24 -07:00
Jeff Mendoza 92a802a7fb Replace the 'I Wish' feature with a create issue button. 2016-09-06 15:54:10 -07:00
Andrew T. Baker 8dd2abd4bf Remove js-based header anchor offset, suggested by @bobcatfish 2016-05-22 19:28:46 -07:00
johndmulhausen c168f89aa9 Update script.js 2016-04-14 17:02:53 -07:00
scotty 4cbce7619f strip debug 2016-03-30 10:10:09 -07:00
scotty 7ef2e88b32 strip debug 2016-03-30 09:59:56 -07:00
scotty 4bf269f431 added pushState to fix Firefox ridiculousnesses 2016-03-30 09:57:49 -07:00
scotty e3978e42da js tests 2016-03-30 09:25:15 -07:00
scotty d539ec4129 dynamically assign HEADER_HEIGHT (Linux caveat) 2016-03-30 09:09:09 -07:00
scotty 0121f8ba03 anchor scrolling fix 2016-03-30 09:03:15 -07:00
johndmulhausen 00fcbed81f Adds 'copy code' functionality to include code module 2016-03-25 14:43:15 -07:00
johndmulhausen c8dd8b8831 Import from Container Engine docs, addition of Tabs functionality, various link fixes 2016-03-16 15:54:34 -07:00
scotty 81bf536b2a ditched the dropdown script 2016-03-14 11:53:02 -07:00
scotty c4a5d0ab93 many, many mobile fixes
Introducing: _code-styles.sass
Introducing: TOC mobile flyout
2016-03-08 17:18:23 -08:00
scotty b900daf301 pushmenu close button 2016-03-07 13:48:51 -08:00
scotty ae70351c3c added missing 'break' statement the lack of which caused such consternation
also added 'home' case, just for kicks
2016-03-07 09:02:36 -08:00
scotty 5b56a8cb33 moved page title conditional into head-header.html
added switch to setFooterType()
Introducing: community.html
2016-03-04 17:07:06 -08:00
scotty 6129c6931f head-header.html
footer.html
"get started" url fixes
calendar social links
video fix
Introducing: the ALL_NEW index.html
2016-03-04 16:02:00 -08:00
scotty 4d5a4e3107 wait to show kubernetes button 2016-03-03 15:41:18 -08:00
scotty f08df26d2f twitter fix
home page
2016-03-02 12:42:09 -08:00
scotty f08b8d3741 ditched table borders on search results
i wish this page... fix
fixed hijacked wish submissions
2016-02-25 15:56:23 -08:00
scotty 30e37122f7 added some search results styles
added search class via JS in search.md
tackled a bunch of little CSS issues
2016-02-25 13:37:33 -08:00
scotty 4f2d80a1ea migrated sass build process to jekyll 2016-02-24 16:59:38 -08:00
scotty e019d7881a fixed docwithnav scripts order
ditched pi
2016-02-24 16:13:45 -08:00
scotty 6890d4a389 minor js fix
headerfooter test — not seeing jquery showing up 1st
2016-02-24 16:00:51 -08:00
scotty a49fa7c6db moved jquery ahead of script.js
isolated height transitions for TOC
translated pi-accordion to JQ
2016-02-24 15:44:54 -08:00