Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs([DST-570]): Added "Whats new" pages to our docs #4186

Merged
merged 100 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
5ef3739
try things out
sarahgm Sep 13, 2024
2fa1a6a
trying stuff out - chaos
sarahgm Sep 16, 2024
adaf7c9
Merge branch 'main' into changelog-adjustments
sarahgm Sep 17, 2024
709deec
generate folder structure for changesets
sarahgm Sep 17, 2024
6235dc8
add comments
sarahgm Sep 17, 2024
a226045
improved structure of generated folders
sarahgm Sep 17, 2024
dfd7d0b
save all the changelogs
sarahgm Sep 17, 2024
dcb8450
having changelog navigatuon
sarahgm Sep 17, 2024
1a4aa1a
Merge branch 'main' into changelog-adjustments
sarahgm Sep 18, 2024
098eb82
save all changes
sarahgm Sep 18, 2024
915fc85
changed heading
sarahgm Sep 19, 2024
76ea34e
update changelogs correctly
sarahgm Sep 19, 2024
72f4f5a
update to have frontmatter structure
sarahgm Sep 20, 2024
a916bb5
fix layout
sarahgm Sep 20, 2024
9cfc226
add caption
sarahgm Sep 20, 2024
b6a08f4
split the heading
sarahgm Sep 20, 2024
9490230
save changes
sarahgm Sep 20, 2024
e447d08
save
sarahgm Sep 20, 2024
f9d8120
update the script
sarahgm Sep 23, 2024
2dd93a9
days difference
sarahgm Sep 23, 2024
df795e4
have badges in frontmatter
sarahgm Sep 23, 2024
e6c6872
Merge branch 'main' into changelog-adjustments
sarahgm Sep 23, 2024
a4d9924
have badges
sarahgm Sep 23, 2024
b35e61f
clean up
sarahgm Sep 23, 2024
41f7838
rename function
sarahgm Sep 23, 2024
3baaea6
add externallinks
sarahgm Sep 23, 2024
8d5e1ba
try stuff
sarahgm Sep 23, 2024
ef34422
change function
sarahgm Sep 24, 2024
03f183a
change function
sarahgm Sep 24, 2024
7e0ae71
have nav
sarahgm Sep 24, 2024
177a6f9
update
sarahgm Sep 24, 2024
690a719
remove everything with changelogpage
sarahgm Sep 24, 2024
3b4a8f8
save
sarahgm Sep 24, 2024
c4d6ae5
save
sarahgm Sep 24, 2024
6bd4911
Merge branch 'main' into changelog-adjustments
sarahgm Sep 24, 2024
b4f6bce
fix dates
sarahgm Sep 25, 2024
2dc8745
add docs changelog
sarahgm Sep 25, 2024
5824e3c
rename to whats new
sarahgm Sep 25, 2024
aac87d3
change order
sarahgm Sep 26, 2024
c505753
overview page
sarahgm Sep 26, 2024
8a04aa4
make it easier
sarahgm Sep 26, 2024
d06e1d9
add slug page for blog posts
sarahgm Sep 27, 2024
99027bd
adjusted the pages
sarahgm Sep 27, 2024
bceacc5
update in package json
sarahgm Sep 27, 2024
12c6ee0
save pages
sarahgm Sep 27, 2024
abad324
save
sarahgm Sep 30, 2024
8f2f0e0
fix navigation
sarahgm Sep 30, 2024
7627806
fix command menu
sarahgm Sep 30, 2024
1bc8082
update
sarahgm Sep 30, 2024
109855d
padding
sarahgm Sep 30, 2024
ec8ef93
update date format
sarahgm Sep 30, 2024
9db330e
Fix code scanning alert no. 77: Incomplete string escaping or encoding
sarahgm Sep 30, 2024
f410768
update
sarahgm Sep 30, 2024
e4ce469
mybe better
sarahgm Sep 30, 2024
6dd8d91
Create modern-dancers-knock.md
sarahgm Sep 30, 2024
783e648
try
sarahgm Sep 30, 2024
6044702
sarahgm Sep 30, 2024
485413a
try out stuff with blog posts
sarahgm Sep 30, 2024
a3a7106
try out stuff
sarahgm Sep 30, 2024
0548ecd
test
sarahgm Sep 30, 2024
f42f000
last test
sarahgm Sep 30, 2024
ce990eb
change back
sarahgm Oct 1, 2024
2667d62
update
sarahgm Oct 1, 2024
7a31aaa
maybe this helps
sarahgm Oct 1, 2024
03714aa
change back
sarahgm Oct 1, 2024
bb4186c
update structure of how to generate routes for bllog dir
sarahgm Oct 1, 2024
2e27b16
rename to releases
sarahgm Oct 1, 2024
7e7c0d3
contentlayer
sarahgm Oct 1, 2024
491aa5b
update release dir
sarahgm Oct 1, 2024
c67b6b3
Merge branch 'main' into changelog-adjustments
sarahgm Oct 1, 2024
d57529b
Create friendly-plants-check.md
sarahgm Oct 1, 2024
ec1f6b5
add metadata
sarahgm Oct 1, 2024
14ec1fe
Delete .changeset/modern-dancers-knock.md
sarahgm Oct 1, 2024
3da0206
hmmm revert
sarahgm Oct 1, 2024
053103c
update padding for last update
sarahgm Oct 2, 2024
d8e3b0a
update
sarahgm Oct 2, 2024
35f72be
change to ssr
sarahgm Oct 4, 2024
40c0b44
metadata
sarahgm Oct 4, 2024
1da30c3
add read more links
sarahgm Oct 4, 2024
9a42867
fix links in teaser cards
sarahgm Oct 4, 2024
24076f4
improve withh stacks
sarahgm Oct 4, 2024
1a35b0b
Merge branch 'main' into changelog-adjustments
sarahgm Oct 4, 2024
faed004
make changes on build script
sarahgm Oct 4, 2024
b4091c0
update release files
sarahgm Oct 4, 2024
54fd398
update latestpost
sarahgm Oct 4, 2024
716d021
update changeset
sarahgm Oct 4, 2024
33da3c1
change back
sarahgm Oct 4, 2024
1041919
update link buttons
sarahgm Oct 4, 2024
18a0c86
add caption before post
sarahgm Oct 4, 2024
8a2d286
update read more links
sarahgm Oct 4, 2024
49b2070
update link
sarahgm Oct 4, 2024
56f0589
rename to releases
sarahgm Oct 4, 2024
18f2db0
update link
sarahgm Oct 4, 2024
65a1130
fix layout
sarahgm Oct 7, 2024
96c9317
change caption
sarahgm Oct 8, 2024
dd1d0a2
add heading for changelog teaser cards
sarahgm Oct 8, 2024
cdd3d07
change caption in teaser list
sarahgm Oct 8, 2024
6cd769e
remove github link from changelogs
sarahgm Oct 8, 2024
41119ee
Update overview.mdx
sebald Oct 9, 2024
71b435e
update
sarahgm Oct 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"baseBranch": "main",
"access": "public",
"changelog": [
"@changesets/changelog-github",
"@changesets/changelog-git",
{ "repo": "marigold-ui/marigold" }
],
"fixed": [["@marigold/system", "@marigold/components", "@marigold/docs"]]
Expand Down
8 changes: 8 additions & 0 deletions .changeset/friendly-plants-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@marigold/docs": patch
---

