Update documentation style#235
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Contributor
There was a problem hiding this comment.
🔧 Build Fix:
The import path '../../lib/source' is incorrect and should point to '../../lib/geistdocs/source' where the actual source file is located. Additionally, the feed package dependency is missing from the docs app's package.json.
View Details
📝 Patch Details
diff --git a/apps/docs/app/og/route.tsx b/apps/docs/app/og/route.tsx
index 87017af..5aacc11 100644
--- a/apps/docs/app/og/route.tsx
+++ b/apps/docs/app/og/route.tsx
@@ -1,6 +1,6 @@
import { ImageResponse } from "next/og";
import type { NextRequest } from "next/server";
-import { source } from "../../lib/source";
+import { source } from "../../lib/geistdocs/source";
const loadGoogleFont = async (font: string, text: string, weights: string) => {
const url = `https://fonts.googleapis.com/css2?family=${font}:wght@${weights}&text=${encodeURIComponent(text)}`;
diff --git a/apps/docs/package.json b/apps/docs/package.json
index 653e275..d3c036b 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -21,6 +21,7 @@
"class-variance-authority": "^0.7.1",
"dexie": "^4.2.1",
"dexie-react-hooks": "^4.2.0",
+ "feed": "^5.1.0",
"fumadocs-core": "16.0.11",
"fumadocs-mdx": "13.0.8",
"fumadocs-ui": "16.0.11",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1f98b57..dd0a0ba 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -74,6 +74,9 @@ importers:
dexie-react-hooks:
specifier: ^4.2.0
version: 4.2.0(@types/react@19.2.2)(dexie@4.2.1)(react@19.2.0)
+ feed:
+ specifier: ^5.1.0
+ version: 5.1.0
fumadocs-core:
specifier: 16.0.11
version: 16.0.11(@types/react@19.2.2)(lucide-react@0.552.0(react@19.2.0))(next@16.0.1(@babel/core@7.28.4)(@opentelemetry/api@1.9.0)(react-dom@19.2.0(react@19.2.0))(react@19.2.0))(react-dom@19.2.0(react@19.2.0))(react@19.2.0)
@@ -3677,6 +3680,10 @@ packages:
picomatch:
optional: true
+ feed@5.1.0:
+ resolution: {integrity: sha512-qGNhgYygnefSkAHHrNHqC7p3R8J0/xQDS/cYUud8er/qD9EFGWyCdUDfULHTJQN1d3H3WprzVwMc9MfB4J50Wg==}
+ engines: {node: '>=20', pnpm: '>=10'}
+
fetch-blob@3.2.0:
resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==}
engines: {node: ^12.20 || >= 14.13}
@@ -5339,6 +5346,9 @@ packages:
sax@1.2.1:
resolution: {integrity: sha512-8I2a3LovHTOpm7NV5yOyO8IHqgVsfK4+UuySrXU8YXkSRX7k6hCV9b3HrkKCr3nMpgj+0bmocaJJWpvp1oc7ZA==}
+ sax@1.4.3:
+ resolution: {integrity: sha512-yqYn1JhPczigF94DMS+shiDMjDowYO6y9+wB/4WgO0Y19jWYk0lQ4tuG5KI7kj4FTp1wxPj5IFfcrz/s1c3jjQ==}
+
saxes@6.0.0:
resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==}
engines: {node: '>=v12.22.7'}
@@ -6085,6 +6095,10 @@ packages:
utf-8-validate:
optional: true
+ xml-js@1.6.11:
+ resolution: {integrity: sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==}
+ hasBin: true
+
xml-name-validator@5.0.0:
resolution: {integrity: sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==}
engines: {node: '>=18'}
@@ -9677,6 +9691,10 @@ snapshots:
optionalDependencies:
picomatch: 4.0.3
+ feed@5.1.0:
+ dependencies:
+ xml-js: 1.6.11
+
fetch-blob@3.2.0:
dependencies:
node-domexception: 1.0.0
@@ -11871,6 +11889,8 @@ snapshots:
sax@1.2.1: {}
+ sax@1.4.3: {}
+
saxes@6.0.0:
dependencies:
xmlchars: 2.2.0
@@ -12662,6 +12682,10 @@ snapshots:
ws@8.18.3: {}
+ xml-js@1.6.11:
+ dependencies:
+ sax: 1.4.3
+
xml-name-validator@5.0.0:
optional: true
Analysis
Module resolution failures prevent Next.js build
What fails: Next.js build fails due to two module resolution errors in the docs app:
./apps/docs/app/og/route.tsx:3:1- Can't resolve '../../lib/source'./apps/docs/app/rss.xml/route.ts:1:1- Can't resolve 'feed'
How to reproduce:
cd ./apps/docs && pnpm run buildResult:
Error: Turbopack build failed with 2 errors:
./apps/docs/app/og/route.tsx:3:1
Module not found: Can't resolve '../../lib/source'
./apps/docs/app/rss.xml/route.ts:1:1
Module not found: Can't resolve 'feed'
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.