Skip to content

Commit

Permalink
Added social image
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Feb 10, 2024
1 parent 8211ef0 commit a2bab80
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 10 deletions.
53 changes: 53 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const env = process.env.NODE_ENV;
// https://vitepress.dev/reference/site-config
export default defineConfig({
base: env === 'production' ? '/emmett/' : '/',
lang: 'en-GB',
title: 'Emmett',
description: 'Event Sourcing made simple',
themeConfig: {
Expand All @@ -25,8 +26,60 @@ export default defineConfig({
},
],

search: {
provider: 'local',
},

editLink: {
pattern:
'https://github.com/event-driven-io/emmett/edit/master/docs/:path',
text: 'Suggest changes to this page',
},

socialLinks: [
{ icon: 'github', link: 'https://github.com/event-driven-io/emmett' },
],
footer: {
copyright: 'Copyright © Oskar Dudycz and contributors.',
},
},
head: [
// ['link', { rel: 'apple-touch-icon', type: 'image/png', size: "180x180", href: '/apple-touch-icon.png' }],
// ['link', { rel: 'icon', type: 'image/png', size: "32x32", href: '/favicon-32x32.png' }],
// ['link', { rel: 'icon', type: 'image/png', size: "16x16", href: '/favicon-16x16.png' }],
// ['link', { rel: 'manifest', manifest: '/manifest.json' }],
['meta', { property: 'og:title', content: 'Emmett' }],
['meta', { property: 'og:type', content: 'website' }],
[
'meta',
{
property: 'og:description',
content: 'Event Sourcing development made simple',
},
],
[
'meta',
{
property: 'og:image',
content: 'https://event-driven-io.github.io/emmett/social.png',
},
],
[
'meta',
{
property: 'og:url',
content: 'https://event-driven-io.github.io/emmett',
},
],
['meta', { property: 'twitter:card', content: 'summary_large_image' }],
['meta', { property: 'twitter:site', content: 'marten_lib' }],
['meta', { property: 'twitter:creator', content: 'marten_lib' }],
[
'meta',
{
property: 'twitter:image',
content: 'https://event-driven-io.github.io/emmett/social.png',
},
],
],
});
Binary file added docs/public/social.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 11 additions & 10 deletions docs/snippets/shoppingCart.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// #region getting-started-events

export type ProductItemAddedToShoppingCart = Event<
'ProductItemAddedToShoppingCart',
{
shoppingCartId: string;
productItem: PricedProductItem;
}
>;

export type ShoppingCartEvent =
| {
type: 'ShoppingCartOpened';
data: {
shoppingCartId: string;
clientId: string;
openedAt: string;
};
}
| {
type: 'ProductItemAddedToShoppingCart';
data: {
Expand All @@ -26,14 +27,14 @@ export type ShoppingCartEvent =
type: 'ShoppingCartConfirmed';
data: {
shoppingCartId: string;
confirmedAt: string;
confirmedAt: Date;
};
}
| {
type: 'ShoppingCartCanceled';
data: {
shoppingCartId: string;
canceledAt: string;
canceledAt: Date;
};
};

Expand Down

0 comments on commit a2bab80

Please sign in to comment.