Skip to content

Commit

Permalink
Fix images for drupal assets (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
christianwiedemann authored Dec 16, 2024
1 parent 08e4ce4 commit cbe6ac8
Show file tree
Hide file tree
Showing 14 changed files with 3,964 additions and 4,829 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="https://github.com/wingsuit-designsystem/wingsuit/raw/master/images/wsuit-logo-stacked.svg" width="340px">
<img src="https://github.com/wingsuit-designsystem/wingsuit/raw/2.0.x/images/wsuit-logo-stacked.svg" width="340px">
</p>

# Build bulletproof TWIG Components in Storybook
Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/(docs)/assets/javascript/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ import 'alpinejs';
Wingsuit compiles each vendor file into a separate compiled vendor file, so you can easily embed them in your application.
You can find your vendor file under `dist/app-[type]/vendors/[your-library].js`.

Check out the [webpack asset preset](https://github.com/wingsuit-designsystem/wingsuit/blob/master/packages/core/src/server/presets/assets.ts) for more details!
Check out the [webpack asset preset](https://github.com/wingsuit-designsystem/wingsuit/blob/2.0.x/packages/core/src/server/presets/assets.ts) for more details!
2 changes: 1 addition & 1 deletion docs/src/app/(docs)/configurations/details/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Configuration

Wingsuit comes with a [preset](https://github.com/wingsuit-designsystem/wingsuit/blob/master/packages/core/src/stubs/defaultWingsuitConfig.stub.ts) of variables that are suitable for most use cases.
Wingsuit comes with a [preset](https://github.com/wingsuit-designsystem/wingsuit/blob/2.0.x/packages/core/src/stubs/defaultWingsuitConfig.stub.ts) of variables that are suitable for most use cases.

<b>The Wingsuit configuration file has three main sections</b>

Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/(docs)/testing/visual-testing/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const next: NextLink[] = [
{
title: 'Storybook addon storyshots',
link_title: 'Continue',
href: 'https://github.com/storybookjs/storybook/tree/master/addons/storyshots',
href: 'https://github.com/storybookjs/storybook/tree/2.0.x/addons/storyshots',
},
];

Expand Down
2 changes: 1 addition & 1 deletion examples/official-wingsuit/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="https://github.com/wingsuit-designsystem/wingsuit/raw/master/images/logo_wingsuit_c_it.svg" width="240px">
<img src="https://github.com/wingsuit-designsystem/wingsuit/raw/2.0.x/images/logo_wingsuit_c_it.svg" width="240px">
</p>

### Wingsuit is an open source designsystem to build reusable Twig Components with [Storybook](https://storybook.js.org/) for Drupal - with page and development speed in mind.
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/theming.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export const theme = create({
brandTitle: 'Wingsuit',
brandUrl: 'https://github.com/wingsuit-designsystem/wingsuit',
brandImage:
'https://github.com/wingsuit-designsystem/wingsuit/raw/master/images/wsuit-logo-inline.png',
'https://github.com/wingsuit-designsystem/wingsuit/raw/2.0.2/images/wsuit-logo-inline.png',
});
5 changes: 5 additions & 0 deletions presets/drupal/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ export function wingsuitConfig(): Config {
glob: '**/*.css',
replace: '.css',
},
{
folder: 'internal/',
glob: '**/images/*.{svg,gif,webp,jpg,jpeg}',
replace: '',
},
{
folder: 'behaviors/',
glob: '**/*.behavior.js',
Expand Down
2 changes: 1 addition & 1 deletion starter-kits/tailwind/apps/storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ export default {
},
],
},
}
},
],
};
2 changes: 1 addition & 1 deletion starter-kits/tailwind/apps/storybook/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { addons } from '@storybook/manager-api';
import { theme } from '@wingsuit-designsystem/storybook/theming';

theme.brandImage = "https://github.com/wingsuit-designsystem/wingsuit/raw/2.0.x/images/wsuit-logo-inline.png";
addons.setConfig({
theme,
});
1 change: 0 additions & 1 deletion starter-kits/tailwind/source/default/_macros/.gitkeep

This file was deleted.

21 changes: 0 additions & 21 deletions starter-kits/tailwind/source/default/_macros/forms.twig

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import './section.wingsuit.yml';
import './section.twig';
import './images/section-icon.svg';
Loading

0 comments on commit cbe6ac8

Please sign in to comment.