Skip to content

Commit

Permalink
[Website] Prepare FiligranUI docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkha committed Apr 2, 2024
1 parent f8b33b3 commit 80bb696
Show file tree
Hide file tree
Showing 24 changed files with 6,608 additions and 85 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import * as React from "react"
import * as LabelPrimitive from "@radix-ui/react-label"
import { Slot } from "@radix-ui/react-slot"
Expand All @@ -10,7 +11,7 @@ import {
useFormContext,
} from "react-hook-form";
import {cn} from '../../lib/utils'
import {Label} from '../clients'
import {Label} from './index'


const Form = FormProvider
Expand Down
2 changes: 1 addition & 1 deletion packages/filigran-ui/src/components/servers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export * from './button';
export * from './skeleton';
export * from './breadcrumb';
export * from './card';
export * from './form';
export * from '../clients/form';
export * from './input';
5 changes: 2 additions & 3 deletions packages/filigran-ui/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "./globals.css";
export * from "./components/servers/button";
export * from "./components/clients/dropdown-menu";
export * from "./components/clients/accordion";
export * from "./components/servers";
export * from "./components/clients";
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import {LiveProvider, LiveEditor, LiveError, LivePreview} from 'react-live'
import {FunctionComponent} from 'react'
import {tw} from 'twind'
import {Button} from 'filigran-ui'
import * as FiligranUIComponent from 'filigran-ui'

interface ReactLiveDisplayProps {
scope?: any
Expand All @@ -15,7 +15,7 @@ const ReactLiveDisplay: FunctionComponent<ReactLiveDisplayProps> = ({
codeExample,
noInline,
}) => {
const customComponent = {Button}
const customComponent = {...FiligranUIComponent}
return (
<div className="py-4">
<LiveProvider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Table page
title: Filigran UI presentation
---
## Welcome to my MDX page!

Expand Down
3 changes: 3 additions & 0 deletions projects/filigran-website/content/docs/1-colors.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Colors
---
3 changes: 3 additions & 0 deletions projects/filigran-website/content/docs/2-typography.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Typography
---
34 changes: 0 additions & 34 deletions projects/filigran-website/content/docs/button.mdx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Installation
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Accordion
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Alert dialog
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Breadcrumb
---
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ Displays a button or a component that looks like a button.
<Button variant="outline"> Outline </Button>
<Button variant="ghost"> Ghost </Button>
<Button variant="link"> Link </Button>
<Separator/>
</div>`} />
3 changes: 3 additions & 0 deletions projects/filigran-website/content/docs/components/card.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Card
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Dropdown menu
---
3 changes: 3 additions & 0 deletions projects/filigran-website/content/docs/components/input.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Input
---
3 changes: 3 additions & 0 deletions projects/filigran-website/content/docs/components/label.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Label
---
3 changes: 3 additions & 0 deletions projects/filigran-website/content/docs/components/select.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Select
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Separator
---
3 changes: 3 additions & 0 deletions projects/filigran-website/content/docs/components/sheet.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Sheet
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Skeleton
---
34 changes: 0 additions & 34 deletions projects/filigran-website/content/docs/welcome1.mdx

This file was deleted.

9 changes: 0 additions & 9 deletions projects/filigran-website/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@
const nextConfig = {
output: 'export',
basePath: process.env.BASE_PATH ?? '',
async redirects() {
return [
{
source: '/docs',
destination: '/docs/button',
permanent: true,
},
]
},
webpack(config) {
// Grab the existing rule that handles SVG imports
const fileLoaderRule = config.module.rules.find((rule) =>
Expand Down
Loading

0 comments on commit 80bb696

Please sign in to comment.