Commit Graph

267 Commits (dc4ecc02343b4da9fcef3ba99aad1bc340c8f69e)

Author SHA1 Message Date
Kubernetes Prow Robot cb6885545f
Merge pull request #24229 from sftim/20200929_load_sweetalert_async
Revise copy-and-paste helper for codenew shortcode
2020-10-19 04:48:14 -07:00
M. Habib Rosyad 4d9ee76ace Improve maintainability of Case Studies styling
- Add quote and lead shortcode
- Add case study metadata in front matter (to generate page)
- Allow case study page to inherit similar styles from a centralised CSS file.
2020-10-19 10:10:45 +07:00
Karen Bradshaw be9e8e9ad8 update tooltip styling to bootstrap 2020-10-05 12:05:02 -04:00
Tim Bannister 43a7be6495 If a blog article has a canonical URI set, link to it
This change lets us point search engines to the original article when we
mirror them from https://k8s.dev/ and potentially from other sites too.
2020-10-01 17:47:45 +01: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 a3fbdacef2 remove header partial 2020-09-30 13:40:32 -04:00
Karen Bradshaw e84e0c0b75 update tab component, remove jquery-ui 2020-09-30 12:03:20 -04:00
Surya Setiyaputra 02dccc54d4
Update 404.html
Remove text data-proofer-ignore
2020-09-22 00:48:15 +10:00
Karen Bradshaw 245f989b2a fix copy clipboard 2020-09-18 13:12:46 -04:00
Kubernetes Prow Robot c7dbfdd317
Merge pull request #23210 from sftim/20200816_add_cncf_landscape_shortcode
Add cncf-landscape shortcode
2020-09-15 10:52:08 -07:00
Tim Bannister 928c038559 Tidy 404 Not Found error page 2020-09-08 19:36:54 +01:00
Karen Bradshaw 71303db06b use docsy page edit/issue setup
setting feedback buttons, primary color setting

update i18n with issue string

remove local edit page string
2020-09-03 16:35:56 -04:00
Kubernetes Prow Robot 2e7e7aa43b
Merge pull request #23656 from celestehorgan/experiment-removing-roboto
Remove Roboto
2020-09-02 17:47:40 -07:00
Celeste Horgan 6ec2f71e58 Remove base_fonts.css
Signed-off-by: Celeste Horgan <celeste@cncf.io>
2020-09-02 16:41:06 -07:00
Kubernetes Prow Robot 5b08dbc38d
Merge pull request #23107 from celestehorgan/add-3rdparty-warning
Add 3rd party content warning
2020-09-02 12:53:06 -07:00
Celeste Horgan 0815480036 Remove blog.css as it is no longer used
Signed-off-by: Celeste Horgan <celeste@cncf.io>
2020-09-02 10:30:43 -07:00
Kubernetes Prow Robot 81a3f5420a
Merge pull request #23520 from sftim/20200828_revise_available_docs_versions_list
Revise “Supported Versions of the Kubernetes Documentation”
2020-09-01 12:37:50 -07:00
Celeste Horgan 47dd26bf09 Add 3rd party content warning
Signed-off-by: Celeste Horgan <celeste@cncf.io>
Co-authored-by: Tim Bannister <tim+github@scalefactory.com>
2020-09-01 10:39:06 -07:00
Kubernetes Prow Robot aa855d5988
Merge pull request #23029 from sftim/20200808_improve_callout_styling
Improve styling for callouts
2020-08-31 11:06:21 -07: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 2e55488319 Deprecate {{< versions-other >}} shortcode
Instead of this, use the docs layout named "supported-versions".
2020-08-28 14:58:17 +01:00
Tim Bannister 7bac2479ad Revise list of available documentation versions
For older releases, the previous rendering wasn't quite right.
Implement a custom layout for the supported versions list

