Skip to content

Adds video guidance to syntax ref guide#3253

Open
jmikell821 wants to merge 1 commit intomainfrom
issue-5626
Open

Adds video guidance to syntax ref guide#3253
jmikell821 wants to merge 1 commit intomainfrom
issue-5626

Conversation

@jmikell821
Copy link
Copy Markdown
Member

Resolves elastic/docs-content#5626 by adding guidance on how to add videos to docs.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 5, 2026

📝 Walkthrough

Walkthrough

This pull request introduces a new documentation page that provides guidance on embedding and linking videos in the docs. The changes include adding a reference to videos.md in the documentation table of contents (_docset.yml) and creating the new page itself with sections covering Elastic-hosted videos (including a note about lowercase URL characters for docs-builder compatibility), YouTube videos, and a best practices checklist with code examples.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding video guidance to the syntax reference guide.
Description check ✅ Passed The description is directly related to the changeset, explaining that it resolves the issue by adding video guidance to docs.
Linked Issues check ✅ Passed The PR successfully implements the core requirement: adding guidance on incorporating videos to the syntax reference guide and including a disclaimer about lowercase characters [#5626].
Out of Scope Changes check ✅ Passed All changes are scoped to the requirement: updates to the documentation structure and new video guidance file without extraneous modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch issue-5626

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/syntax/videos.md`:
- Line 6: The Elastic-hosted example contradicts the "Video link URLs must use
lowercase characters only" rule by using a mixed-case ID in the example URLs;
update the Elastic example so both video link URLs use the lowercase-only ID
(replace the mixed-case ID with its lowercase equivalent in the Elastic-hosted
example) so the guidance and example are consistent.
- Line 53: Update the checklist entry that currently reads "Use lowercase
characters in all video URLs" so it only applies to Elastic/integrations style
paths (e.g., URLs containing "elastic" or "/integrations/") and not to external
provider IDs like YouTube video IDs; change the sentence to explicitly scope
lowercase requirement to Elastic/integrations URL pattern and add a note that
provider IDs (e.g., YouTube IDs) must be left case-sensitive. Also adjust the
related duplicate instances of that checklist text so they match the new scoped
wording.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 17ab26ba-50e3-43af-9a9c-2560dbb20f0e

📥 Commits

Reviewing files that changed from the base of the PR and between b31505c and 4ced702.

📒 Files selected for processing (2)
  • docs/_docset.yml
  • docs/syntax/videos.md

Comment thread docs/syntax/videos.md
Videos can supplement documentation to demonstrate features, workflows, or complex procedures. Embed videos using standard Markdown link and image syntax.

:::{important}
Video link URLs must use **lowercase characters only**. Mixed-case URLs cause build failures in integrations documentation.
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot May 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Lowercase rule is contradicted by the Elastic-hosted example

Line 6 requires lowercase-only URLs, but Line 20 uses a mixed-case ID in both URLs. This undercuts the guidance and can lead to copy/paste failures in integration docs.

Suggested doc fix
-Video link URLs must use **lowercase characters only**. Mixed-case URLs cause build failures in integrations documentation.
+For integrations documentation, video link URLs must use **lowercase characters only**. Mixed-case URLs can cause build failures.

@@
-[![Attack Discovery video](https://play.vidyard.com/eT92arEbpRddmSM4JeyzdX.jpg)](https://videos.elastic.co/watch/eT92arEbpRddmSM4JeyzdX?)
+[![Attack Discovery video](https://play.vidyard.com/VIDEO_ID.jpg)](https://videos.elastic.co/watch/video_id?)

Also applies to: 20-20

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/syntax/videos.md` at line 6, The Elastic-hosted example contradicts the
"Video link URLs must use lowercase characters only" rule by using a mixed-case
ID in the example URLs; update the Elastic example so both video link URLs use
the lowercase-only ID (replace the mixed-case ID with its lowercase equivalent
in the Elastic-hosted example) so the guidance and example are consistent.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should say Video link URLs must use lowercase characters only, otherwise they cause build errors in integrations docs or something like that on line 5

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benironside That reads well — combining the rule and consequence into one sentence is cleaner. Here's a concrete version keeping the bold for emphasis:

Video link URLs must use **lowercase characters only**, otherwise they cause build failures in integrations documentation.

Comment thread docs/syntax/videos.md

- ✅ Introduce videos with context, such as "The following video demonstrates these steps (click to watch)."
- ✅ Use descriptive alt text that explains the video content
- ✅ Use lowercase characters in all video URLs
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

“All video URLs lowercase” is too broad and conflicts with YouTube IDs

Line 53/58 says all video URLs must be lowercase, but Line 44 shows a mixed-case YouTube ID. Lowercasing YouTube IDs can break links. Scope the lowercase warning to the Elastic/integrations URL pattern only.

Also applies to: 58-58, 44-44

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/syntax/videos.md` at line 53, Update the checklist entry that currently
reads "Use lowercase characters in all video URLs" so it only applies to
Elastic/integrations style paths (e.g., URLs containing "elastic" or
"/integrations/") and not to external provider IDs like YouTube video IDs;
change the sentence to explicitly scope lowercase requirement to
Elastic/integrations URL pattern and add a note that provider IDs (e.g., YouTube
IDs) must be left case-sensitive. Also adjust the related duplicate instances of
that checklist text so they match the new scoped wording.

Copy link
Copy Markdown

@benironside benironside left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, syntax is familiar. Not blocking, but the callout about the lowercase URLs is interesting. I haven't tested it but I think making clear exactly what happens with integrations docs if we use video URLs with mixed cases would be helpful.

Comment thread docs/syntax/videos.md
Videos can supplement documentation to demonstrate features, workflows, or complex procedures. Embed videos using standard Markdown link and image syntax.

:::{important}
Video link URLs must use **lowercase characters only**. Mixed-case URLs cause build failures in integrations documentation.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should say Video link URLs must use lowercase characters only, otherwise they cause build errors in integrations docs or something like that on line 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Internal]: Add guidance for adding videos to docs

2 participants