From de4650cfc8e1513cbb165f7d1db0613d7aa02820 Mon Sep 17 00:00:00 2001 From: Wyllie Fang Date: Tue, 29 Jul 2025 23:06:57 -0700 Subject: [PATCH 1/2] add video hosting doc Signed-off-by: Wyllie Fang --- .../creating-your-learning-path/index.md | 93 +++++++++++++++++-- 1 file changed, 85 insertions(+), 8 deletions(-) diff --git a/content/en/cloud/academy/creating-your-learning-path/index.md b/content/en/cloud/academy/creating-your-learning-path/index.md index 970af6051..bf02bb4bc 100644 --- a/content/en/cloud/academy/creating-your-learning-path/index.md +++ b/content/en/cloud/academy/creating-your-learning-path/index.md @@ -161,7 +161,16 @@ Enhance your course with images and other visual aids. The recommended and stand For all assets, please use the Page Bundling method. It simplifies asset management by co-locating images with the Markdown files that use them. {{< /alert >}} -**How to Add an Image** +### Size Limits for Embedded Media +While there's no hard-coded size limit, we enforce these practical constraints: +| Media Type | Recommended Max Size | Impact Beyond Limit | +|------------|----------------------|-------------------------------| +| Video | 50 MB | Slow builds, CI failures | +| Image | 5 MB | Hugo memory overflow. | +| PDF | 20 MB | Browser loading delays. | + + +### How to Add an Image 1. Place your image file (e.g., `hugo-logo.png`) in the **same directory** as your Markdown file (e.g., `Chapter-1.md`). @@ -175,18 +184,71 @@ For all assets, please use the Page Bundling method. It simplifies asset managem The `usestatic` shortcode is **deprecated** and should not be used! {{< /alert >}} -**How to Add a Video** +### How to Add a Video +```mermaid +graph LR + A[Add Video] --> B{Size >50MB?} + B -->|Yes| C[External Platform] + B -->|No| D[Page Bundling] + C --> E[Embed with URL] + D --> F[Local Reference] +``` + +#### Best Practices for Video Storage +**Recommended Approach (Page Bundling):** +```markdown +// Directory structure +content/ +└── learning-paths/ + └── org-uuid/ + └── course-name/ + ├── chapter.md + └── video-demo.mp4 // Same directory as Markdown + +// In chapter.md + +``` -```text -{{}} -