Skip to content

Commit 0c251e5

Browse files
committed
UI: Support inline code & nested list
1 parent b45f0ea commit 0c251e5

File tree

26 files changed

+836
-752
lines changed

26 files changed

+836
-752
lines changed

.changeset/little-rings-end.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@fumadocs/content-collections': patch
3+
'fumadocs-core': patch
4+
'create-fumadocs-app': patch
5+
'fumadocs-docgen': patch
6+
'fumadocs-mdx': patch
7+
'@fumadocs/mdx-remote': patch
8+
'fumadocs-openapi': patch
9+
'fumadocs-twoslash': patch
10+
'fumadocs-typescript': patch
11+
'fumadocs-ui': patch
12+
---
13+
14+
Bump deps

.changeset/slimy-kids-crash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'fumadocs-ui': patch
3+
---
4+
5+
Support Shiki inline code

.changeset/tricky-hats-cover.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'fumadocs-ui': patch
3+
---
4+
5+
Improve nested list styles

apps/docs/content/docs/headless/mdx/rehype-code.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ console.log('Hello');
4141

4242
You may filter the meta string before processing it with the `filterMetaString` option.
4343

44+
### Inline Code
45+
46+
`console.log("hello world"){:js}` works.
47+
48+
See https://shiki.style/packages/rehype#inline-code.
49+
4450
### Icon
4551

4652
Add an icon according to the language of codeblock.

apps/docs/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
"start": "next start"
1515
},
1616
"dependencies": {
17-
"@next/env": "^14.2.5",
17+
"@next/env": "^14.2.7",
1818
"@radix-ui/react-popover": "^1.1.1",
1919
"@radix-ui/react-tooltip": "^1.1.2",
2020
"@resvg/resvg-js": "^2.6.2",
21-
"@shikijs/transformers": "^1.13.0",
21+
"@shikijs/transformers": "^1.15.1",
2222
"algoliasearch": "^4.24.0",
2323
"class-variance-authority": "^0.7.0",
2424
"fumadocs-core": "workspace:*",
@@ -30,24 +30,24 @@
3030
"fumadocs-ui": "workspace:*",
3131
"geist": "^1.3.1",
3232
"katex": "^0.16.11",
33-
"lucide-react": "^0.428.0",
34-
"next": "^14.2.5",
33+
"lucide-react": "^0.437.0",
34+
"next": "^14.2.7",
3535
"phenomenon": "^1.6.0",
3636
"react": "^18.3.1",
3737
"react-dom": "^18.3.1",
38-
"rehype-katex": "^7.0.0",
38+
"rehype-katex": "^7.0.1",
3939
"remark-math": "^6.0.0",
4040
"satori": "^0.10.14",
41-
"shiki": "^1.13.0",
41+
"shiki": "^1.15.1",
4242
"tailwind-merge": "^2.5.2",
4343
"zod": "^3.23.8"
4444
},
4545
"devDependencies": {
46-
"@next/bundle-analyzer": "^14.2.5",
47-
"@next/eslint-plugin-next": "^14.2.5",
46+
"@next/bundle-analyzer": "^14.2.7",
47+
"@next/eslint-plugin-next": "^14.2.7",
4848
"@types/mdx": "^2.0.13",
49-
"@types/node": "22.3.0",
50-
"@types/react": "^18.3.3",
49+
"@types/node": "22.5.1",
50+
"@types/react": "^18.3.5",
5151
"@types/react-dom": "^18.3.0",
5252
"autoprefixer": "^10.4.20",
5353
"eslint-config-custom": "workspace:*",
@@ -57,7 +57,7 @@
5757
"tailwindcss": "^3.4.10",
5858
"tailwindcss-animate": "^1.0.7",
5959
"tsconfig": "workspace:*",
60-
"tsx": "^4.17.0",
60+
"tsx": "^4.19.0",
6161
"typescript": "^5.5.4",
6262
"webpack": "^5.90.3"
6363
}

apps/docs/source.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export default defineConfig({
4444
lastModifiedTime: 'git',
4545
mdxOptions: {
4646
rehypeCodeOptions: {
47+
inline: 'tailing-curly-colon',
4748
themes: {
4849
light: 'catppuccin-latte',
4950
dark: 'catppuccin-mocha',

examples/content-collections/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@fumadocs/content-collections": "workspace:*",
1212
"fumadocs-core": "workspace:*",
1313
"fumadocs-ui": "workspace:*",
14-
"next": "^14.2.5",
14+
"next": "^14.2.7",
1515
"react": "18.3.1",
1616
"react-dom": "18.3.1"
1717
},
@@ -20,7 +20,7 @@
2020
"@content-collections/mdx": "^0.1.3",
2121
"@content-collections/next": "^0.2.0",
2222
"@types/mdx": "^2.0.13",
23-
"@types/react": "^18.3.3",
23+
"@types/react": "^18.3.5",
2424
"@types/react-dom": "^18.3.0",
2525
"typescript": "^5.5.4"
2626
}

examples/i18n/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
"fumadocs-core": "workspace:*",
1212
"fumadocs-mdx": "workspace:*",
1313
"fumadocs-ui": "workspace:*",
14-
"next": "^14.2.5",
14+
"next": "^14.2.7",
1515
"react": "18.3.1",
1616
"react-dom": "18.3.1"
1717
},
1818
"devDependencies": {
1919
"@types/mdx": "^2.0.13",
20-
"@types/react": "^18.3.3",
20+
"@types/react": "^18.3.5",
2121
"@types/react-dom": "^18.3.0",
2222
"typescript": "^5.5.4"
2323
}

examples/next-mdx/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"fumadocs-mdx": "workspace:*",
1313
"fumadocs-ui": "workspace:*",
1414
"hast-util-to-jsx-runtime": "^2.3.0",
15-
"next": "^14.2.5",
15+
"next": "^14.2.7",
1616
"react": "18.3.1",
1717
"react-dom": "18.3.1",
1818
"remark": "^15.0.0",
@@ -21,7 +21,7 @@
2121
},
2222
"devDependencies": {
2323
"@types/mdx": "^2.0.13",
24-
"@types/react": "^18.3.3",
24+
"@types/react": "^18.3.5",
2525
"@types/react-dom": "^18.3.0",
2626
"typescript": "^5.5.4"
2727
}

examples/openapi/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"fumadocs-mdx": "workspace:*",
1414
"fumadocs-openapi": "workspace:*",
1515
"fumadocs-ui": "workspace:*",
16-
"next": "^14.2.5",
16+
"next": "^14.2.7",
1717
"postcss": "^8.4.41",
1818
"react": "18.3.1",
1919
"react-dom": "18.3.1",
@@ -22,7 +22,7 @@
2222
},
2323
"devDependencies": {
2424
"@types/mdx": "^2.0.13",
25-
"@types/react": "^18.3.3",
25+
"@types/react": "^18.3.5",
2626
"@types/react-dom": "^18.3.0",
2727
"rimraf": "^6.0.1",
2828
"typescript": "^5.5.4"

0 commit comments

Comments
 (0)