Skip to content

Commit

Permalink
Release 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fuma-nama committed Sep 10, 2023
1 parent b662ddb commit aed5e44
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 31 deletions.
5 changes: 0 additions & 5 deletions .changeset/heavy-clocks-mix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silly-adults-exercise.md

This file was deleted.

32 changes: 22 additions & 10 deletions apps/docs/content/docs/ui/components/codeblock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')
Expand Down
4 changes: 2 additions & 2 deletions examples/advanced/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions examples/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions packages/create-next-docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# create-next-docs-app

## 1.5.17

### Patch Changes

- Update examples

## 1.5.16

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create-next-docs/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 8 additions & 0 deletions packages/next-docs-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# next-docs-ui

## 2.0.1

### Patch Changes

- 8a05955: Improve syntax highlighting
- Updated dependencies [48c5256]
- [email protected]

## 2.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/next-docs-ui/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 6 additions & 0 deletions packages/next-docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# next-docs-zeta

## 2.0.1

### Patch Changes

- 48c5256: Contentlayer: Sort pages by default

## 2.0.0

## 1.6.9
Expand Down
2 changes: 1 addition & 1 deletion packages/next-docs/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aed5e44

Please sign in to comment.