Release 1.6.1

This commit is contained in:
SonMooSans
2023-08-16 20:54:07 +08:00
parent 689c75d0b4
commit 8f6f3c6623
14 changed files with 140 additions and 68 deletions
-5
View File
@@ -1,5 +0,0 @@
---
'next-docs-ui': patch
---
Create Files component
+5
View File
@@ -0,0 +1,5 @@
---
'create-next-docs-app': patch
---
Update examples
-5
View File
@@ -1,5 +0,0 @@
---
'next-docs-zeta': patch
---
Support get last git edit time
+16 -16
View File
@@ -34,19 +34,19 @@ Zeta.
### A Table
| Feature | Next Docs UI | Nextra |
| ------------------- | ------------ | ----------------- |
| Static Generation | Yes | Yes |
| Cached | Yes | Yes |
| Light/Dark Mode | Yes | Yes |
| Syntax Highlighting | Yes | Yes |
| Table of Contents | Yes | Yes |
| Full-text Search | Yes | Yes |
| I18n | Yes | Yes |
| Page Icons | Yes | No |
| RSC | Yes | Pages Router Only |
| Remote Source | Yes | Not Documented |
| SEO | Via Metadata | Yes |
| Built-in Components | Yes | Yes |
| RTL Layout | No | Yes |
| Last Git Edit Time | No | Yes |
| Feature | Next Docs UI | Nextra |
| ------------------- | -------------- | ----------------- |
| Static Generation | Yes | Yes |
| Cached | Yes | Yes |
| Light/Dark Mode | Yes | Yes |
| Syntax Highlighting | Yes | Yes |
| Table of Contents | Yes | Yes |
| Full-text Search | Yes | Yes |
| I18n | Yes | Yes |
| Last Git Edit Time | Yes (Via Zeta) | Yes |
| Page Icons | Yes | No |
| RSC | Yes | Pages Router Only |
| Remote Source | Yes | Not Documented |
| SEO | Via Metadata | Yes |
| Built-in Components | Yes | Yes |
| RTL Layout | No | Yes |
@@ -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'
}
}}
/>
+1
View File
@@ -14,6 +14,7 @@
"components/card",
"components/heading",
"components/steps",
"components/files",
"components/roll-button",
"components/type-table",
"---Blocks---",
+35 -32
View File
@@ -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>
+2 -2
View File
@@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"next-docs-zeta": "1.6.0",
"next-docs-ui": "1.6.0",
"next-docs-zeta": "1.6.1",
"next-docs-ui": "1.6.1",
"next": "13.4.16",
"react": "18.2.0",
"react-dom": "18.2.0",
+2 -2
View File
@@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"next-docs-zeta": "1.6.0",
"next-docs-ui": "1.6.0",
"next-docs-zeta": "1.6.1",
"next-docs-ui": "1.6.1",
"next": "13.4.16",
"react": "18.2.0",
"react-dom": "18.2.0",
+8
View File
@@ -1,5 +1,13 @@
# next-docs-ui
## 1.6.1
### Patch Changes
- 689c75d: Create Files component
- Updated dependencies [fc6279e]
- next-docs-zeta@1.6.1
## 1.6.0
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "next-docs-ui",
"description": "The framework for building a documentation website in Next.js",
"version": "1.6.0",
"version": "1.6.1",
"homepage": "https://next-docs-zeta.vercel.app",
"author": "Money SonMooSans",
"repository": "github:SonMooSans/next-docs",
+6
View File
@@ -1,5 +1,11 @@
# next-docs-zeta
## 1.6.1
### Patch Changes
- fc6279e: Support get last git edit time
## 1.6.0
### Minor Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "next-docs-zeta",
"description": "The library for building a documentation website in Next.js",
"version": "1.6.0",
"version": "1.6.1",
"homepage": "https://next-docs-zeta.vercel.app",
"author": "Money SonMooSans",
"repository": "github:SonMooSans/next-docs",
+4 -4
View File
@@ -144,10 +144,10 @@ importers:
specifier: 0.3.4
version: 0.3.4([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])
next-docs-ui:
specifier: 1.6.0
specifier: 1.6.1
version: link:../../packages/next-docs-ui
next-docs-zeta:
specifier: 1.6.0
specifier: 1.6.1
version: link:../../packages/next-docs
react:
specifier: 18.2.0
@@ -193,10 +193,10 @@ importers:
specifier: 0.3.4
version: 0.3.4([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])
next-docs-ui:
specifier: 1.6.0
specifier: 1.6.1
version: link:../../packages/next-docs-ui
next-docs-zeta:
specifier: 1.6.0
specifier: 1.6.1
version: link:../../packages/next-docs
react:
specifier: 18.2.0