-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
1 parent
f8ba347
commit 0d0c3e9
Showing
18 changed files
with
97 additions
and
76 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,12 @@ | ||
# fumadocs-contentlayer | ||
|
||
## 1.1.3 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [10e099a] | ||
- [email protected] | ||
|
||
## 1.1.2 | ||
|
||
### 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
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,7 @@ | ||
# create-next-docs-app | ||
|
||
## 10.0.2 | ||
|
||
## 10.0.1 | ||
|
||
## 10.0.0 | ||
|
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,12 @@ | ||
# next-docs-mdx | ||
|
||
## 8.2.1 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [10e099a] | ||
- [email protected] | ||
|
||
## 8.2.0 | ||
|
||
### Minor Changes | ||
|
@@ -85,7 +92,7 @@ | |
Become: | ||
|
||
```mdx | ||
import img_banner from '../../public/image.png'; | ||
import img_banner from "../../public/image.png"; | ||
|
||
<img alt="banner" src={img_banner} /> | ||
``` | ||
|
@@ -146,13 +153,13 @@ | |
`fromMap` has been removed. Please use `createMDXSource` instead. | ||
|
||
```ts | ||
import { map } from '@/.map'; | ||
import { createMDXSource } from 'next-docs-mdx'; | ||
import { loader } from 'next-docs-zeta/source'; | ||
import { map } from "@/.map"; | ||
import { createMDXSource } from "next-docs-mdx"; | ||
import { loader } from "next-docs-zeta/source"; | ||
|
||
export const { getPage, getPages, pageTree } = loader({ | ||
baseUrl: '/docs', | ||
rootDir: 'docs', | ||
baseUrl: "/docs", | ||
rootDir: "docs", | ||
source: createMDXSource(map), | ||
}); | ||
``` | ||
|
@@ -166,7 +173,7 @@ | |
```js | ||
const withNextDocs = createNextDocs({ | ||
mdxOptions: { | ||
lastModifiedTime: 'git', | ||
lastModifiedTime: "git", | ||
}, | ||
}); | ||
``` | ||
|
@@ -215,7 +222,7 @@ | |
|
||
```ts | ||
const utils = fromMap(map, { | ||
rootDir: 'ui', | ||
rootDir: "ui", | ||
schema: { | ||
frontmatter: frontmatterSchema, | ||
}, | ||
|
@@ -246,11 +253,11 @@ | |
The `validate` options is now renamed to `schema`. | ||
|
||
```ts | ||
import { defaultSchemas, fromMap } from 'next-docs-mdx/map'; | ||
import { defaultSchemas, fromMap } from "next-docs-mdx/map"; | ||
|
||
const utils = fromMap(map, { | ||
rootDir: 'docs/ui', | ||
baseUrl: '/docs/ui', | ||
rootDir: "docs/ui", | ||
baseUrl: "/docs/ui", | ||
schema: { | ||
frontmatter: defaultSchemas.frontmatter.extend({ | ||
preview: z.string().optional(), | ||
|
@@ -269,7 +276,7 @@ | |
|
||
```js | ||
const withNextDocs = createNextDocs({ | ||
rootContentPath: './content/docs', | ||
rootContentPath: "./content/docs", | ||
}); | ||
``` | ||
|
||
|
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
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 | ||
|
||
## 10.0.2 | ||
|
||
### Patch Changes | ||
|
||
- 10e099a: Add scrollbar to TOC | ||
- Updated dependencies [10e099a] | ||
- [email protected] | ||
|
||
## 10.0.1 | ||
|
||
### Patch Changes | ||
|
@@ -142,8 +150,8 @@ | |
<I18nProvider | ||
translations={{ | ||
cn: { | ||
name: 'Chinese', // required | ||
search: 'Translated Content', | ||
name: "Chinese", // required | ||
search: "Translated Content", | ||
}, | ||
}} | ||
></I18nProvider> | ||
|
@@ -156,15 +164,15 @@ | |
migrate: Use `createPreset` instead | ||
|
||
```js | ||
const { createPreset } = require('fumadocs-ui/tailwind-plugin'); | ||
const { createPreset } = require("fumadocs-ui/tailwind-plugin"); | ||
|
||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: [ | ||
'./components/**/*.{ts,tsx}', | ||
'./app/**/*.{ts,tsx}', | ||
'./content/**/*.mdx', | ||
'./node_modules/fumadocs-ui/dist/**/*.js', | ||
"./components/**/*.{ts,tsx}", | ||
"./app/**/*.{ts,tsx}", | ||
"./content/**/*.mdx", | ||
"./node_modules/fumadocs-ui/dist/**/*.js", | ||
], | ||
presets: [createPreset()], | ||
}; | ||
|
@@ -177,15 +185,15 @@ | |
Before: | ||
|
||
```tsx | ||
import { CodeBlock, Pre } from 'fumadocs-ui/mdx/pre'; | ||
import { CodeBlock, Pre } from "fumadocs-ui/mdx/pre"; | ||
|
||
<Pre title={title} allowCopy {...props} />; | ||
``` | ||
|
||
After: | ||
|
||
```tsx | ||
import { CodeBlock, Pre } from 'fumadocs-ui/components/codeblock'; | ||
import { CodeBlock, Pre } from "fumadocs-ui/components/codeblock"; | ||
|
||
<CodeBlock title={title} allowCopy> | ||
<Pre {...props} /> | ||
|
@@ -306,14 +314,14 @@ | |
Add theme presets for the Tailwind CSS plugin, the default and ocean presets are available now. | ||
|
||
```js | ||
const { docsUi, docsUiPlugins } = require('next-docs-ui/tailwind-plugin'); | ||
const { docsUi, docsUiPlugins } = require("next-docs-ui/tailwind-plugin"); | ||
|
||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
plugins: [ | ||
...docsUiPlugins, | ||
docsUi({ | ||
preset: 'ocean', | ||
preset: "ocean", | ||
}), | ||
], | ||
}; | ||
|
@@ -349,7 +357,7 @@ | |
Same as Docs Layout but doesn't include a sidebar. It can be used outside of the docs, a page tree is not required. | ||
|
||
```jsx | ||
import { Layout } from 'next-docs-ui/layout'; | ||
import { Layout } from "next-docs-ui/layout"; | ||
|
||
export default function HomeLayout({ children }) { | ||
return <Layout>{children}</Layout>; | ||
|
@@ -406,16 +414,16 @@ | |
If you are using Tailwind CSS for your docs, it's now recommended to use the official plugin instead. | ||
|
||
```js | ||
const { docsUi, docsUiPlugins } = require('next-docs-ui/tailwind-plugin'); | ||
const { docsUi, docsUiPlugins } = require("next-docs-ui/tailwind-plugin"); | ||
|
||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
darkMode: 'class', | ||
darkMode: "class", | ||
content: [ | ||
'./components/**/*.{ts,tsx}', | ||
'./app/**/*.{ts,tsx}', | ||
'./content/**/*.mdx', | ||
'./node_modules/next-docs-ui/dist/**/*.js', | ||
"./components/**/*.{ts,tsx}", | ||
"./app/**/*.{ts,tsx}", | ||
"./content/**/*.mdx", | ||
"./node_modules/next-docs-ui/dist/**/*.js", | ||
], | ||
plugins: [...docsUiPlugins, docsUi], | ||
}; | ||
|
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
Oops, something went wrong.