docs([DST-570]): Added "Release" pages to our documentation

We now create for each changelog a page on our documentation, it is also possible to create release blog posts.
With these pages we improve communication, enhance user experience, and ensure all users have easy access to the latest updates in one central location.
2 changes: 1 addition & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@

### Patch Changes

- [#3939](https://github.com/marigold-ui/marigold/pull/3939) [`2cde433`](https://github.com/marigold-ui/marigold/commit/2cde433e21bc49e378b96c9d812baf21914cf382) Thanks [@sarahgm](https://github.com/sarahgm)! - feat[DST-481]: rename <Message> in <SectionMessage>
- [#3939](https://github.com/marigold-ui/marigold/pull/3939) [`2cde433`](https://github.com/marigold-ui/marigold/commit/2cde433e21bc49e378b96c9d812baf21914cf382) Thanks [@sarahgm](https://github.com/sarahgm)! - feat[DST-481]: rename `<Message>` in `<SectionMessage>`

- [#3967](https://github.com/marigold-ui/marigold/pull/3967) [`0773aa8`](https://github.com/marigold-ui/marigold/commit/0773aa8cd6ee71faf4f0d04f80f33cbe7fc56202) Thanks [@sebald](https://github.com/sebald)! - refa: Update TypeScript and adjust `<NumericFormat>` props

Expand Down
29 changes: 2 additions & 27 deletions docs/app/[...slug]/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,10 @@
import type { PropsWithChildren } from 'react';
import { Footer } from './_components/Footer';
import { SectionNavigation } from './_components/SectionNavigation';
import { DefaultLayout } from '@/ui/layout/DefaultLayout';

// Layout
// ---------------
const Layout = ({ children }: PropsWithChildren) => (
<>
<aside
className={[
'top-[--page-header-height]',
'py-[--page-sub-nav-padding] xl:py-[--page-sub-nav-padding-xl]',
'pl-[--page-padding-md] xl:pl-[--page-padding-xl]',
'h-[calc(100vh-var(--page-header-height))] w-[--page-sub-nav-width] xl:w-[--page-sub-nav-width-xl]',
'fixed z-10 hidden overflow-hidden hover:overflow-y-auto md:block',
'scrollbar-thin scrollbar-thumb-secondary-400 scrollbar-thumb-rounded-full scrollbar-track-transparent',
'border-secondary-200 border-r',
].join(' ')}
>
<SectionNavigation />
</aside>
<main
className={[
'pt-[--page-main-padding] xl:pt-[--page-main-padding-xl]',
'px-[--page-padding] md:px-[--page-padding-md] xl:pr-[--page-padding-xl]',
'md:pl-[calc(var(--page-sub-nav-width)+var(--page-main-padding))] xl:pl-[calc(var(--page-sub-nav-width-xl)+var(--page-main-padding-xl))]',
].join(' ')}
>
{children}
<Footer />
</main>
</>
<DefaultLayout>{children}</DefaultLayout>
);

export default Layout;
19 changes: 11 additions & 8 deletions docs/app/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ interface ContentPageProps {
async function getPageFromParams(params: ContentPageProps['params']) {
const slug = params?.slug?.join('/');
const page = allContentPages.find(page => page.slug === slug);

return page || null;
}

export async function generateMetadata({
params,
}: ContentPageProps): Promise<Metadata> {
const page = await getPageFromParams(params);

return page
? {
title: page.title,
Expand Down Expand Up @@ -57,7 +59,6 @@ export async function generateStaticParams(): Promise<

export default async function ContentPage({ params }: ContentPageProps) {
const page = await getPageFromParams(params);

if (!page) {
notFound();
}
Expand All @@ -69,14 +70,16 @@ export default async function ContentPage({ params }: ContentPageProps) {
<div className="text-secondary-400 pt-1">{page.caption}</div>
</div>
<div className="prose max-w-[70ch]">
<Mdx className="" title={page.title} code={page.body.code} />
</div>
<div className="col-start-2 hidden min-[1400px]:block">
<TocContainer />
</div>
<div className="text-text-primary-muted text-xs italic">
Last update: <RelativeTime date={new Date(page.modified)} />
<Mdx title={page.title} code={page.body.code} />
<div className="text-text-primary-muted pt-8 text-xs italic">
Last update: <RelativeTime date={new Date(page.modified)} />
</div>
</div>
{page.toc === false ? null : (
<div className="col-start-2 hidden min-[1400px]:block">
<TocContainer />
</div>
)}
</article>
);
}
2 changes: 2 additions & 0 deletions docs/app/_components/CommandItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export const PagesItem = ({
setPages,
}: PagesItemProps) => {
const goto = useGoto(setOpen, setPages);

return (
<CommandGroup heading={name} key={name} className={classNames.section}>
{items.map(page => (
Expand All @@ -233,6 +234,7 @@ export const PagesItem = ({
className={cn(classNames.item, 'group')}
key={page.slug}
value={page.slug}
keywords={[page.title]}
onSelect={() => goto({ slug: page.slug })}
>
<Inline space={4} alignY="center">
Expand Down
4 changes: 2 additions & 2 deletions docs/app/_components/SiteNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export const SiteNavigation = () => {
variant="main"
className="text-sm font-medium lg:px-1"
key={index}
current={pathname.includes(slug)}
href={link?.href ?? '/'}
current={pathname.startsWith(`/${slug}`)}
href={link?.href ?? `/${slug}`}
>
{name}
</NavLink>
Expand Down
10 changes: 10 additions & 0 deletions docs/app/releases/blog/[...slug]/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { PropsWithChildren } from 'react';
import { DefaultLayout } from '@/ui/layout/DefaultLayout';

// Layout
// ---------------
const Layout = ({ children }: PropsWithChildren) => (
<DefaultLayout>{children}</DefaultLayout>
);

export default Layout;
78 changes: 78 additions & 0 deletions docs/app/releases/blog/[...slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
import { baseUrl } from '@/lib/config';
import { DateFormat, Headline } from '@/ui';
import { allBlogs } from 'contentlayer/generated';
import { Metadata } from 'next';
import { notFound } from 'next/navigation';
import { TocContainer } from '@/ui/Toc';
import { Mdx } from '@/ui/mdx';

interface BlogPostProps {
params: {
slug: string[];
};
}
async function getPostFromParams(params: BlogPostProps['params']) {
const fullPath = `releases/blog/${params.slug}`;
const currentPost = allBlogs.find(post => post.slug === fullPath);

return currentPost || null;
}

export async function generateMetadata({
params,
}: BlogPostProps): Promise<Metadata> {
const post = await getPostFromParams(params);

return post
? {
title: post.title,
description: post.date,
applicationName: 'Marigold Design System',
appleWebApp: {
title: 'Marigold Design System',
},
metadataBase: new URL(baseUrl),
openGraph: {
siteName: 'Marigold Design System',
title: post.title,
description: post.date,
images: `${baseUrl}/api/og.png?title=${encodeURIComponent(post.title)}`,
type: 'website',
},
twitter: {
card: 'summary_large_image',
creator: '@reservix',
},
}
: {};
}

const BlogPost = async ({ params }: BlogPostProps) => {
const currentPost = await getPostFromParams(params);

if (!currentPost) {
notFound();
}

return (
<article
key={currentPost.title}
className="grid grid-cols-1 gap-x-24 gap-y-14 min-[1400px]:grid-cols-[minmax(min-content,70ch)_1fr]"
>
<div className="col-span-full">
<Headline level={1}>{currentPost.title}</Headline>
<div className="text-secondary-400 pt-1">
<DateFormat value={new Date(currentPost.date)} dateStyle="medium" />
</div>
</div>
<div className="prose max-w-[70ch]">
<Mdx title={currentPost.title} code={currentPost.body.code} />
</div>
<div className="col-start-2 hidden min-[1400px]:block">
<TocContainer />
</div>
</article>
);
};

export default BlogPost;
8 changes: 8 additions & 0 deletions docs/content/releases/blog-overview.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Releases
caption: Find all release blogs.
order: 2
badge: new
---

<PostList />
17 changes: 17 additions & 0 deletions docs/content/releases/blog/release-2024-09-20.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: 'Watch out! Breaking Change incoming: Removing HTML-Properties'
date: 2024-07-19
type: Blog
---

The Design System team is currently focusing on optimising the Marigold documentation, which includes adding new and higher quality content for users as well as cleaning up and removing outdated content.

## Breaking Change

We are removing all HTML properties on our Marigold components, as these should no longer be used in the future. If a user has used the HTML properties when using Marigold, he oder she must rewrite them after the breaking change. If this is not the case you can sit back and relax.

As part of this process, the upcoming Marigold release will remove content from the documentation that is not used and should no longer be used.

Removing content from the Marigold documentation is particularly necessary if it is not relevant for our users. This ensures that the documentation is not unnecessarily "bloated" with content and thus creates more space for content that our users really need and can find more quickly.

In addition, allowing the use of HTML properties was incorrectly authorised by the Design System Team in the past. This error is hereby corrected to prevent incorrect use of Marigold components in the future.
66 changes: 66 additions & 0 deletions docs/content/releases/blog/release-2024-09-26.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
title: Big news from Marigold
date: 2024-09-26
type: Blog
changed:
- components/content/card
- component/layout/inline
- component/layout/stack
---

We’re thrilled to introduce Marigold UI v2.0—a major upgrade designed to make building beautiful, accessible interfaces faster and easier than ever. Whether you’re crafting an enterprise-level web app or a sleek personal project, v2.0 offers the tools and flexibility you need to create polished UIs with minimal effort.

## Breaking Change

We’re thrilled to introduce Marigold UI v2.0—a major upgrade designed to make building beautiful, accessible interfaces faster and easier than ever. Whether you’re crafting an enterprise-level web app or a sleek personal project, v2.0 offers the tools and flexibility you need to create polished UIs with minimal effort.

## New

We’ve reimagined our theming system from the ground up. You can now:

Toggle dark mode in a single click.
Define custom color schemes with easy CSS variable support.
Build dynamic themes based on user preferences—no complex CSS required.

With performance optimizations in v2.0, your app’s UI will load faster and feel more responsive:

Smaller bundle sizes: We’ve trimmed down the library for better performance.
Lazy loading: Load components on demand to keep things snappy.
Optimized rendering: Minimized reflows and repaints for improved performance.
♿ 4. Accessibility That Works Out of the Box
We believe in making the web accessible to all. With improved ARIA support, better keyboard navigation, and enhanced screen reader compatibility, v2.0 ensures your app is usable by everyone.

## Changes

Our documentation has been revamped for clarity and ease of use:

Interactive code examples and live playgrounds for real-time testing.
Step-by-step guides for React, Vue, and vanilla JS integrations.
A streamlined customization guide to make theming and extending components simple.

## Bug fixes

### @marigold/components

- Card Layouts: For building stunning, responsive grids.
- Advanced Tables: With built-in sorting, filtering, and pagination.
- Notification Toasts: Fully customizable, ideal for real-time feedback.
- Sidebars & Drawers: Smooth, mobile-friendly navigation components.
- Skeleton Loaders: Keep users engaged while content loads.

### @marigold/system

- fixed blablabla

## Why Upgrade to v2.0?

Marigold UI v2.0 offers a significant upgrade in terms of performance, customization, and ease of use. By upgrading, you’ll be able to:

Build UIs faster with new, ready-to-use components.
Customize every aspect of your design system without hassle.
Offer a superior user experience with faster loading and better accessibility.
Migrating from v1.x? We’ve got you covered! Check out our migration guide for an easy, hassle-free update.

## What’s Next for Marigold UI?

We’re just getting started! In the coming months, expect more components, performance improvements, and an upcoming Figma plugin to bridge the gap between design and development.
Loading
Loading