Release 2.0.1

This commit is contained in:
SonMooSans
2023-09-10 17:08:11 +08:00
parent b7ec3f05b3
commit ff407cedf7
12 changed files with 53 additions and 31 deletions
-5
View File
@@ -1,5 +0,0 @@
---
'next-docs-ui': patch
---
Improve syntax highlighting
-5
View File
@@ -1,5 +0,0 @@
---
'next-docs-zeta': patch
---
Contentlayer: Sort pages by default
@@ -37,19 +37,27 @@ You spectify highlighted lines by adding a numbric range.
```
````
### Highlight Words
You can highlight a specific word by wrapping the word in `/`.
````mdx
```js /config/
const config = {
reactStrictMode: true
}
```
````
### Title
Add `title="x"` to the codeblock meta.
````mdx
```js title="next.config.js"
/** @type {import('next').NextConfig} */
const config = {
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
reactStrictMode: true,
images: {
domains: ['i.pravatar.cc']
}
reactStrictMode: true
}
const { withContentlayer } = require('next-contentlayer')
@@ -58,16 +66,20 @@ module.exports = withContentlayer(config)
```
````
### Inline
Inline code is supported too, `console.log("Hello World"){:js}`.
```mdx
`console.log("Hello World"){:js}`
```
## Example
```js title="next.config.js" {10} /config/
/** @type {import('next').NextConfig} */
const config = {
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
reactStrictMode: true,
images: {
domains: ['i.pravatar.cc']
}
reactStrictMode: true
}
const { withContentlayer } = require('next-contentlayer')
+2 -2
View File
@@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"next-docs-zeta": "2.0.0",
"next-docs-ui": "2.0.0",
"next-docs-zeta": "2.0.1",
"next-docs-ui": "2.0.1",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0",
+2 -2
View File
@@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"next-docs-zeta": "2.0.0",
"next-docs-ui": "2.0.0",
"next-docs-zeta": "2.0.1",
"next-docs-ui": "2.0.1",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0",
+6
View File
@@ -1,5 +1,11 @@
# create-next-docs-app
## 1.5.17
### Patch Changes
- Update examples
## 1.5.16
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "create-next-docs-app",
"description": "Create a new documentation site with Next Docs UI",
"version": "1.5.16",
"version": "1.5.17",
"homepage": "https://next-docs-zeta.vercel.app",
"author": "Money SonMooSans",
"repository": "github:SonMooSans/next-docs",
+8
View File
@@ -1,5 +1,13 @@
# next-docs-ui
## 2.0.1
### Patch Changes
- 8a05955: Improve syntax highlighting
- Updated dependencies [48c5256]
- next-docs-zeta@2.0.1
## 2.0.0
### Major 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": "2.0.0",
"version": "2.0.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
## 2.0.1
### Patch Changes
- 48c5256: Contentlayer: Sort pages by default
## 2.0.0
## 1.6.9
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "next-docs-zeta",
"description": "The library for building a documentation website in Next.js",
"version": "2.0.0",
"version": "2.0.1",
"homepage": "https://next-docs-zeta.vercel.app",
"author": "Money SonMooSans",
"repository": "github:SonMooSans/next-docs",
+4 -4
View File
@@ -142,10 +142,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: 2.0.0
specifier: 2.0.1
version: link:../../packages/next-docs-ui
next-docs-zeta:
specifier: 2.0.0
specifier: 2.0.1
version: link:../../packages/next-docs
react:
specifier: 18.2.0
@@ -191,10 +191,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: 2.0.0
specifier: 2.0.1
version: link:../../packages/next-docs-ui
next-docs-zeta:
specifier: 2.0.0
specifier: 2.0.1
version: link:../../packages/next-docs
react:
specifier: 18.2.0