docs(site): add "No Skin" option to installation skin picker (#1525)

This commit is contained in:
Ronald Urbina
2026-06-18 12:07:23 -03:00
committed by GitHub
parent 07428519a5
commit 0b1491c30e
15 changed files with 146 additions and 44 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ const DOCS_HELP = `Usage: @videojs/cli docs <slug> [--framework <html|react>]
Installation flags (for docs how-to/installation):
--preset <video|audio|background-video>
--skin <default|minimal>
--skin <default|minimal|none>
--source-url <url>
--media <html5-video|html5-audio|hls|background-video>
--install-method <cdn|npm|pnpm|yarn|bun>`;
@@ -241,6 +241,14 @@ describe('handleDocs', () => {
expect(output()).toContain('minimal');
});
it('generates headless (no skin) variant with skin none', async () => {
await handleDocs(htmlFlags({ skin: 'none' }), ['how-to/installation']);
const out = output();
expect(out).toContain('<video-player>');
expect(out).not.toContain('<video-skin>');
expect(out).not.toContain("'@videojs/html/video/skin'");
});
it('includes custom source URL in generated code', async () => {
await handleDocs(htmlFlags({ 'source-url': 'https://example.com/my-video.mp4' }), ['how-to/installation']);
expect(output()).toContain('https://example.com/my-video.mp4');