Commit Graph

336 Commits (4b928e3392cdccaf3ae06d5dc6e82aa0ec8788bd)

Author SHA1 Message Date
Qiming Teng 8311f4324c Make FEATURE STATE localizable
Add i18n string for FEATURE STATE, for ease of localization.
2022-03-06 21:44:40 +08:00
Kubernetes Prow Robot 879f4d4c86
Merge pull request #31934 from liggitt/evergreen
Allow marking blog posts as evergreen and exempt from outdated warning
2022-02-27 16:25:18 -08:00
Jordan Liggitt b19e4ff868 Allow marking some blog posts as evergreen and exempt from outdated warning 2022-02-27 17:25:36 -05:00
Jordan Liggitt a61da6510d Soften language about older articles 2022-02-27 17:23:36 -05:00
Tim Bannister e993de5dc6 Tidy styles for community section
This change enables an opt-in switch to new styles for /community
It is opt-in to enable localizations to migrate to the new page on their
own timeline.
2022-02-20 16:11:31 +00:00
Kubernetes Prow Robot ca8f4f1b7d
Merge pull request #31056 from sftim/20211221_mermaid_improvements
Improvements for Mermaid support
2022-02-19 14:22:09 -08:00
Sergey Kanzhelev ec25052227
fix error display string 2022-02-18 14:30:23 -08:00
Kubernetes Prow Robot 78f6ae073e
Merge pull request #31623 from sftim/20220204_tweak_blog_outdated_warning
Recolor warning about old blog articles
2022-02-11 08:52:24 -08:00
Tim Bannister 7245f44c52 Fix incorrect markup for navbar
Remove a vestigial </span> from the partial.
2022-02-06 22:16:17 +00:00
Tim Bannister fbc529ce0a Recolor warning about old blog articles
Use white on blue. This color combination is on-brand and stands out,
whilst looking less alarming than the black on yellow for old
documentation versions.
2022-02-04 15:37:59 +00:00
Patrice Chalin 1a88ffdf99 Final cleanup and choice of i18n-key and class names 2022-02-02 09:04:05 -05:00
Patrice Chalin 3e8f9d2f15 Whitespace cleanup 2022-02-01 16:02:38 -05:00
Patrice Chalin 6de4f5bcf1 Use single i18n entry for the message 2022-02-01 15:59:01 -05:00
Patrice Chalin 659dd4b904
Add class blog-outdated-warning
Co-authored-by: Tim Bannister <tim@scalefactory.com>
2022-02-01 15:41:54 -05:00
Patrice Chalin a4726731ed Mark blogs older than a year as outdated 2022-02-01 14:04:08 -05:00
Kubernetes Prow Robot 953bb28644
Merge pull request #30790 from sftim/20211207_mark_only_live_site_indexable
Make only live website indexable
2022-01-17 14:10:49 -08:00
Tim Bannister 4592cf5703 Mark live site in HTML
This allows CSS, JavaScript etc to detect if the served website is the
live one.
2022-01-03 17:24:19 +00:00
Tim Bannister 2dfe0d1c30 Make only live website indexable
This change updates how we run Hugo AND changes the logic for checking
whether a page should be indexable (copied with a backport from upstream
Docsy).
2022-01-03 17:24:18 +00:00
Tim Bannister e66d19ff6e Improve message shown for Mermaid when JS not enabled 2021-12-21 18:54:46 +00:00
Tim Bannister 3fcc2c812f Make release-data time format localizable 2021-12-14 17:39:21 +00:00
Tim Bannister 270bc93258 Fix HTML for release-data shortcode 2021-12-14 17:38:59 +00:00
Kubernetes Prow Robot fbf753d35e
Merge pull request #29906 from sftim/20211003_fix_cid_class_logic
Fix logic for setting cid-* classes
2021-12-05 15:18:32 -08:00
Tim Bannister 4dc09070ee Improve recent release list
- fix unwanted trailing separator
- better styling for the items
- more semantic markup (also enables improved CSS)
2021-11-27 18:42:11 +00:00
Kubernetes Prow Robot 098501ebfd
Merge pull request #30082 from sftim/20211013_revise_header_style
Revise page header styles
2021-11-12 20:00:46 -08:00
Tim Bannister 23b677d6fb Exempt case studies list from announcements
Announcements don't show for individual case studies. Make the list
page also skip any current announcement.
2021-10-13 22:49:42 +01:00
Tim Bannister 1e436f4587 Revise page header styles
- more compact headers when announcements are showing
- when no announcement showing, top level docs sections
  (eg Concepts, Tasks, Reference) have a heading in the top nav
