Commit Graph

68 Commits (main)

Author SHA1 Message Date
Kubernetes Prow Robot d7eab2feb1
Merge pull request #49893 from SayakMukhopadhyay/owners-rework
Updating OWNERS files with filters
2025-06-04 04:28:38 -07:00
Kubernetes Prow Robot 025268bada
Merge pull request #50097 from SayakMukhopadhyay/navbar-rework
Rework the navbar layouts and some navbar scripts to make it closer to docsy
2025-04-16 04:01:07 -07:00
Sebastian Heiden 8e5a48be38 Add bootstrap-5.3.2.min.js dependency for api reference v1.29+ 2025-04-11 15:52:54 +02:00
Sayak Mukhopadhyay c9a25fce62
feat: navbar reworked to bring it closer to docsy 2025-03-26 18:09:11 +05:30
Sayak Mukhopadhyay dfe6e0a37d
feat: add comments to OWNERS to align them with other files
feat: add area/localization label to pl OWNERS file

fix: OWNERS with filters should have the approvers and reviewers properties within the filters property

feat: add filters in OWNERS files in <lang> dirs to ensure that they act on only the toml files

feat: ensure OWNERS files have an indent size of 2
2025-03-23 18:33:37 +05:30
Sayak Mukhopadhyay 8af973175c
feat: rework the scripts to make it closer to docsy
feat: implement custom partial in search--input.html

chore: add some comments on how things can be refactored later

feat: bring the search.html closer to docsy by only including the search-input partial and using the other things from baseof.html

fix: first line comments need to be in the {{/* */}} block, see https://github.com/gohugoio/hugo/issues/7243

Apply suggestions from code review

fix: apply review suggestions

fix: search bar should be removed in page find results and should be present in the sidebar

Co-authored-by: Tim Bannister <tim@scalefactory.com>
2025-03-15 12:55:03 +05:30
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
Patrice Chalin 30b92ffc3d Upgrade to Docsy 0.5.1 via NPM module 2024-12-09 09:35:30 -05: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 ef4120423b Redo Mermaid shortcode
Ready this for vanilla Docsy
2024-08-27 14:45:01 +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
Dipesh Rawat fae63d6e0f
Redo release-binaries shortcode 2024-08-09 01:49:05 +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
Chris Abraham 7613b3b55b
Removes console logs
Signed-off-by: Chris Abraham <cjyabraham@gmail.com>
2024-07-30 17:55:16 +07:00
Chris Abraham 4c79d66e93
Add a timeout to the Google check
Signed-off-by: Chris Abraham <cjyabraham@gmail.com>
2024-07-19 12:59:13 +07:00
Chris Abraham def3540f6b
improve naming
Signed-off-by: Chris Abraham <cjyabraham@gmail.com>
2024-07-10 15:41:53 +07:00
Chris Abraham ead933d91a
don't need to wrap this
Signed-off-by: Chris Abraham <cjyabraham@gmail.com>
2024-07-10 15:26:42 +07:00
Chris Abraham d1d7bf210d
Move away from focusing on "China"
Signed-off-by: Chris Abraham <cjyabraham@gmail.com>
2024-07-10 13:58:29 +07:00
Chris Abraham 8e5f618abb
Improve China test
Signed-off-by: Chris Abraham <cjyabraham@gmail.com>
2024-07-10 13:45:16 +07:00
Thomas P 83f5a31fc8
cleanup(search): drop some bind leftovers
The only usage of these functions was here, we dropped it when switching to PageFind

9d2317aa15 (diff-f355db8e18a5352f796b8030582fdf862ec9a7ea193ca4cf71de7df9e7386db1L69-L70)
2024-07-08 11:47:39 +02:00
Chris Abraham a4191d94ea Don't add new entries to search history here
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 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
Dipesh Rawat ddbc2c23e9
Add full-screen image display feature 2024-05-09 14:25:35 +01:00
Tim Bannister 6e83b0902e Set labels and reviewers for website assets 2024-04-05 00:46:07 +01:00
Gauravpadam d234b6c57d Added script for managing state of announcement banner
Script for dismissing the banners

Integration of the script

Some optimizations for the script

Reverting test changes for scheduled.yaml

rebase commit

Enhanced code readability
2024-03-13 18:34:37 +00:00
Kubernetes Prow Robot 43bd8db23d
Merge pull request #44644 from Gauravpadam/20240105_mermaid_bump
Bump Mermaid JS to v10.6.1
2024-01-31 13:23:00 -08:00
Gauravpadam ca75370c9d mermaid js bump
Remove outdated mermaid js

remove the second instance from scripts
2024-01-10 00:56:39 +05:30
Qiming Teng e9717f596d Bump version for bootstrap css 2023-12-14 08:34:57 +08:00
Dipesh Rawat 0c514f8e58
Add Hugo shortcode to fetch and display release binaries details
Signed-off-by: Dipesh Rawat <rawat.dipesh@gmail.com>
2023-11-03 15:18:19 +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
Dipesh Rawat d97c4a254e
Add sortable option to table shortcode 2023-09-25 00:12:28 +01:00
Christoph Mewes 8f5daeaead
add optional dark mode to API docs (#43084) 2023-09-21 10:54:43 +08:00
Christoph Mewes 0dc0a52b87 improve scrolling in API ref docs 2023-09-17 09:20:32 +02: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
ChengXiangdong 508f53d547 fix: remove unused variable and symbol 2022-09-06 16:39:53 +08:00
chrismetz09 61a1ec21b5 Fix Mermaid render problem 2022-08-31 14:49:00 -07:00
Tim Bannister b9afbb97c1
Upgrade to Mermaid 8.13.0
static/js/mermaid.min.js as fetched from https://cdn.jsdelivr.net/npm/mermaid@8.13.0/dist/mermaid.min.js
2021-12-21 18:55:19 +00:00
Tim Bannister 7738ba16fc Mark when JavaScript is available
This might be useful for custom styling, or for using
a pure-CSS fallback for some scripted behavior.

There is already a no-js class set on the <html> element;
this change removes it when JavaScript is running OK.
2021-10-03 17:14:11 +01:00
chrismetz09 cbff3ec4ea upgrade to mermaid 8.11.2 2021-08-26 10:53:18 -07:00
chrismetz09 51ccd736f5 fixed render problem for mermaid picts on ingress page 2021-06-14 21:13:05 -07: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
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 e84e0c0b75 update tab component, remove jquery-ui 2020-09-30 12:03:20 -04:00
Karen Bradshaw 160364d548 move search.md
add search bar to search page

fix bing anchors
2020-08-28 15:37:46 -04:00
Qiming Teng 8a1ccddfd4 Remove customization of 'anchors'
The AnchorsJS module has been killed recently in #22311 prematurely. Now we don't
have a global variable 'anchors' to customize. This PR removes the related code
in script.js in hope everything else is still working correctly.
2020-07-18 21:08:19 +08:00
Kubernetes Prow Robot 1943aaafd6
Merge pull request #22311 from sabazubair/remove-anchor.js
Remove /static/js/anchor-4.1.1-min.js
2020-07-15 18:58:35 -07:00
Kubernetes Prow Robot e5be21ef4d
Merge pull request #22283 from thekad/issue-22044
Removing duplicate custom-jekyll js
2020-07-14 09:55:21 -07:00
Qiming Teng bb07d99f08 Address review feedbacks 2020-07-06 06:52:46 +08:00