Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync #836

Merged
merged 9 commits into from
Sep 8, 2024
Merged

Sync #836

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions apps/docs/app/layout.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

import { cva } from 'class-variance-authority';
import Link from 'next/link';
import { useParams, usePathname } from 'next/navigation';
import { useParams } from 'next/navigation';
import { type ReactNode, useId } from 'react';
import { Banner } from 'fumadocs-ui/components/banner';
import { cn } from '@/utils/cn';
import { modes } from '@/utils/modes';

Expand All @@ -25,20 +24,9 @@ export function Body({
children: ReactNode;
}): React.ReactElement {
const mode = useMode();
const pathname = usePathname();

return (
<body className={cn(mode, 'relative flex min-h-screen flex-col')}>
{pathname === '/' ? (
<Banner variant="rainbow" id="mdx-v10">
<Link
href="/blog/mdx-v10"
className="opacity-80 mix-blend-luminosity"
>
Fumadocs MDX v10 is now available. {'->'}
</Link>
</Banner>
) : null}
{children}
</body>
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"@vercel/style-guide": "^6.0.0",
"concurrently": "^8.2.2",
"concurrently": "^9.0.0",
"eslint": "^8.57.0",
"eslint-plugin-tailwindcss": "^3.17.4",
"prettier": "^3.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/content-collections/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"types:check": "tsc --noEmit"
},
"devDependencies": {
"@content-collections/core": "^0.6.4",
"@content-collections/core": "^0.7.0",
"@content-collections/mdx": "^0.1.3",
"@types/node": "22.5.4",
"eslint-config-custom": "workspace:*",
Expand Down
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# next-docs-zeta

## 13.4.9

### Patch Changes

- 083f04a: Fix link items text

## 13.4.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fumadocs-core",
"version": "13.4.8",
"version": "13.4.9",
"description": "The library for building a documentation website in Next.js",
"keywords": [
"NextJs",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/source/page-tree-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ function resolveFolderItem(

const linkResult = link.exec(item);
if (linkResult?.groups) {
const { icon, url, text } = linkResult.groups;
const { icon, url, name } = linkResult.groups;
const isRelative =
url.startsWith('/') || url.startsWith('#') || url.startsWith('.');

const node: PageTree.Item = {
type: 'page',
icon: ctx.options.resolveIcon?.(icon),
name: text,
name,
url,
external: !isRelative,
};
Expand Down
2 changes: 2 additions & 0 deletions packages/core/test/loader.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,14 @@ test('Nested Directories', async () => {
},
{
"external": true,
"name": "Text",
"type": "page",
"url": "https://google.com",
},
{
"external": true,
"icon": "Icon",
"name": "Text",
"type": "page",
"url": "https://google.com",
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app-versions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Used to track dependency versions in create-fumadocs-app",
"license": "MIT",
"dependencies": {
"@content-collections/core": "^0.6.4",
"@content-collections/core": "^0.7.0",
"@content-collections/mdx": "^0.1.3",
"@content-collections/next": "^0.2.0",
"@types/mdx": "^2.0.13",
Expand Down
2 changes: 2 additions & 0 deletions packages/create-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# create-next-docs-app

## 13.4.9

## 13.4.8

## 13.4.7
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-fumadocs-app",
"version": "13.4.8",
"version": "13.4.9",
"description": "Create a new documentation site with Fumadocs",
"keywords": [
"NextJs",
Expand Down
9 changes: 9 additions & 0 deletions packages/openapi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @fuma-docs/openapi

## 5.4.13

### Patch Changes

- Updated dependencies [083f04a]
- Updated dependencies [bcf51a6]
- fumadocs-core@13.4.9
- fumadocs-ui@13.4.9

## 5.4.12

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fumadocs-openapi",
"version": "5.4.12",
"version": "5.4.13",
"description": "Generate MDX docs for your OpenAPI spec",
"keywords": [
"NextJs",
Expand Down
8 changes: 8 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# next-docs-ui

## 13.4.9

### Patch Changes

- bcf51a6: Improve banner rainbow variant
- Updated dependencies [083f04a]
- fumadocs-core@13.4.9

## 13.4.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fumadocs-ui",
"version": "13.4.8",
"version": "13.4.9",
"description": "The framework for building a documentation website in Next.js",
"keywords": [
"NextJs",
Expand Down
5 changes: 3 additions & 2 deletions packages/ui/src/components/banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const rainbowLayer = (
'--via': 'rgba(164,255,68,0.4)',
animationDirection: 'reverse',
backgroundImage:
'repeating-linear-gradient(to right, var(--end), var(--start) 2%, var(--start) 5%, transparent 8%, transparent 14%, var(--via) 18%, var(--via) 22%, var(--mid) 28%, var(--mid) 30%, var(--via) 34%, var(--via) 36%, transparent, var(--end) 50%)',
'repeating-linear-gradient(60deg, var(--end), var(--start) 2%, var(--start) 5%, transparent 8%, transparent 14%, var(--via) 18%, var(--via) 22%, var(--mid) 28%, var(--mid) 30%, var(--via) 34%, var(--via) 36%, transparent, var(--end) calc(50% - 12px))',
backgroundSize: '200% 100%',
mixBlendMode: 'difference',
} as object
Expand All @@ -124,8 +124,9 @@ const rainbowLayer = (
'--end': 'rgba(64,0,255,0.51)',
'--via': 'rgba(255,89,0,0.56)',
backgroundImage:
'repeating-linear-gradient(to right, var(--end), var(--start) 4%, var(--start) 8%, transparent 9%, transparent 14%, var(--mid) 16%, var(--mid) 20%, transparent, var(--via) 36%, var(--via) 40%, transparent 42%, var(--end) 46%, var(--end) 50%)',
'repeating-linear-gradient(45deg, var(--end), var(--start) 4%, var(--start) 8%, transparent 9%, transparent 14%, var(--mid) 16%, var(--mid) 20%, transparent, var(--via) 36%, var(--via) 40%, transparent 42%, var(--end) 46%, var(--end) calc(50% - 16.8px))',
backgroundSize: '200% 100%',
mixBlendMode: 'color-dodge',
} as object
}
/>
Expand Down
Loading