Commit Graph

561 Commits (main)

Author SHA1 Message Date
Sayak Mukhopadhyay ddea987008
feat: move js detection script to its own module and import into body-end
Co-authored-by: Tim Bannister <tim@scalefactory.com>
2025-02-09 16:45:27 +05:30
Kubernetes Prow Robot 47165fff3a
Merge pull request #49592 from sftim/20250129_add_katex_formulae_support
Add support for KaTeX formulas
2025-02-07 08:41:56 -08:00
Kubernetes Prow Robot 516813d581
Merge pull request #49598 from shurup/css-improve-case-studies
Improve the  styles for case studies' pages
2025-02-07 08:39:56 -08:00
Kubernetes Prow Robot 35780e5f1d
Merge pull request #48258 from sftim/20241008_redo_kubeweekly
Refactor KubeWeekly signup form
2025-02-04 16:30:59 -08:00
Tim Bannister ab484498e4
Refactor KubeWeekly signup form
Turn it into a shortcode. Allow fallback in case localizations have not
yet caught up.

Co-authored-by: Dmitry Shurupov <dmitry.shurupov@palark.com>
Co-authored-by: Sayak Mukhopadhyay <mukhopadhyaysayak@gmail.com>
2025-02-04 17:23:20 +00:00
arshadda 82012abc49 update attribute to integrity 2025-02-04 11:03:02 +05:30
Dmitry Shurupov 9b372e733a
Improve Case Studies CSS
Signed-off-by: Dmitry Shurupov <dmitry.shurupov@palark.com>
2025-01-30 13:42:05 +07:00
Ayush Tiwari 92984ad2c1 Tell Your Story 2025-01-30 01:48:40 +05:30
Tim Bannister 2108c450f6
Add support for KaTeX formule
Per https://www.docsy.dev/docs/adding-content/diagrams-and-formulae/#latex-support-with-katex
we can have formulae. Make it so, and document this in the style guide.
2025-01-29 16:15:13 +00:00
Tim Bannister 0d1755f311
Fix styles for case studies section 2025-01-28 23:35:18 +00:00
Tim Bannister 9c217f796d
fix: reinstate splitter
Fixup for PR 48350: add the missing code to load the splitter library.
2025-01-27 14:19:56 +00:00
Kubernetes Prow Robot af0077ff7e
Merge pull request #48350 from sftim/20241015_tidy_page_head
Tidy <head> for pages
2025-01-27 03:49:23 -08:00
Adam In Tae Gerard 3d606b7b21
docs: shortcode formatting (#48622)
* docs: fix typo

* docs: fix shortcode formatting

* fix: move p tag

* docs: fix typos

* docs: fix typos

* fix: make suggested correction

Co-authored-by: Arvind <aruparekh@gmail.com>

* fix: revert corrected typos in this PR

---------

Co-authored-by: Arvind <aruparekh@gmail.com>
2025-01-26 06:39:22 -08:00
Tim Bannister ee50a91926
Tidy <head> for pages
- Align closely to Docsy theme
- Remove duplicated Twitter and Open Graph metadata
- Render the Open Graph image through Hugo Pipes
- Move the theme color to the head-end hook
2025-01-24 11:19:00 +00:00
Sayak Mukhopadhyay e5d538425f
fix: attempt to ensure that mermaid works both in dev and preview envs 2025-01-14 12:05:17 +05:30
Sayak Mukhopadhyay 214eda5088
fix: integrity hash of mermaid library 2025-01-14 01:46:48 +05:30
Kubernetes Prow Robot e628bdf427
Merge pull request #48958 from apoorvapendse/main
web: Improve UX for copyCode animation
2025-01-13 02:38:32 -08:00
Kubernetes Prow Robot 620d7f276c
Merge pull request #48756 from sftim/20241118_localize_sidebar_tree_text
Localize accessibility text in sidebar nav
2025-01-13 02:36:32 -08:00
Qiming Teng 3782732ce4 Fix feature gate name conflicts (2/2) 2025-01-08 10:51:36 +08:00
Qiming Teng 58d1204d7d Fix feature gate name conflicts (1/2) 2025-01-08 10:30:42 +08:00
Andrii Holovin b6ee0b6e59 resources.ToCSS was deprecated 2024-12-31 12:14:31 +02:00
Apoorva Pendse f56cf73c44 web: Improve UX for copyCode animation
This commit introduces a new toast animation instead
of the previous modal that would have to be manually closed.
The new toast is less intrusive to the user's workflow
and closes by itself.

Fixes issue: 48950.

Signed-off-by: Apoorva Pendse <apoorvavpendse@gmail.com>
2024-12-31 13:35:57 +05:30
Tim Bannister 85f64e5757
Localize accessibility text in sidebar nav
Allow localizing labels used in the sidebar navigation to help
accessibility
2024-12-31 07:47:31 +00:00
Patrice Chalin 30b92ffc3d Upgrade to Docsy 0.5.1 via NPM module 2024-12-09 09:35:30 -05:00
Kubernetes Prow Robot d7be80735f
Merge pull request #46706 from mariasalcedo/fix/glossary-definition
fix(shortcode): Amend glossary definition shortcode
2024-11-25 00:44:55 +00:00
Kubernetes Prow Robot 7801d4cc2b
Merge pull request #48367 from sftim/20241015_drop_reference_docs_partial
Drop unused Hugo shortcode
2024-11-21 19:04:54 +00:00
Kubernetes Prow Robot 2909eb9343
Merge pull request #48364 from sftim/20241015_drop_side_menu_partial
Drop unused Hugo layout partial
2024-11-21 19:02:54 +00:00
Kubernetes Prow Robot d08a2f4c7a
Merge pull request #48308 from sftim/20241012_main_page_feature_boxes
Restyle feature boxes on main page and ready for vanilla Docsy
2024-11-21 19:00:55 +00:00
Kubernetes Prow Robot c4f18b3213
Merge pull request #48721 from sftim/20241031_docsy_zero_three
Bump Docsy to 0.3.x
2024-11-20 18:28:56 +00:00
Kubernetes Prow Robot 897d0df998
Merge pull request #48561 from sftim/20241027_docsy_friendly_banner_dismissal
Ready announcements for Docsy
2024-11-19 23:20:53 +00:00
Tim Bannister 4d016545db
Adapt sidebar navigation for newer Docsy 2024-11-18 20:33:54 +00:00
Reza Ghanbari eb56651165
Fix whitespace handling in features-state.html using Go comment tags (#48331)
- Utilized Go comment tags {{- /* Comment Text here */ -}} to manage whitespace
- Improved indentation for better readability
- Prevented unwanted line breaks or spaces in the rendered HTML output
2024-10-31 21:07:27 +00:00
Tim Bannister d38b7b4675
Change name for banner script
Align with informal naming convention.
2024-10-27 17:01:32 +00:00
Tim Bannister 80d198952f
Ready announcements for Docsy
Serve the JavaScript code using Hugo Pipes, and avoid customizing the
'head.html' partial. Part of some work to allow using vanilla Docsy
(if we wanted to).
2024-10-27 16:56:53 +00:00
Tim Bannister ccf4a246e5
Amalgamate styles for Community page
Put legacy and current styles in one place, and simplify CSS load.
2024-10-26 21:32:02 +01:00
Kubernetes Prow Robot 55ef334065
Merge pull request #46306 from Andygol/patch-1
Update glossary_tooltip.html to include relLangURL for $external_link
2024-10-25 12:30:53 +01:00
Kubernetes Prow Robot cc33a61fdb
Merge pull request #48422 from vinayakankugoyal/shortcode
Update the feature-state shortcode to display the default value.
2024-10-23 18:56:53 +01:00
Kubernetes Prow Robot 4cf394bb1a
Merge pull request #48447 from sftim/20241020_cluster_diagram_details
Redo cluster diagram details on architecture page
2024-10-22 06:14:51 +01:00
Tim Bannister 9836d105d2
Add support for <details> via shortcode 2024-10-20 14:20:31 +01:00
Vinayak Goyal b41120bb2d Update the feature-state shortcode to display the default value.
Signed-off-by: Vinayak Goyal <vinaygo@google.com>
2024-10-19 20:09:50 +00:00
Tim Bannister c2939d58ec
Ready feature boxes on main page for vanilla Docsy 2024-10-19 16:37:10 +01:00
Tim Bannister 3ab2d3aeb4
Tweak date formats in patch releases page
- Use Hugo's built-in support for localizing dates
- Allow customizing date formats separately
- Make more dates machine readable
- Add a tooltip for dates
2024-10-19 13:03:40 +01:00
Tim Bannister 4410c88c71
Drop unused partial
This layout is unused; drop it.
2024-10-15 18:52:44 +01:00
Tim Bannister 607d440d36
Drop unused partial
This layout is unused; drop it.
2024-10-15 18:24:15 +01:00
Tim Bannister 4444539c29
Customise footer for Kubernetes 2024-10-02 15:44:15 +01:00
Tim Bannister e1e2c16621
Use footer from Docsy theme 2024-10-02 14:49:25 +01:00
Reza Ghanbari 44e798ad79 Fix feature-state shortcode for accurate feature gate rendering within tabs
- Adjusted shortcode logic to correctly render feature gates and their states.
- Ensured compatibility with nested tab structures, resolving issues with displaying feature gates inside tabs.
2024-09-18 00:17:02 +02:00
Tim Bannister f5d4315b4b Use Docsy layout for community page
Adapt the existing page to work with (near-)vanilla Docsy.

This includes new localizable strings.
2024-09-05 00:26:26 +01:00
Tim Bannister 29fc69dea9 Revise docs landing page (Docsy alignment)
Drop some vestigial <br> elements from the docs portal page, and tweak
how we do the styling.

Helps get us ready to use vanilla Docsy.
2024-09-04 12:32:49 +01:00
Kubernetes Prow Robot ae24e82d0d
Merge pull request #46681 from sftim/20240605_redo_mermaid_shortcode
Redo Mermaid shortcode (Docsy alignment)
2024-09-03 19:12:22 +01:00
Kubernetes Prow Robot 211b4861b0
Merge pull request #47484 from sftim/20240514_restyle_glossary
Restyle glossary page
2024-08-29 11:00:29 +01:00
Kubernetes Prow Robot fd98767e14
Merge pull request #47411 from sftim/20240808_docsy_friendly_deprecation_warnings
Revise deprecation warnings to be more Docsy friendly
2024-08-29 09:10:30 +01:00
Tim Bannister ef4120423b Redo Mermaid shortcode
Ready this for vanilla Docsy
2024-08-27 14:45:01 +01:00
Kubernetes Prow Robot 2d2f37ac2c
Merge pull request #47482 from sftim/20240813_revise_sweetalert
Revise Sweetalert asset load
2024-08-25 09:28:08 +01:00
Kubernetes Prow Robot 81e1083e91
Merge pull request #47620 from Andygol/render-link
Implementation of the Link Decorator function for processing localised links 🈂️
2024-08-24 17:50:09 +01:00
Matteo Bianchi b153426c85
Fixed flag deprecations and updated Hugo version to latest (#47612)
* Fixed flag deprecations and updated Hugo version to latest

* Removed deprecated flag from css.html

* Includes fix for Hindi and Russian

Signed-off-by: mbianchidev <matteo@mb-consulting.dev>

* Update netlify.toml

Applied node update (from my other PR)

Co-authored-by: Dmitry Shurupov <dmitry.shurupov@palark.com>

---------

Signed-off-by: mbianchidev <matteo@mb-consulting.dev>
Co-authored-by: Dmitry Shurupov <dmitry.shurupov@palark.com>
2024-08-23 16:37:52 +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
Tim Bannister 45f628b047 Drop some unused shortcodes 2024-08-14 00:44:51 +01:00
Tim Bannister 93bd8323cc Revise Sweetalert asset load
Use Hugo Pipes to load the Sweetalert script when needed.
2024-08-14 00:05:51 +01:00
Tim Bannister 55f93e6878 Update layouts for Katacoda removal 2024-08-09 13:15:00 +01:00
Dipesh Rawat fae63d6e0f
Redo release-binaries shortcode 2024-08-09 01:49:05 +01:00
Tim Bannister 3346b60b8f Adapt blog section for Docsy 2024-08-08 22:43:27 +01:00
Tim Bannister 932f32412c Revise deprecation warnings
Ready the deprecation warning mechanism for when we want to align with
upstream Docsy.
2024-08-08 22:43:27 +01:00
Dipesh Rawat 051f98bbc6
Refine glossary for vanilla docsy 2024-08-08 00:53:37 +01:00
Dipesh Rawat da44bfa406
Refine click-to-zoom for Docsy 2024-08-07 01:00:52 +01:00
Junya Okabe ac4a08abd6 update: layouts/blog
fix: using T shortcode

Update layouts/blog/list.html

Co-authored-by: Tim Bannister <tim@scalefactory.com>
2024-07-27 02:16:53 +09: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 baeadc1b48 Increase weight of title in pagefind results
Signed-off-by: Chris Abraham <cjyabraham@gmail.com>
2024-07-03 15:37:05 +01:00
Chris Abraham 9d2317aa15 Replace Bing with PageFind search for users in China 2024-07-03 15:36:58 +01:00
Tim Bannister 46196821ae Clean up after the 10th birthday
Remove the special banner support, leaving some scaffolding in place.
2024-06-30 18:20:17 +01:00
Kubernetes Prow Robot 2149b21485
Merge pull request #47000 from jbiers/include-cve-status-in-rss-feed
Include CVE status in RSS feed
2024-06-28 00:25:27 -07: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
Tim Bannister 3fd2bdbdd2 Style unfixed vulnerabilities in bold
For the CVE feed, use bold for any vulnerability that hasn't been fixed.
2024-06-27 13:28:29 +01:00
Tim Bannister f8baa0cec2 Ready Landscape shortcode for vanilla Docsy
Move the shortcode support for the CNCF landscape shortcode. This
readies us to make the site align with vanilla Docsy.
2024-06-11 14:14:14 +01:00
babugeet 90cd8f7557
Update kubernetes-overview.html 2024-06-06 22:04:43 +05:30
Maria Salcedo 3144f20e32
Merge branch 'kubernetes:main' into fix/glossary-definition 2024-06-06 18:03:43 +02:00
Maria Salcedo e188d07af5 fix(shortcode): Fix glossary definition shortcode
When rendering a index-less glossary definition, it fails with:

execute of template failed: template: shortcodes/glossary_definition.html:15:19: executing "shortcodes/glossary_definition.html" at <$term_info.Content>: nil pointer evaluating resource.Resource.Content
2024-06-06 18:02:42 +02:00
Kubernetes Prow Robot 4238897423
Merge pull request #46684 from sftim/20240605_hbd_k8s
Congratulate Kubernetes on its 10th birthday
2024-06-06 08:35:19 -07:00
Tim Bannister 13a96f0a31 Congratulate Kubernetes on its birthday 2024-06-06 16:04:16 +01:00
Tim Bannister fef04ab4c4 Define custom section partial for K8s overview 2024-06-06 16:04:16 +01:00
Tim Bannister be2172f9a4 Ready sortable table support for Docsy
- make the JavaScript an asset
- add it to the head-end hook rather than the head partial itself
2024-05-24 13:44:48 +01:00
Tim Bannister add8b37790 Warn on use of (deprecated) param shortcode 2024-05-15 21:34:16 +01:00
Tim Bannister 2b498d9bfb Make tooltip localizable
Allow localizations to customize the tooltip for copying code samples to
the clipboard.
2024-05-14 01:09:39 +01:00
Tim Bannister 9e128e3fc7 Reimplement code_sample shortcode
Use Hugo Pipes for the icon asset pipeline, and avoid inline styling.
2024-05-14 01:09:38 +01:00
Kubernetes Prow Robot 6908c84ef6
Merge pull request #46232 from sftim/20240507_docsy_callouts
Use Docsy-style callouts
2024-05-13 13:11:12 -07:00
Kubernetes Prow Robot 7926b1afec
Merge pull request #46260 from dipesh-rawat/click-to-zoom
Implement click-to-zoom option for images
2024-05-13 13:02:58 -07:00
Tim Bannister 6357c3c7c9 Render favicons using Hugo Pipes
Manage favicons for the site using Hugo Pipes to render the sizes we
want.
2024-05-12 01:46:02 +01:00
Tim Bannister d4c3aa474c Use Docsy-style callouts
Adopt callout (notices) that match the Docsy theme we use.

Co-authored-by: Dipesh Rawat <rawat.dipesh@gmail.com>
2024-05-11 22:00:12 +01:00
Andrii Holovin 6a75158c8e
Update glossary_tooltip.html to include relLangURL for $external link 2024-05-10 11:13:11 +03:00
Dipesh Rawat ddbc2c23e9
Add full-screen image display feature 2024-05-09 14:25:35 +01:00
Kubernetes Prow Robot 121671a3c8
Merge pull request #45893 from garritfra/bugfix/feedback-button-color
Fix documentation feedback button style
2024-05-03 18:21:37 -07:00
Dipesh Rawat c4f1b6ce7b
Remove feature-state css reference 2024-05-03 00:36:05 +01:00
Kubernetes Prow Robot 58039b32d2
Merge pull request #45981 from sftim/20240423_redo_feature_state
Revise appearance for feature-state shortcode
2024-04-24 18:55:22 -07:00
Tim Bannister f8bd5568c7 Revise appearance for feature-state shortcode
Co-authored-by: Dipesh Rawat <rawat.dipesh@gmail.com>
2024-04-24 09:52:42 +01:00
Kubernetes Prow Robot 6be32f03db
Merge pull request #45945 from sftim/20240421_localize_case_study_fallback_text
Make case study title prefix localizable
2024-04-22 14:05:39 -07:00
Tim Bannister c2f33c779e Make case study title prefix localizable
Co-authored-by: Dipesh Rawat <rawat.dipesh@gmail.com>
2024-04-22 10:46:42 +01:00
Sascha Grunert a7993c7d2b
Add upcoming monthly releases to schedule.yaml
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-04-22 09:05:47 +02:00
Tim Bannister b0c35d4d24 Make ICP license leader text localizable
Don't assume we'll use English text to introduce the ICP license.
2024-04-21 11:40:13 +01:00