Skip to content

Commit

Permalink
Merge pull request #46 from mrjvs/dev
Browse files Browse the repository at this point in the history
Guider v0.1.5
  • Loading branch information
mrjvs authored Mar 31, 2024
2 parents 876e703 + 124aa48 commit 1bb8b03
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions apps/docs/pages/docs/guider/guides/config/landing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ To make a landing page (or any page that isn't MDX for that matter), you will fi

If you want the layout to belong to a specific layout or site, you can specify it the `meta` prop - this is completely optional. It accepts the same data as the Frontmatter from a page.

```tsx title="index.mdx" showLineNumbers
```tsx title="index.tsx" showLineNumbers
import { GuiderLayout } from '@neato/guider/client';

export default function LandingPage() {
Expand All @@ -29,7 +29,7 @@ You can add any content you need inside of the `<GuiderLayout />{:tsx}` componen

In the case that you don't want to put in extra effort into making a landing page, you can opt for using our premade landing page:

```tsx title="index.mdx" showLineNumbers {12-38}
```tsx title="index.tsx" showLineNumbers {12-38}
import {
Button,
Card,
Expand Down Expand Up @@ -72,3 +72,7 @@ export default function LandingPage() {
);
}
```

<Important>
when making non-MDX pages, make sure you put it in a `.tsx` file instead of a `.mdx` file.
</Important>
2 changes: 1 addition & 1 deletion packages/guider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@neato/guider",
"version": "0.1.4",
"version": "0.1.5",
"description": "Beautiful documentation sites, without all the hassle",
"main": "./dist/index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/guider/src/client/components/markdown/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function MarkdownTable(props: MarkdownProps) {
return (
<div
className={classNames(
'gd-rounded-xl gd-border gd-border-line gd-overflow-hidden gd-my-8',
'gd-rounded-xl gd-border gd-border-line gd-overflow-x-auto gd-grid gd-grid-cols-1 gd-my-8',
props.attrs.class,
)}
>
Expand Down

0 comments on commit 1bb8b03

Please sign in to comment.