This commit does NOT remove the shortcode named {{< versions-other >}}
because it is still used in some localizations.
2020-08-28 14:58:10 +01:00
Tim Bannister 4febf7471d Improve styling for callouts
Update styles for callouts (warning, caution, note); also avoid applying
callout-specific styles to general block quotes.
2020-08-27 00:04:26 +01:00
Kubernetes Prow Robot f6ffc7c881
Merge pull request #23028 from sftim/20200808_fix_glossary_definition_shortcode
Fix glossary definition shortcode
2020-08-26 14:57:04 -07:00
Kubernetes Prow Robot 390a4d8d9f
Merge pull request #22536 from brianpursley/website-22497
Preserve relative path when switching from latest version of the documentation to an older version
2020-08-26 14:49:02 -07:00
Kubernetes Prow Robot f169e99fee
Merge pull request #22043 from sftim/20200624_update_documentation_section_page_headers
Remove hero header from documentation section
2020-08-18 09:15:31 -07:00
Kubernetes Prow Robot 6783d77353
Merge pull request #23032 from sftim/20200808_show_deprecation_warning
Tidy & fix deprecation warnings
2020-08-18 09:13:31 -07:00
Tim Bannister fb127402c6 Add cncf-landscape shortcode
and adjust /partners/ to use it.
2020-08-18 13:34:43 +01:00
Tim Bannister 63cbc7c910 Fix buggy match for top of documentation
The match was against the page title, which isn't as stable as the
filename of the page. Switch to matching by filename.
2020-08-18 11:13:08 +01:00
Tim Bannister c7ee5d798c Remove hero header from documentation section 2020-08-18 11:13:06 +01:00
Tim Bannister 7e23f0f875 Tidy & fix deprecation warnings
Co-Authored-By: Karen Bradshaw <kbhawkey@gmail.com>
2020-08-16 18:34:09 +01:00
Karen Bradshaw 0898f1ccfc clean up analytics in footer 2020-08-12 19:00:55 -04:00
Tim Bannister c105f1a03a Fix glossary definition shortcode
Fix a bug rendering short glossary definitions. Also, add an example
of a short glossary definition to the style guide.
2020-08-11 22:41:42 +01:00
Karen Bradshaw 88856e6c01 modify layout of codenew shortcode 2020-08-11 09:58:12 -04:00
Rémy Léone 7258a8dfb6 Add a search JSON-LD meta description
Co-Authored-By: Tim Bannister <tim@scalefactory.com>
2020-08-10 09:34:56 +02:00
Brian Pursley 7bc5ee0710 Preserve relative path when switching between versions of the documentation 2020-08-09 10:41:36 -04:00
Kubernetes Prow Robot 91494d2e3c
Merge pull request #22579 from tengqm/disable-analytics-in-non-production
Disable analytics for non-production environment
2020-08-01 16:43:40 -07:00
Kubernetes Prow Robot 7713f1c16f
Merge pull request #22440 from sftim/20200709_link_to_alternative_translations
Add machine-readable hyperlinks to alternative translations
2020-07-30 14:41:06 -07:00
Tim Bannister 90b85c7a5e Automatically detect MermaidJS shortcode
Rather than requiring metadata set in a page's front matter,
automatically detect when detect when a page relies on MermaidJS.
2020-07-27 17:37:47 +01:00
Kubernetes Prow Robot 98fbbed9e2
Merge pull request #22673 from shuuji3/en/fix-glossary-definition-shortcodes-bug
Fix a bug of shortcode 'glossary_definition' which selects a wrong term
2020-07-26 20:48:16 -07:00
TAKAHASHI Shuuji 97b22f9fbe Fix a bug of shortcode 'glossary_definition' which selects a wrong term. 2020-07-24 01:43:34 +09:00
Celeste Horgan 7cd2327f87 Remove shortcodes in favor of layout partials
Signed-off-by: Celeste Horgan <celeste@cncf.io>
2020-07-23 09:31:51 -07:00
TAKAHASHI Shuuji 130822d3d6 Clean up case study images. 2020-07-22 14:24:04 +09:00
Qiming Teng bf11d5a744 Disable analytics for non-production environment
The analytics code/link is not always working. It takes about 33 seconds
to fail when building local sites for testing, and that is terrible.

This PR disables the analytics in non-production environment, so local
build starts up in seconds!
2020-07-18 21:27:57 +08:00
Qiming Teng 026989d5c5 Fix language selector issue
The language selector is not working. We are getting ERR_CONNECTION_CLOSED
when fetching jquery-3.3.1.min.js from code.jquery.com. The failure of
jquery is breaking other scripts such as jquery-ui-1.12.1.min.js,
script.js, bootstrap.min.js etc.

