-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
140 additions
and
68 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'create-next-docs-app': patch | ||
--- | ||
|
||
Update examples |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
title: Files | ||
description: Display file structure in your documentation | ||
icon: FolderTreeIcon | ||
--- | ||
|
||
import { File, Files } from 'next-docs-ui/components/files' | ||
import { TypeTable } from 'next-docs-ui/components/type-table' | ||
|
||
> it is an optional component which won't be loaded by default. | ||
**File Structure** | ||
|
||
<Files> | ||
<File title="app" defaultOpen> | ||
<File title="layout.tsx" /> | ||
<File title="page.tsx" /> | ||
<File title="global.css" /> | ||
</File> | ||
<File title="components"> | ||
<File title="button.tsx" /> | ||
<File title="tabs.tsx" /> | ||
<File title="dialog.tsx" /> | ||
</File> | ||
<File title="package.json" /> | ||
</Files> | ||
|
||
## Usage | ||
|
||
Wrap file components in `Files`. | ||
|
||
```mdx | ||
import { File, Files } from 'next-docs-ui/components/files' | ||
|
||
<Files> | ||
<File title="app" defaultOpen> | ||
<File title="layout.tsx" /> | ||
<File title="page.tsx" /> | ||
<File title="global.css" /> | ||
</File> | ||
<File title="components"> | ||
<File title="button.tsx" /> | ||
<File title="tabs.tsx" /> | ||
<File title="dialog.tsx" /> | ||
</File> | ||
<File title="package.json" /> | ||
</Files> | ||
``` | ||
|
||
<TypeTable | ||
type={{ | ||
title: { type: 'string' }, | ||
defaultOpen: { type: 'boolean', description: 'Open folder by default' }, | ||
children: { | ||
type: 'ReactNode', | ||
description: 'children files of the folder, consider as file if empty' | ||
} | ||
}} | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"> | ||
<url><loc>https://next-docs-zeta.vercel.app</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/page-tree</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/comparisons</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/images</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/internationalization</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/math</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/search</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/theme</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/components/breadcrumb</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/components/safe-link</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/components/sidebar</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/components/toc</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/contentlayer</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/contentlayer/internationalization</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/mdx/dynamic-content</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/utils/find-neighbour</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/utils/get-toc</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/utils/search</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/blocks/layout</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/blocks/nav</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/blocks/page</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/blocks/root-provider</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/commands/create-next-docs-app</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/components/card</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/components/codeblock</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/components/heading</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/components/roll-button</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/components/steps</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/components/tabs</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/components/type-table</loc><lastmod>2023-08-16T10:14:10.766Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/api/1</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/api/2</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/page-tree</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/comparisons</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/images</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/internationalization</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/math</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/search</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/theme</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/components/breadcrumb</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/components/safe-link</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/components/sidebar</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/components/toc</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/contentlayer</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/contentlayer/internationalization</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/mdx/dynamic-content</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/utils/find-neighbour</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/utils/get-toc</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/headless/utils/search</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/blocks/layout</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/blocks/nav</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/blocks/page</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/blocks/root-provider</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/commands/create-next-docs-app</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/components/card</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/components/codeblock</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/components/files</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/components/heading</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/components/roll-button</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/components/steps</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/components/tabs</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
<url><loc>https://next-docs-zeta.vercel.app/docs/ui/components/type-table</loc><lastmod>2023-08-16T12:47:19.047Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url> | ||
</urlset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# next-docs-ui | ||
|
||
## 1.6.1 | ||
|
||
### Patch Changes | ||
|
||
- 689c75d: Create Files component | ||
- Updated dependencies [fc6279e] | ||
- [email protected] | ||
|
||
## 1.6.0 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.