Skip to content

Commit 0ffab35

Browse files
authored
Merge pull request #4076 from illume/fix-storybook-theme
frontend: docs: headlamp-plugin: Fix storybook theme, use correct new logo
2 parents 31348ec + 737d846 commit 0ffab35

File tree

16 files changed

+1867
-131
lines changed

16 files changed

+1867
-131
lines changed

docs/headlamp_light.svg

Lines changed: 11 additions & 105 deletions
Loading

frontend/.storybook/baseMocks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
import { http, HttpResponse } from 'msw';
1818
import { NODE_DUMMY_DATA } from '../src/components/node/storyHelper';
1919

20+
// NOTE: Please keep this synced with headlamp/plugins/headlamp-plugin/config/.storybook/baseMocks.ts
21+
2022
/**
2123
* This contains several mocked endpoints
2224
* Those are used in most of the stories

plugins/headlamp-plugin/config/.storybook/HeadlampTheme.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
// To workaround a bug at time of writing, where theme is not refreshed,
33
// you may need to `npm run storybook --no-manager-cache`
44
import { create } from 'storybook/theming/create';
5+
import logoUrl from './headlamp_light.svg';
56

67
export default create({
78
base: 'light',
89
brandTitle: 'Headlamp plugin storybook',
910
brandUrl: 'https://headlamp.dev/docs/latest/development/plugins/functionality/#functionality',
11+
brandImage: logoUrl,
12+
fontBase: '"Overpass", sans-serif',
13+
fontCode: '"Overpass Mono", monospace',
1014
});
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)