Skip to content

Commit

Permalink
add changelog page
Browse files Browse the repository at this point in the history
  • Loading branch information
souporserious committed May 14, 2024
1 parent 15ffbfb commit c5abdd2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
27 changes: 27 additions & 0 deletions site/app/changelog/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { MDXComponents } from 'mdxts/components'

import Changelog from '../../../packages/mdxts/CHANGELOG.md'

export default function Page() {
return (
<div
className="prose"
style={{
display: 'flex',
flexDirection: 'column',
gap: '1.6rem',
}}
>
<h1>Changelog</h1>
<Changelog
renderTitle={false}
components={{
pre: (props) => (
// @ts-expect-error
<MDXComponents.pre allowErrors {...props} />
),
}}
/>
</div>
)
}
4 changes: 4 additions & 0 deletions site/app/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ button {
text-wrap: pretty;
}

.prose li :where(h1, h2, h3) {
margin: 1rem 0;
}

main {
padding: 2rem;
}
Expand Down

0 comments on commit c5abdd2

Please sign in to comment.