diff --git a/.buildkite/scripts/steps/storybooks/build_and_upload.ts b/.buildkite/scripts/steps/storybooks/build_and_upload.ts
index 83f1ecb2a759d..19fed0e78885f 100644
--- a/.buildkite/scripts/steps/storybooks/build_and_upload.ts
+++ b/.buildkite/scripts/steps/storybooks/build_and_upload.ts
@@ -16,7 +16,6 @@ const STORYBOOKS = [
'canvas',
'cases',
'cell_actions',
- 'ci_composite',
'cloud_chat',
'coloring',
'chart_icons',
@@ -93,14 +92,12 @@ const upload = () => {
console.log('--- Generating Storybooks HTML');
process.chdir(path.join('.', 'built_assets', 'storybook'));
- fs.renameSync('ci_composite', 'composite');
const storybooks = execSync(`ls -1d */`)
.toString()
.trim()
.split('\n')
- .map((filePath) => filePath.replace('/', ''))
- .filter((filePath) => filePath !== 'composite');
+ .map((filePath) => filePath.replace('/', ''));
const listHtml = storybooks
.map((storybook) => `
${storybook}`)
@@ -110,8 +107,6 @@ const upload = () => {
Storybooks
- Composite Storybook
- All
diff --git a/.ci/.storybook/main.js b/.ci/.storybook/main.js
deleted file mode 100644
index c4e017179021a..0000000000000
--- a/.ci/.storybook/main.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License
- * 2.0 and the Server Side Public License, v 1; you may not use this file except
- * in compliance with, at your election, the Elastic License 2.0 or the Server
- * Side Public License, v 1.
- */
-
-const config = require('@kbn/storybook').defaultConfig;
-const aliases = require('../../src/dev/storybook/aliases').storybookAliases;
-
-config.refs = {};
-
-// Required due to https://github.com/storybookjs/storybook/issues/13834
-config.babel = async (options) => ({
- ...options,
- plugins: ['@babel/plugin-transform-typescript', ...options.plugins],
-});
-
-for (const alias of Object.keys(aliases).filter((a) => a !== 'ci_composite')) {
- // snake_case -> Title Case
- const title = alias
- .replace(/_/g, ' ')
- .split(' ')
- .map((n) => n[0].toUpperCase() + n.slice(1))
- .join(' ');
-
- config.refs[alias] = {
- title: title,
- url: `${process.env.STORYBOOK_BASE_URL}/${alias}`,
- };
-}
-
-module.exports = config;
diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts
index 98470ccf13658..88d8c04b42337 100644
--- a/src/dev/storybook/aliases.ts
+++ b/src/dev/storybook/aliases.ts
@@ -15,7 +15,6 @@ export const storybookAliases = {
canvas: 'x-pack/plugins/canvas/storybook',
cases: 'packages/kbn-cases-components/.storybook',
cell_actions: 'packages/kbn-cell-actions/.storybook',
- ci_composite: '.ci/.storybook',
cloud_chat: 'x-pack/plugins/cloud_integrations/cloud_chat/.storybook',
coloring: 'packages/kbn-coloring/.storybook',
language_documentation_popover: 'packages/kbn-language-documentation-popover/.storybook',