- when announcement is showing, rely on the breadcrumb trail plus
  page introduction text for each top level section
- switch from plain black docs header to match other sections
2021-10-13 22:47:29 +01:00
Tim Bannister 4a57e58ab4 Use Docsy alert classes
Update the Kubernetes overrides from the Docsy theme to diverge less,
specifically in the areas of callouts (alerts) and pageinfo blocks.
2021-10-13 01:10:58 +01:00
Tim Bannister 95321d0a77 Fix logic for setting cid-* classes
Only set a cid-* class on the body element if the value won't actually
be "cid-".
2021-10-03 17:22:10 +01:00
Tim Bannister 8a736308a9 Revise third-party content warning 2021-10-02 16:40:09 +01:00
S Nitesh Singh a6ed49bca9 remove 'Tools Included' from sidebar of translated page 2021-09-23 10:59:48 +05:30
silenceshell 160d68bd43 kubeadm-upgrade should upgrade to current branch version other than the latest version 2021-09-19 11:00:41 +08:00
Philippe Martin 787e703fa0 Add `api-reference` shortcode 2021-09-11 10:59:46 +02:00
Kubernetes Prow Robot cf9753423a
Merge pull request #29554 from chrismetz09/metz-mermaid-upgrade
upgrade to mermaid 8.11.2
2021-09-07 09:45:16 -07:00
Ben Hall 280e67a4e1 Move to Minikube 1.20 image of Katacoda for Hello Minikube Tutorial
Signed-off-by: Ben Hall <ben@benhall.me.uk>
2021-09-04 07:55:17 +01:00
chrismetz09 cbff3ec4ea upgrade to mermaid 8.11.2 2021-08-26 10:53:18 -07:00
Kubernetes Prow Robot d621a66ca5
Merge pull request #29006 from niteshseram/fix/sidebar
fixing the huge whitespace in sidebar
2021-08-12 06:27:47 -07:00
Tim Bannister e3b6ab9579 Improve Katacoda button
Separate out the HTML <div> for Katacoda from the in-page button to
trigger it.
2021-08-03 14:31:38 +01:00
S Nitesh Singh b1fa203e3a fixing the huge white space in sidebar 2021-07-19 11:13:18 +05:30
Qiming Teng 1fac17f532 Remove extra horizontal line and spacing 2021-07-06 14:51:44 +08:00
Qiming Teng 7b22f1a134 Fix navbar extra title line 2021-06-25 16:50:53 +08:00
Kubernetes Prow Robot dc8882da98
Merge pull request #28521 from seokho-son/fixdocsythm
Fix sidebar-tree indentation by updating layout with latest docsy theme
2021-06-24 19:56:45 -07:00
Tim Bannister 037456870f Remove capture shortcode
The capture shortcode is no longer used: the switch was made on
2020-06-15, in commit 0625ced466.

