website/layouts/shortcodes
eunjeong Park 2e9cbbbcec Add fallback to default language for code_sample shortcode
This imporves internationalization support by falling back to the default
language's examples when a translation doesn't exist, prevention build errors
for missing localized code samples.

- Refactor code_sample.html to handle missing files more gracefully
- Move filename generation to scratch variable for reusability
- Add fallback logic to try default language when file not found in current language
- Reorganize source lookup flow with proper conditional blocks
- Maintain existing ghlink generation with updated filename variable
2025-08-16 12:45:44 +09:00
..
blocks Ready case studies shortcode for Docsy 2025-05-23 17:07:56 +01:00
case-studies
tutorials replace html-inline with shortcodes in the tutorial 2025-04-19 21:50:07 +03:00
api-reference.html
caution.html Use Docsy-style callouts 2024-05-11 22:00:12 +01:00
cncf-landscape.html
code.html Make tooltip localizable 2024-05-14 01:09:39 +01:00
code_sample.html Add fallback to default language for code_sample shortcode 2025-08-16 12:45:44 +09:00
codenew.html Make tooltip localizable 2024-05-14 01:09:39 +01:00
comment.html
cve-feed.html fix: Support offline builds 2025-06-22 11:43:37 -07:00
details.html Add support for <details> via shortcode 2024-10-20 14:20:31 +01:00
doc-versions-list.html
dockershim-removal.html
eol-releases.html Tweak date formats in patch releases page 2024-10-19 13:03:40 +01:00
example.html
feature-gate-description.html
feature-gate-list.html
feature-gate-table.html
feature-state.html Fix feature gate name conflicts (2/2) 2025-01-08 10:51:36 +08:00
figure.html Add full-screen image display feature 2024-05-09 14:25:35 +01:00
glossary_definition.html fix(shortcode): Fix glossary definition shortcode 2024-06-06 18:02:42 +02:00
glossary_tooltip.html Update glossary_tooltip.html to include relLangURL for $external link 2024-05-10 11:13:11 +03:00
heading.html
include.html
kat-button.html Update layouts for Katacoda removal 2024-08-09 13:15:00 +01:00
katacoda-tutorial.html Update layouts for Katacoda removal 2024-08-09 13:15:00 +01:00
kubeweekly.html Fix KubeWeekly archive link 2025-03-20 14:15:26 +07:00
latest-release-notes.html
latest-semver.html
latest-version.html
legacy-repos-deprecation.html
link.html
mermaid.html
note.html Use Docsy-style callouts 2024-05-11 22:00:12 +01:00
page-api-reference.html
param.html Warn on use of (deprecated) param shortcode 2024-05-15 21:34:16 +01:00
release-binaries.html fix: Support offline builds 2025-06-22 11:43:37 -07:00
release-branch.html
release-branches.html Tweak date formats in patch releases page 2024-10-19 13:03:40 +01:00
release-data.html
skew.html
tab.html
table.html
tabs.html
thirdparty-content.html
toc.html
upcoming-events.html
upcoming-releases.html Tweak date formats in patch releases page 2024-10-19 13:03:40 +01:00
version-check.html docs: shortcode formatting (#48622) 2025-01-26 06:39:22 -08:00
warning.html Use Docsy-style callouts 2024-05-11 22:00:12 +01:00