Commit Graph

61 Commits (60cdbe8d0693b03dba48a4d852f332084d572e1f)

Author SHA1 Message Date
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
Qiming Teng 162e5edb39 Clean up shared assets for API reference
This PR promotes the CSS, JS and FONTS files used by API reference to
the `static/css`, `static/js` and `static/fonts` directories
respectively. The intent is that for future releases, when generating
API reference docs, only the `index.html` and `navData.js` files need to
be copied from the generator tools.

Details of changes:

- `jquery-3.2.1.min.js` file is replaced by `jquery-3.3.1.min.js` to
  align with the version used by Docsy. We can investigate in the future
  whether this can be shared. Converging to the same version at least
  can reduce the risks of compatibility.
- `jquery.scrollTo.min.js` moved to `static/js` file and renamed to
  `jquery.scrollTo-2.1.2.min.js` so we know the version from file name.
- `scroll.js` moved to `static/js` and renamed to `scroll-apiref.js` to
  siginify that it is used by API reference.
- A `README.md` file is added to `static/js` directory for describing
  the purposes of the these files.
- `bootstrap.min.css` moved to `static/css` and renamed to
  `bootstrap-4.3.1.min.css` so that it can be shared and its version can
  be easily discovered.
- `font-awesome.min.css` moved to `static/css` and renamed to
  `fontawesome-4.7.0.min.css` for the same reason.
- `stylesheet.css` moved to `static/css` and renamed to
  `style_apiref.css` to siginify its purpose.
- A `README.md` file is added to `static/css` directory for describing
  the purposes of the these files.
- FontAwesome fonts files moved to `static/fonts` so that they can be
  shared across API reference versions.
- Current API reference (1.18) is modified to reference the relocated
  files. Upstream generator change on the way
  (kubernetes-sigs/reference-tools/#161).

Related: #22016, #22023, #22041, #22024, #22064
2020-07-05 13:43:03 +08:00
Saba Zubair 9aad658f6a removed anchor-4.1.1-min.js file from static/js/anchor-4.1.1 and the corresponding call in /layouts/partial/head.html#L77. This completes #22040 and serves as my first contribution to an OS project. 🎉 2020-07-03 21:12:27 -04:00
Jorge Gallegos f34fe97ba0 Removing duplicate custom-jekyll js
After docsy theme got merged these scripts aren't needed anymore.  Confirmed
after removing it (and all `<script>` references to it) the tooltip
functionality is still there.
Also removed the reference in `config.toml` to it, which may have stripped some
dangling whitespace.
2020-07-02 16:35:51 -05:00
TAKAHASHI Shuuji 412b4ef0ed Fix the no search result error when the keyword includes spaces. 2020-06-17 00:43:46 +09: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
Jim Angel bea8e2b1be adding mermaidjs shortcode with example 2020-04-19 14:48:22 -05:00
Jie Shen a34bbe4365
Cleanup user journeys related configs and scripts (#18814) 2020-01-30 17:46:19 -08:00