Commit Graph

28 Commits (2164a437c0498be46cf2bcb1fb6d7a276976753e)

Author SHA1 Message Date
Kubernetes Prow Robot 211b4861b0
Merge pull request #47484 from sftim/20240514_restyle_glossary
Restyle glossary page
2024-08-29 11:00:29 +01:00
Andrii Holovin a0ede947a2 refactor: the link processing logic has been redefined
depends on: https://github.com/kubernetes/website/pull/47612
2024-08-22 00:53:49 +03:00
Tim Bannister 8214a5f0ef Restyle glossary page
Match the theme more closely, and use SCSS to define the styling.
Also change the permalink hover behavior to be pure CSS.
2024-08-14 14:16:47 +01:00
Kubernetes Prow Robot af3d53cd7c
Merge pull request #46768 from cjyabraham/pagefind2
PageFind for users in China
2024-07-04 00:34:59 -07:00
Chris Abraham 9d2317aa15 Replace Bing with PageFind search for users in China 2024-07-03 15:36:58 +01:00
julia 71f2909d45 CVE status as Category field 2024-06-27 11:06:39 -04:00
julia e69d150967 Include CVE status in RSS feed 2024-06-27 09:53:20 -04:00
Dipesh Rawat 9e1c3c8187
Replace deprecated getJSON with transform.Unmarshal 2024-03-22 01:03:49 +00:00
James Hunt 52857c56e8 Update Bing Search to use Bing APIs not Cognitive Services
Signed-off-by: James Hunt <10615884+thetwopct@users.noreply.github.com>
2023-10-29 21:28:48 +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 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
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
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
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
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 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 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
Taylor Chaparro 9adf2c1b31
Fix search input overlapping site nav 2021-01-26 08:38:41 -08: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 7e23f0f875 Tidy & fix deprecation warnings
Co-Authored-By: Karen Bradshaw <kbhawkey@gmail.com>
2020-08-16 18:34:09 +01:00
Aidan Ranney 0625ced466
Revise the Kubernetes website to use Docsy (#20874)
* Add Docsy, required packages and config

* Apply Docsy integration work to k8s website

This encompasses significant changes to the style system, layout files,
as well as changes to some of the static assets. To examine this work
and the iterations that were performed, the original repository can be
found at https://github.com/gearbox-built/kubernetes-hugo.git

* Address issues found in review

The styling and positioning of the header, footer, some shortcodes and
main container elements are improved. A new partial is added for
favicons. The sidebars, as well as inner table of contents, have been
altered for better positioning and rendering of content. Localization
has also been addressed.

* Enable announcements

The recent Black Lives Matter announcement surfaced issues which have
been addressed.
2020-06-15 12:09:57 -07:00
Celeste Horgan 9b9ce1f942
Reimplement announcements (#21586)
* Reimplement announcements

Signed-off-by: Celeste Horgan <celeste@cncf.io>

Address deprecation-warning styling

Signed-off-by: Celeste Horgan <celeste@cncf.io>

Use partial only

Signed-off-by: Celeste Horgan <celeste@cncf.io>

Refine

Signed-off-by: Celeste Horgan <celeste@cncf.io>

* Turn on announcements for preview only

Signed-off-by: Celeste Horgan <celeste@cncf.io>

* Update config.toml

Co-authored-by: Celeste Horgan <celeste@cncf.io>

Co-authored-by: Zach Corleissen <zacharysarah@users.noreply.github.com>
2020-06-09 13:46:05 -07:00
Celeste Horgan 9caa83d75b Improve announcements implementation
Signed-off-by: Celeste Horgan <celeste@cncf.io>

Co-authored-by: Tim Bannister <tim@scalefactory.com>
2020-06-04 14:20:47 -07:00
Chaitanya 6a4238aa71 Accessibility updates - main landmark roles (#17106)
* Removed multiple main tags from home page

Signed-off-by: chaitanyakaranam <chaitanya.karanam@yahoo.com>

* Removed multiple occurances of main in case-studies page

Signed-off-by: chaitanyakaranam <chaitanya.karanam@yahoo.com>

* Replaced css for main tag with .main-section class

Signed-off-by: ChaitanyaKaranam <karanam.krishna.25@gmail.com>

* Added main landmark role for all the pages

Signed-off-by: ChaitanyaKaranam <karanam.krishna.25@gmail.com>

* Force checks.

request-checks: true
2019-10-27 04:43:24 -07:00
Rael Garcia 20842e037a Add localization support for layouts (#13832)
Add layouts/docs/glossary en i18n strings
Add layouts/docs/glossary es i18n strings
Use i18n strings in layouts/docs/glossary
Add layouts/blog/pager en i18n strings
Add layouts/blog/pager es i18n strings
Use i18n strings in layouts/blog/pager
Add layouts/blog/list en  i18n strings
Add layouts/blog/list es  i18n strings
Use i18n strings in layouts/case-studies/list
Add layouts/docs/search en i18n strings
Add layouts/docs/search es i18n strings
Use i18n strings in layouts/docs/search
Add layouts/partials/feedback en i18n strings
Add layouts/partials/feedback es i18n strings
Use i18n strings in layouts/partials/feedback
Set html lang using "{{ .Language }}"
2019-04-16 17:36:01 -07:00
Luc Perkins 0650b70742 Fix sticky footer issue (#10681)
* Fix sticky footer issue

* Fix merge conflict

* Aesthetic changes to 404 page
2019-02-27 20:07:42 -08:00
Bjørn Erik Pedersen 1b5ff98a44 Make the home page into reusable and translatable blocks (#10071)
* Make navigation and UI strings i18n friendly

This commit

* Extracts most UI strings into i18n bundles so they can be translated
* Makes a proper Hugo menu out of the hardcoded menu that is shown on smaller screens
* Changes the language selector logic to navigate to the current page in the other language if possible (e.g. the translation). If not possible, it takes you to the home page for that language.

For testing, this commit also adds Norwegian as a new language. This is turned off.

* Make the home page into reusable and translatable blocks

This commit adds a set of block type shortcodes that is then used to build the home page.

* These shortcodes gets common image resources from a new headless bundle. These resources can be inherited or overridden by translations.
* The hardcoded case studies section on the home page is replaced with a query and a loop.
* The hardcoded feature list on the home page is replaed qith a query and a loop.
2018-09-14 14:47:24 -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