EGOS Docs
Introduction
EGOS Homev1.0
  1. Docs
  2. Guides
  3. Media Embedding

Media Embedding Guide

Previous

API Overview

    Media Embedding Guide

    How to embed images, videos, and other media in EGOS documentation

    4 min read

    Media Embedding Guide

    This guide covers how to embed images, YouTube videos, and other media content in EGOS documentation.

    Images

    Basic Image Syntax

    Use standard Markdown image syntax:

    ![Alt text description](/path/to/image.png)

    The alt text serves two purposes:

    1. Accessibility for screen readers
    2. Displayed as a caption below the image

    Live Example

    Here's an actual image from the EGOS dashboard (click to open in lightbox):

    EGOS Dashboard - Game Management InterfaceEGOS Dashboard - Game Management Interface

    The syntax used above:

    ![EGOS Dashboard - Game Management Interface](/homepage/Screenshot-Dashboard.png)

    Multiple Images (Gallery)

    When a page has multiple images, they form a gallery. Use arrow keys to navigate between them in the lightbox:

    Flow Editor - Visual Logic ProgrammingFlow Editor - Visual Logic Programming

    Component ConfigurationComponent Configuration

    Device ManagementDevice Management

    Lightbox Features

    All images automatically support a lightbox viewer:

    • Click any image to open it in fullscreen
    • Keyboard shortcuts in lightbox:
      • Esc - Close lightbox
      • + / - - Zoom in/out
      • R - Rotate image
      • 0 - Reset zoom and rotation
      • ← / → - Navigate between images
    • Toolbar actions:
      • Zoom controls with percentage display
      • Rotate button
      • Download button
      • Close button
    Pro Tip

    Hover over any image to see a zoom icon. Try clicking the images above to test the lightbox!


    YouTube Videos

    Video Syntax

    Embed YouTube videos using the image syntax with a youtube: prefix:

    ![Video Title](youtube:VIDEO_ID)

    Live Example

    Here's an embedded YouTube video:

    Claude Code Introduction

    The syntax used:

    ![Claude Code Introduction](https://www.youtube.com/watch?v=FjlE5dyiPlw)

    You can also use the short syntax with just the video ID:

    ![Video Title](youtube:FjlE5dyiPlw)

    Alternative URL Formats

    You can also use full YouTube URLs:

    ![Video](https://www.youtube.com/watch?v=VIDEO_ID) ![Video](https://www.youtube.com/embed/VIDEO_ID) ![Video](https://youtu.be/VIDEO_ID)

    Finding the Video ID

    The video ID is the unique identifier in YouTube URLs:

    https://www.youtube.com/watch?v=aqz-KE-bpKQ ^^^^^^^^^^^^ This is the video ID
    Note

    Videos are automatically responsive and maintain a 16

    aspect ratio. They include all standard YouTube player controls.


    Admonitions (Callouts)

    Use special callout blocks to highlight important information.

    Note

    > [!NOTE] > This is important information the reader should be aware of.
    Note

    This is important information the reader should be aware of.

    Tip

    > [!TIP] > Here's a helpful suggestion to improve your workflow!
    Pro Tip

    Here's a helpful suggestion to improve your workflow!

    Warning

    > [!WARNING] > Be careful! This action may have unintended consequences.
    Warning

    Be careful! This action may have unintended consequences.

    Danger

    > [!DANGER] > Critical warning! This could cause data loss or system damage.
    Danger

    Critical warning! This could cause data loss or system damage.


    Code Blocks

    Syntax Highlighting

    Use fenced code blocks with a language identifier:

    ```javascript function hello() { console.log('Hello, EGOS!'); } ```

    Renders as:

    function hello() { console.log('Hello, EGOS!'); }

    Supported Languages

    Common languages: javascript, typescript, python, bash, json, yaml, css, html, sql, and many more.

    Copy Button

    All code blocks include a copy button (appears on hover) for easy copying.


    Tables

    | Feature | Description | Status | |---------|-------------|--------| | Images | Lightbox support | Available | | Videos | YouTube embedding | Available |

    Renders as:

    FeatureDescriptionStatus
    ImagesFull lightbox supportAvailable
    VideosYouTube embeddingAvailable
    CodeSyntax highlightingAvailable

    Quick Reference

    Media TypeSyntaxExample
    Image![alt](/path)![Dashboard](/homepage/Screenshot-Dashboard.png)
    YouTube![title](youtube:ID)![Demo](youtube:aqz-KE-bpKQ)
    Note:::note ... :::Blue info box
    Tip:::tip ... :::Green suggestion
    Warning:::warning ... :::Yellow caution
    Danger:::danger ... :::Red alert

    Happy documenting!