This PR changes the head partial to use cached version of
jquery-3.3.1.min.js in hope we fix the language selector issue and
possibly other relate problems.
2020-07-18 20:12:31 +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
Karen Bradshaw 28e42c0f4a format search-input.html 2020-07-13 17:15:39 -04:00
Tim Bannister 847f57ecf5 Fix whitespace trimming for note callout shortcode
Use the same whitespace trimming that the other callout shortcodes
(warning, caution) use, and avoid excessive newline removal.
2020-07-13 19:17:07 +01:00
Tim Bannister b59f68e857 Hyperlink to alternative translations 2020-07-09 13:31:25 +01:00
Celeste Horgan 37b1f94fe4 Revert T "version_menu" 2020-07-08 09:48:16 -07:00
Celeste Horgan f9e2439e56 Include scripts.html in case studies template 2020-07-07 17:50:20 -07:00
Celeste Horgan 086e8a60f2 Use bootstrap right alignment 2020-07-07 17:50:20 -07:00
Kubernetes Prow Robot 36578f4c9e
Merge pull request #22310 from shuuji3/make-versions-translatable-in-navbar
Make "Versions" string on the navbar translatable
2020-07-04 10:26:48 -07:00
Kubernetes Prow Robot 4c19ec60a1
Merge pull request #22175 from sftim/20200629_remove_capture_shortcodes
Remove capture shortcodes & warn on future use.
2020-07-04 05:30:48 -07:00
Tim Bannister 325ba8754a Warn on use of capture shortcode
If anyone uses the capture shortcode, emit a warning. The website
no longer uses capture shortcodes.
2020-07-04 11:11:29 +01:00
TAKAHASHI Shuuji a15b40604c Make "Versions" string on the navbar translatable. 2020-07-04 12:22:01 +09: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
Tim Bannister d5c74c069c (Temporarily) disable upcoming events for live site
Live website builds are failing; disable this part of the shortcode to
allow builds to resume.
2020-06-30 19:17:18 +01:00
Karen Bradshaw e2dadcf668 adjust title, description order 2020-06-28 06:50:39 -04:00
Kubernetes Prow Robot d839ff12de
Merge pull request #21817 from shuuji3/narrow-spaces-between-lines
Narrow the space between lines in buttons in docs/home
2020-06-27 16:38:14 -07:00
TAKAHASHI Shuuji b2f7323f54 Narrow the space between lines of labels.
Apply suggestions from code review
Co-authored-by: Celeste Horgan <celeste@cncf.io>
2020-06-28 01:08:49 +09:00
Kubernetes Prow Robot b86347d72a
Merge pull request #22047 from sftim/20200624_mark_announcement_as_aside
Adjust HTML generated for announcements
2020-06-26 17:00:14 -07:00
Tim Bannister 8fcfbe692b Mark announcements nosnippet
Add special metadata that Google Search pays attention to, so that the
search engine ignores the <aside> element contents for announcements.
2020-06-26 21:20:16 +01:00
Kubernetes Prow Robot 989f5da043
Merge pull request #22046 from sftim/20200624_move_lead_text_after_heading
Move documentation page lead text after the heading
2020-06-25 10:50:38 -07:00
Kubernetes Prow Robot 5567be79bc
Merge pull request #21888 from Arhell/fix-toggle
fix toggle button color on hover & jumping menu when close
2020-06-25 01:24:40 -07:00
Tim Bannister 6a94d9838b Mark front page announcements as <aside> elements
This matches the HTML used on the rest of the site. It helps avoid
search engines treating the aside as the primary content of the web
page.
2020-06-24 22:35:00 +01:00
Arhell 2adc272dbe
fix toggle button color on hover & jumping menu when close 2020-06-25 00:08:03 +03:00
Tim Bannister e2805d47b5 Move documentation page lead text after the heading
This helps because the lead text follows the page heading on
the section index that links to a page. Consistency helps readability.
2020-06-24 22:01:14 +01:00
Arhell a3af36a5af
update search placeholder 2020-06-23 16:41:48 +03:00
Karen Bradshaw e4bab03c1a change main tag in announcement 2020-06-15 16:24:19 -04: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
Karen Bradshaw 59dbf9d693 clean up capture templates 2020-06-09 19:33:15 -04:00
Karen Bradshaw 1502e0281d config for removing capture stmts 2020-06-09 19:33:15 -04: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
Kubernetes Prow Robot 83a4559c2c
Merge pull request #21231 from Lonor/master
Bind the link of the page history to the language
2020-05-28 14:37:15 -07:00
Lawrence 4a1b1c4271
Bind the link of the page history to the language 2020-05-27 14:20:36 +08:00
Tim Bannister 2eb6ab1ad3 Add a link checker
Signed-off-by: Celeste Horgan <celeste@cncf.io>
2020-05-26 16:06:46 -07:00
Irvi Firqotul Aini 3530e6d6d0 Using regex to allow rendering notes with an indent, for example:
{{< note >}}
If the last element of the path is a substring of the
last element in request path, it is not a match (for example:
`/foo/bar` matches`/foo/bar/baz`, but does not match `/foo/barbaz`).
{{< /note >}}

