mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
docs(site): add "No Skin" option to installation skin picker (#1525)
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user