Commit Graph

407 Commits (ba9e120d0e09be2509d1c410f29a95f50a7469f9)

Author SHA1 Message Date
Kubernetes Prow Robot 91c23ee527
Merge pull request #43091 from MeenuyD/case-studies
Remove Case-studies Link and Hyperlink from the bottom of the page
2023-10-02 02:10:45 -07:00
Gauravpadam 6296f46c87 Added github repo link to feedback
Limited changes to en.toml

Multiline string

changed html to markdown
2023-10-01 23:44:31 +05:30
Gauravpadam 0b4c196e7b Changes for docs home page card layout
Reduced padding to make text compatible

Some amendments ; bg removed

Buttons left aligned

Grid is more suitable for context

added a wrapper div with flex
2023-09-27 16:42:42 +05:30
Dipesh Rawat d97c4a254e
Add sortable option to table shortcode 2023-09-25 00:12:28 +01:00
satyampsoni eb2a2807d6 subscribe to kubeweelkly enchanced #42961 2023-09-20 01:06:31 +05:30
MeenuyD dac632abe1 Remove Case-studies Link and Hyperlink from the bottom of the page 2023-09-18 11:17:37 +05:30
priyanshuchaudhary53 4e0f28e8e8 fix blog footer 2023-09-09 01:38:55 +05:30
Priyanshu Chaudhary b805720e03
Fix docs mobile layout (#42943)
* fix docs mobile layout

* Update js to disable splitter on mobile

* fix mobile and desktop layout
2023-09-08 11:10:15 -07:00
Kubernetes Prow Robot 29eab1a903
Merge pull request #41695 from tengqm/split-doc-window
Split the doc view
2023-09-06 09:08:52 -07:00
Mengjiao Liu 234458f2e3 Add code_sample shortcode to replace code shortcode 2023-09-05 16:45:35 +08:00
Dipesh Rawat da673bf10a
Refine layout to add menu of links under releases 2023-09-02 01:55:42 +01:00
Kubernetes Prow Robot f227e22843
Merge pull request #41370 from dipesh-rawat/conditional-layout-release-info
Add Hugo layout to hide release information on outdated k8s.io versions
2023-08-16 23:26:20 -07:00
Kubernetes Prow Robot 61685e4db3
Merge pull request #42299 from dipesh-rawat/add-home-searchbar
Add site search to home page
2023-08-02 01:56:10 -07:00
Qiming Teng 589d67a7fa Split the doc view
This PR adds a splitter so that the navigation panel can be resized.
2023-08-02 09:54:41 +08:00
Dipesh Rawat a226826c03
Add site search to home page 2023-07-31 09:21:50 +01:00
Mengjiao Liu f5388a1efe Add code shortcode to replace codenew 2023-07-27 17:27:26 +08:00
morix1500 4fa23bc604 Provide a per-page outdated notification for localized content 2023-07-04 19:43:37 +09:00
Kubernetes Prow Robot a72cd0cbd2
Merge pull request #40226 from cjc7373/fix-copy-to-clipboard
fix: eliminate extra lines when copying to clipboard
2023-06-02 22:10:40 -07:00
Dipesh Rawat 5c29d1dd6b
Add layout to hide outdated releases 2023-05-29 17:57:24 +01:00
Tim Bannister 2483de1783
Add currentPatchVersion type to skew shortcode
You can now use {{< skew currentPatchVersion >}} as a Hugo shortcode,
and it will render to the patch SemVer for the minor release that is
being documented.
2023-05-02 23:25:23 +01:00
Nate W c3f31fea70 updating katacoda removal message, adding it to more pages
Signed-off-by: Nate W <natew@cncf.io>
2023-03-25 10:05:21 -07:00
Nate W 26b24d762f Adding katacoda removal notices on pages with interactive tutorials
Signed-off-by: Nate W <natew@cncf.io>
2023-03-24 17:38:38 -07:00
Harold Cheng 638cd92532
fix: eliminate extra lines when copying to clipboard 2023-03-22 23:28:34 +08:00
Kubernetes Prow Robot 46a7445624
Merge pull request #39513 from mtardy/cve-feed-rss
CVE feed: add RSS feed format
2023-03-13 18:21:09 -07:00
mtardy ad7b108bc8 CVE feed: add RSS feed format
Add tabs to display the various feeds thanks to sftim!
2023-03-10 18:17:53 +01:00
mtardy aa9f17ed0a Transform CVE feed shortcode compliance check to warning
Previously it would cause the build to fail, which could lead to
confusing situation since the CVE feed comes from outside of the website
and could break the workflow. See related discussion:
https://github.com/kubernetes/website/pull/38579#discussion_r1116996184
2023-02-28 11:46:27 +01:00
mtardy 3d850f6b9a Clean CVE feed shortcode i18n caption data
Previsouly we were using two data items:
    ```toml
    [cve_table_date_before]
    other = "(last updated: "
    [cve_table_date_after]
    other = ")"
    ```
Which was simplified, using printf, to:
    ```toml
    [cve_table_date_format_string]
    other = "(last updated: %s)"
    ```
This is related to the following discussion
https://github.com/kubernetes/website/pull/38579#discussion_r1116992896
2023-02-28 11:46:04 +01:00
Kubernetes Prow Robot 1d514a5b3c
Merge pull request #38579 from mtardy/cve-json-feed
Update CVE feed layouts for new JSON feed format
2023-02-27 08:36:38 -08:00
mtardy 3305d7b1db Check that the fetched feed is a JSON feed 1.1 and fail if not 2023-02-27 17:23:05 +01:00
mtardy e277fe5f8c Update CVE feed layouts for new JSON feed format
Also add information about last update time on CVE table
2023-02-21 10:34:37 +01:00
Suyan a86c9fae84
update blog-meta-link for correct "Overflow"
The link's text "Overflow" should be the site's full name, "Stack Overflow".
2023-02-05 22:35:15 +08:00
its07195 2eb7ecd045 Updated to open blog meta links in new tab--fixed as sftim 2023-01-07 23:16:19 +05:30
its07195 3c1820f3da
Update layouts/partials/blog-meta-links.html
Co-authored-by: Tim Bannister <tim@scalefactory.com>
2023-01-07 22:32:00 +05:30
its07195 397783ea42 Updated to open blog meta links in new tab 2023-01-07 17:49:32 +05:30
sp7infinity b6f3d7914d Fixed overlap of nav-links with other content in certain screen sizes 2023-01-04 19:54:20 +05:30
Mauren Berti 2f39d55857
Changes from code review. 2022-11-19 09:55:43 -05:00
Mauren Berti 74b03f943a
Localization for glossary tag headers. 2022-11-18 21:35:57 -05:00
Tim Bannister 1d0cf7e971
Tell crawlers not to index print pages
This logic is copied from the way that the Docsy code handles this.
2022-10-30 13:16:02 +00:00
Tim Bannister a1f43e9de5
Move canonical link earlier in metadata
To help search engines, make the canonical URL appear near the start of
the <head> HTML element. This improves the chance of a search engine
paying attention; some indexers only read part of the page and ignore
information that appears later within the <head> element.
2022-10-03 16:38:24 +01:00
Kubernetes Prow Robot 24d941b0d8
Merge pull request #36898 from a-mccarthy/fix-28616
Make sub-items visible in localizations
2022-09-30 06:26:29 -07:00
Kubernetes Prow Robot 24540ba388
Merge pull request #36923 from a-mccarthy/fix-36903
Fix URL in navbar-version-selector.html to point to correct localization
2022-09-30 06:08:29 -07:00
Tim Bannister 4b8ec4dc73
Add page info to autogenerated pages
Tell the reader when they're viewing an autogenerated page, in case
they want to report an issue - it should help make reports about
autogenerated content stand out.

Co-authored-by: Qiming Teng <tengqm@outlook.com>
Co-authored-by: Shannon Kularathna <ax3shannonkularathna@gmail.com>
2022-09-27 23:47:10 +01:00
Kubernetes Prow Robot 69850cc98f
Merge pull request #36590 from sftim/20220904_fix_sidebar
Fix sidebar rendering for narrow viewports
2022-09-20 11:53:16 -07:00
Abigail McCarthy fb11b32a59 Fix URL in navbar-version-selector.html to point to correct localization
Add missing space
2022-09-20 12:28:04 -04:00
Abigail McCarthy 2f5116bf18 Make sub-items visible in localizations
Add comments
2022-09-20 12:00:03 -04:00
Nabarun Pal 6d7a573eb1
release: move markdown tables to shortcode
also, add i18n definitions for terms in the patch release page

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2022-09-15 12:57:16 +05:30
Tim Bannister 4c914f9ac2
Fix sidebar rendering for narrow viewports
Fix a bug that's noticeable when the viewport is narrow: you can toggle
the menu, but that menu is actually blank.
2022-09-04 17:18:30 +01:00
Kubernetes Prow Robot bb3ba4b18b
Merge pull request #34794 from chrismetz09/bugMermaid
Fix Mermaid render problem
2022-09-01 13:09:19 -07:00
chrismetz09 61a1ec21b5 Fix Mermaid render problem 2022-08-31 14:49:00 -07:00
Rolfe Dlugy-Hegwer b6299f907b Fix release-data i18n 2022-08-31 06:49:06 -04:00
Kubernetes Prow Robot f98437f846
Merge pull request #36010 from chalin/chalin-im-use-ga4-id-2022-08-16
Google analytics: use GA4 site tag
2022-08-24 11:57:49 -07:00
Patrice Chalin c6e50979d2 Google analytics: use GA4 site tag 2022-08-16 07:19:08 -04:00
Pushkar Joglekar cafe6d258c Fetch and Render CVE JSON feed
- Pull JSON blob from queried issues
- Use layout output formats + templates to generate HTML table and JSON blob
- Add localized strings and caption for CVE feed
- Add a new page to describe details about CVE feed and how to use it
- Update existing pages and link the official CVE feed from it

Co-authored-by: Neha Lohia <nehapithadiya444@gmail.com>
Co-authored-by: Tim Bannister <tim@scalefactory.com>
2022-08-02 09:32:01 -07:00
Qiming Teng 12f11d4919 Improve page-meta-links page
This PR fixes a warning in the page-meta-links.html page where `.Path`
is a function to be removed soon. Warning message:

```
WARN 2022/06/17 21:20:35 .Path when the page is backed by a file is deprecated and will be removed in a future release. We plan to use Path for a canonical source path and you probably want to check the source is a file.
```
2022-06-17 21:28:23 +08:00
Tim Bannister 4fa64207d0
Fix build issue for Netlify _headers file
This changes fixes an error where the production site does not build.
Use .RelPermalink to generate the site-relative URL for a page.
2022-06-17 12:46:01 +01:00
Kubernetes Prow Robot b835209a5c
Merge pull request #34262 from Rishit-dagli/Rishit-dagli-katacoda-banner
Remove katacoda warning
2022-06-17 01:32:32 -07:00
Tim Bannister 40c2c147d1 Fix invalid HTML element name
Wrong: <headclass="live-site">
Right: <head class="live-site">

Make it so.
2022-06-14 13:49:49 +01:00
Kubernetes Prow Robot 7aa5a90d74
Merge pull request #34251 from dradetsky/disable-gtag-in-local
Omit Google Analytics code for local Hugo website build
2022-06-14 05:35:34 -07:00
s-kawamura-w664 0aa7c16ab5 Fix api-reference shortcode for localized pages. 2022-06-14 06:18:41 +00:00
Daniel Radetsky 49d73dcc95 either prod or nonprod 2022-06-13 20:18:47 -07:00
Daniel Radetsky 631d1eb778 gtags only in production 2022-06-13 11:47:41 -07:00
Rishit Dagli fc8c3536d1 Remove katacoda warning 2022-06-13 16:36:48 +00:00
Daniel Radetsky 4fecd324ca disable gtag in local env 2022-06-12 11:03:50 -07:00
Kubernetes Prow Robot 7eb8181d0c
Merge pull request #34005 from sftim/20220528_warn_katacoda_removal
Add warning about Katacoda shutdown
2022-05-31 11:42:24 -07:00
Sean Wei 34073abcec Remove google_news template from layout 2022-05-31 22:46:33 +08:00
Tim Bannister a7c5ec8eda
Extend Katacoda removal warning
Also cover HTML-based interactive tutorials that do not launch Katacoda
from a button. This commit only updates the English localization.
2022-05-29 14:17:54 +01:00
Tim Bannister e173bf4940
Add warning about Katacoda shutdown 2022-05-29 14:07:46 +01:00
Tim Bannister d3708001d8
Use previous release examples in codenew shortcode
Fix a minor bug in the codenew shortcode.
When serving a previous release, link to the example for that specific
release (and not to the example for the current release).
2022-04-25 14:27:28 +01:00
Jihoon Seo c6b6e5acb6 Update api-reference shortcode 2022-04-21 10:02:26 +09:00
Christopher Negus 6d560379a8 Create dockershim shortcode 2022-04-18 17:13:23 +00:00
Kubernetes Prow Robot e7af510fde
Merge pull request #31658 from sftim/20220207_revise_community_page_and_styles
Revise community page and styles
2022-03-24 17:19:50 -07:00
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