Remove it. After this change, it won't be possible to use this legacy
shortcode (builds would fail).
2021-06-21 09:11:57 +01:00
seokho-son e26ff03d29 Fix sidefar indentation by updating layout 2021-06-21 10:15:36 +09:00
Kubernetes Prow Robot ba20879546
Merge pull request #28463 from sftim/20210617_update_docs_for_primary_branch_rename
Update docs for primary branch rename to "main"
2021-06-18 18:04:50 -07:00
Tim Bannister da31234d5d Update docs for primary branch rename to "main" 2021-06-19 01:50:25 +01:00
Tim Bannister e38d549721 Add shortcode for hyperlinking to examples 2021-06-19 01:47:51 +01:00
chrismetz09 51ccd736f5 fixed render problem for mermaid picts on ingress page 2021-06-14 21:13:05 -07:00
Kubernetes Prow Robot c44acaba89
Merge pull request #27689 from shuuji3/shuuji3/add-search-to-blog-pages-20895
Add the search box and the toggle section navigation
2021-05-16 05:49:59 -07:00
Jim Angel 7edf890373 Adding a release page under "Release Information" 2021-05-11 17:18:30 -05:00
Bridget Kromhout 68298d1871
Fixes sidebar link for blog posts
Signed-off-by: Bridget Kromhout <bridget@kromhout.org>
2021-04-28 14:25:45 -05:00
TAKAHASHI Shuuji af860986bd Add the search box and the toggle section navigation (for mobile) 2021-04-28 12:20:24 +00:00
Kubernetes Prow Robot 140c76462d
Merge pull request #27393 from sftim/20210403_omit_edit_link_for_generated_content
Omit “Edit this page” links for generated content
2021-04-18 16:22:35 -07:00
TAKAHASHI Shuuji a2e42f79d2 Replace featured png logo with svg image 2021-04-11 06:00:34 +00:00
Tim Bannister d6589e0ce3 Omit “Edit this page” links for generated content
Copy the page meta links template from the Docsy theme, and adapt it to only
suggest editing pages that aren't autogenerated.
2021-04-08 22:04:32 +01:00
Jordi Noguera 6d86df2b49
Fix deprecated landscape URLs (#26251)
* Fix deprecated landscape URLs

* Revert changes to language files
2021-02-28 11:26:39 -08:00
Qiming Teng b3214813a4 Cache scripts locally
The current layout partial is using scripts from a site not accessible
from behind the dam great firewall. This is a fix to cache the scripts
as we do before so that tabs, top menu works for everyone.
2021-01-31 21:58:42 +08:00
Taylor Chaparro 9adf2c1b31
Fix search input overlapping site nav 2021-01-26 08:38:41 -08:00
Tim Bannister ec8deb56e7 Skip crawling for new API documentation
This prepares for the launch of new API documentation, initially without
indexing by search engines.
2021-01-19 23:58:39 +00:00
Tim Bannister c02410db24 Move announcement styles into Sass 2021-01-07 08:44:16 +00:00
Tim Bannister 20d8b28e1b Implement announcements as data-driven content
This change allows announcements to have an expiry date and / or a
“do not show until” date.
Separating this out also leaves room for future changes to enforce
a set of approvers.

Co-Authored-By: Karen Bradshaw <kbhawkey@gmail.com>
2021-01-07 08:44:16 +00:00
Kristin Martin 86d9492ccb Merge remote-tracking branch 'upstream/master' into merged-master-dev-1.20 2020-12-03 11:58:44 -08:00
Kubernetes Prow Robot 2c2cdeb5d8
Merge pull request #24908 from neolit123/1.20-upgrade-docs
kubeadm: update the upgrade documentation for 1.20
2020-11-20 06:58:51 -08:00
M. Habib Rosyad 4ba449d527
Switch New York Times case study to use youtube shortcode 2020-11-20 14:32:12 +07:00
Lubomir I. Ivanov d046f6d5a4 layouts/shortcodes/skew.html: add latestVersionAddMinor
For site.Params.latest equals v1.20,

The following shortcode:
  skew latestVersionAddMinor N "-"

would return:
  1-(20+N)

negative N are supported.
2020-11-19 00:39:50 +02:00
Qiming Teng 51ab191ec0 Use card mode for cncf-landscape shortcode
The repeated icons are causing confusing.
2020-11-18 10:12:01 +08:00
Karen Bradshaw a8f07b6a1b modify width of iframe 2020-11-03 16:24:20 -05:00
Kubernetes Prow Robot a31ed022c1
Merge pull request #24014 from Arhell/upd-training
add cncf-landscape shortcode for training page
2020-11-03 12:38:04 -08:00
Arhell 59cdc2aaec add cncf-landscape shortcode for training page 2020-10-30 02:07:55 +02:00
Kubernetes Prow Robot 216f9569bb
Merge pull request #23708 from habibrosyad/gh-23660
Improve maintainability of Case Studies styling
2020-10-20 15:04:19 -07:00
Kubernetes Prow Robot cb6885545f
Merge pull request #24229 from sftim/20200929_load_sweetalert_async
Revise copy-and-paste helper for codenew shortcode
2020-10-19 04:48:14 -07:00
M. Habib Rosyad 4d9ee76ace Improve maintainability of Case Studies styling
- Add quote and lead shortcode
- Add case study metadata in front matter (to generate page)
- Allow case study page to inherit similar styles from a centralised CSS file.
2020-10-19 10:10:45 +07:00
Karen Bradshaw be9e8e9ad8 update tooltip styling to bootstrap 2020-10-05 12:05:02 -04:00
Tim Bannister 43a7be6495 If a blog article has a canonical URI set, link to it
This change lets us point search engines to the original article when we
mirror them from https://k8s.dev/ and potentially from other sites too.
2020-10-01 17:47:45 +01:00
Tim Bannister 735410f17b Only load copy-and-paste helper on pages that use it
This change helps improve load times for key non-documentation pages
such as https://kubernetes.io/
2020-09-30 23:42:00 +01:00
Karen Bradshaw a3fbdacef2 remove header partial 2020-09-30 13:40:32 -04:00
Karen Bradshaw e84e0c0b75 update tab component, remove jquery-ui 2020-09-30 12:03:20 -04:00
Surya Setiyaputra 02dccc54d4
Update 404.html
Remove text data-proofer-ignore
2020-09-22 00:48:15 +10:00
Karen Bradshaw 245f989b2a fix copy clipboard 2020-09-18 13:12:46 -04:00
Kubernetes Prow Robot c7dbfdd317
Merge pull request #23210 from sftim/20200816_add_cncf_landscape_shortcode
Add cncf-landscape shortcode
2020-09-15 10:52:08 -07:00
Tim Bannister 928c038559 Tidy 404 Not Found error page 2020-09-08 19:36:54 +01:00
Karen Bradshaw 71303db06b use docsy page edit/issue setup
setting feedback buttons, primary color setting

update i18n with issue string

remove local edit page string
2020-09-03 16:35:56 -04:00
Kubernetes Prow Robot 2e7e7aa43b
Merge pull request #23656 from celestehorgan/experiment-removing-roboto
Remove Roboto
2020-09-02 17:47:40 -07:00
Celeste Horgan 6ec2f71e58 Remove base_fonts.css
Signed-off-by: Celeste Horgan <celeste@cncf.io>
2020-09-02 16:41:06 -07:00
Kubernetes Prow Robot 5b08dbc38d
Merge pull request #23107 from celestehorgan/add-3rdparty-warning
Add 3rd party content warning
2020-09-02 12:53:06 -07:00
Celeste Horgan 0815480036 Remove blog.css as it is no longer used
Signed-off-by: Celeste Horgan <celeste@cncf.io>
2020-09-02 10:30:43 -07:00
Kubernetes Prow Robot 81a3f5420a
Merge pull request #23520 from sftim/20200828_revise_available_docs_versions_list
Revise “Supported Versions of the Kubernetes Documentation”
2020-09-01 12:37:50 -07:00
Celeste Horgan 47dd26bf09 Add 3rd party content warning
Signed-off-by: Celeste Horgan <celeste@cncf.io>
Co-authored-by: Tim Bannister <tim+github@scalefactory.com>
2020-09-01 10:39:06 -07:00
Kubernetes Prow Robot aa855d5988
Merge pull request #23029 from sftim/20200808_improve_callout_styling
Improve styling for callouts
2020-08-31 11:06:21 -07:00
Karen Bradshaw 160364d548 move search.md
add search bar to search page

fix bing anchors
2020-08-28 15:37:46 -04:00
Tim Bannister 2e55488319 Deprecate {{< versions-other >}} shortcode
Instead of this, use the docs layout named "supported-versions".
2020-08-28 14:58:17 +01:00
Tim Bannister 7bac2479ad Revise list of available documentation versions
For older releases, the previous rendering wasn't quite right.
Implement a custom layout for the supported versions list

This commit does NOT remove the shortcode named {{< versions-other >}}
because it is still used in some localizations.
2020-08-28 14:58:10 +01:00
Tim Bannister 4febf7471d Improve styling for callouts
Update styles for callouts (warning, caution, note); also avoid applying
callout-specific styles to general block quotes.
2020-08-27 00:04:26 +01:00
Kubernetes Prow Robot f6ffc7c881
Merge pull request #23028 from sftim/20200808_fix_glossary_definition_shortcode
Fix glossary definition shortcode
2020-08-26 14:57:04 -07:00
Kubernetes Prow Robot 390a4d8d9f
Merge pull request #22536 from brianpursley/website-22497
Preserve relative path when switching from latest version of the documentation to an older version
2020-08-26 14:49:02 -07:00
Kubernetes Prow Robot f169e99fee
Merge pull request #22043 from sftim/20200624_update_documentation_section_page_headers
Remove hero header from documentation section
2020-08-18 09:15:31 -07:00
Kubernetes Prow Robot 6783d77353
Merge pull request #23032 from sftim/20200808_show_deprecation_warning
Tidy & fix deprecation warnings
2020-08-18 09:13:31 -07:00
Tim Bannister fb127402c6 Add cncf-landscape shortcode
and adjust /partners/ to use it.
2020-08-18 13:34:43 +01:00
Tim Bannister 63cbc7c910 Fix buggy match for top of documentation
The match was against the page title, which isn't as stable as the
filename of the page. Switch to matching by filename.
2020-08-18 11:13:08 +01:00
Tim Bannister c7ee5d798c Remove hero header from documentation section 2020-08-18 11:13:06 +01:00
Tim Bannister 7e23f0f875 Tidy & fix deprecation warnings
Co-Authored-By: Karen Bradshaw <kbhawkey@gmail.com>
2020-08-16 18:34:09 +01:00