After changin to hugo 0.70 trim seems to be not working.
2020-05-14 00:16:06 +07:00
Kubernetes Prow Robot ff40417bc7
Merge pull request #20878 from Arhell/subscribe
add localization for subscribe button
2020-05-12 12:00:37 -07:00
Arhell 491c9e2718
add localization for subscribe button 2020-05-12 20:46:35 +03:00
Karen Bradshaw 7a98007a29 update tabs shortcode 2020-05-11 18:12:43 -04:00
Kubernetes Prow Robot 6c96bcbe84
Merge pull request #20893 from jimangel/fix-feature-state
fix for feature state shortcode
2020-05-11 14:28:22 -07:00
Jim Angel f3e733ecba fix for feature state shortcode 2020-05-11 14:57:03 -05:00
Jim Angel afccb08ced updating link for community cal 2020-05-11 13:59:04 -05:00
TAKAHASHI Shuuji 7f95a9e419 Fix a broken table in contribute/new-content/overview.md by modifying shortcodes. 2020-05-03 14:39:31 +09:00
Maciej Filocha 50f10c2a1a Fix glossary_aka template 2020-04-28 11:30:06 +02:00
Jim Angel bea8e2b1be adding mermaidjs shortcode with example 2020-04-19 14:48:22 -05:00
Jim Angel a3decc2c8f automating-version-skew 2020-04-16 07:42:21 -05:00
Karen Bradshaw 45d3532de9 fix duplicate Slack name, header 2020-04-14 11:43:25 -04:00
Jim Angel 00b106a744 fixing information about dev contrib 2020-04-13 12:19:03 -05:00
Rémy Léone 9c864c965b Add a Progressive Web App manifest
Add a valid apple-touch-icon link in header
Co-Authored-By: Tim Bannister <tim@scalefactory.com>
2020-04-06 11:59:47 +02:00
Kubernetes Prow Robot 522d1ce587
Merge pull request #19343 from remyleone/logo_json_types
Add a logo JSON-LD meta information about Kubernetes
2020-04-04 13:39:45 -07:00
Ihor Sychevskyi 97849f96e3
fix home docs page button on mobile & tablet (#19646) 2020-03-22 14:06:44 -07:00
divya-mohan0209 56379649d3
Added date metadata to blog articles #19503 (#19523)
Added <time> </time> HTML element to the date heading in blog post articles. 
The opening <time> tag also was given a datetime attribute, with the value using another Hugo shortcode. Since these use Go time patterns; we included the following in the opening <time> tag datetime="{{ .Date.Format "2006-01-02" }}".
2020-03-07 05:31:34 -08:00
Kubernetes Prow Robot 066b9f3b8c
remove extra spaces from template (#19495) 2020-03-05 09:30:38 -08:00
Kubernetes Prow Robot 67c0fb987e
Training page in the top nav (#19214)
* Create new page and add to top nav

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

* The basics

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

* A bit of inline css

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

* Fix CSS

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

* Fix link + Add to bottom row

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

* Address feedback in PR

* Address feedback from elsewhere

* Fix button alignment

* Add training partners

* Simplify css

* Apply suggestions from review

Co-Authored-By: Zach Corleissen <zacharysarah@users.noreply.github.com>

* Fix landscape + text block widths

Co-authored-by: Zach Corleissen <zacharysarah@users.noreply.github.com>
2020-03-04 11:01:48 -08:00
Yong Zhang 55de253934
Localize “email address” placeholder on home page (#19359) 2020-02-28 01:22:39 -08:00