-
Notifications
You must be signed in to change notification settings - Fork 141
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
The Graph Docs x Nextra #301
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
009cc4d
pnpm i
dimaMachina 7a13cbd
sidebar works
dimaMachina f56ab5d
code blocks works
dimaMachina a403d82
fixes
dimaMachina 378359c
refactor
dimaMachina 57ac9e0
fix ci
dimaMachina 6fcfd4f
decrease Global Bundle Size
dimaMachina c9aee39
fix build
dimaMachina 5abd2f0
fix with patch
dimaMachina 0f8bfeb
use stable version of nextra, remove patch
dimaMachina b165011
Benface/Nextra (#319)
benface File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,4 @@ yarn-error.log* | |
.idea/ | ||
|
||
*/public/sitemap*.xml | ||
.eslintcache |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,11 @@ | |
"build": "pnpm -r build", | ||
"start": "pnpm --filter @graphprotocol/docs start", | ||
"export": "pnpm --filter @graphprotocol/docs export", | ||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.mjs && pnpm prettier:check && pnpm typecheck", | ||
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx,.mjs --max-warnings 0 . && pnpm prettier:check && pnpm typecheck", | ||
"lint:fix": "eslint . --fix --ext .js,.jsx,.ts,.tsx,.mjs && pnpm prettier && pnpm typecheck", | ||
"prettier": "prettier . --write", | ||
"prettier:check": "prettier . --check", | ||
"typecheck": "tsc --noEmit", | ||
"typecheck": "pnpm --filter @graphprotocol/docs typecheck", | ||
"docker:build": "DOCKER_BUILDKIT=1 docker build . -t docs --no-cache", | ||
"docker:up": "docker run --rm -it -p 3000:80 -v \"$(pwd)/nginx.conf:/etc/nginx/nginx.conf\" docs", | ||
"docker:clean": "docker builder prune", | ||
|
@@ -21,19 +21,19 @@ | |
}, | ||
"devDependencies": { | ||
"@edgeandnode/eslint-config": "^1.3.0", | ||
"eslint": "^8.34.0", | ||
"eslint": "^8.35.0", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^13.1.2", | ||
"prettier": "^2.8.4", | ||
"typescript": "4.9.5" | ||
}, | ||
"pnpm": { | ||
"overrides": { | ||
"@types/react": "^17.0.52" | ||
} | ||
}, | ||
"lint-staged": { | ||
"**/*.{js,jsx,ts,tsx,mjs}": "eslint --fix", | ||
"**/*.{js,jsx,ts,tsx,mjs,mdx,json}": "prettier --write" | ||
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"[email protected]": "patches/[email protected]" | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# For some reasons I get build error for the following pages | ||
# | ||
# Error: Export encountered errors on following paths: | ||
# /ar/cookbook/cosmos | ||
# /es/cookbook/cosmos | ||
# /ja/cookbook/cosmos | ||
# /ko/cookbook/cosmos | ||
# /vi/cookbook/cosmos | ||
# /zh/cookbook/cosmos | ||
# | ||
# While visiting locally /ar/cookbook/cosmos | ||
# useRouter() returs route which is /en/cookbook/cosmos | ||
|
||
diff --git a/dist/use-internals.mjs b/dist/use-internals.mjs | ||
index 43482104268d7086e219a0704497f2b3bbe8ddb2..ce08afb3cd60c99ddd3fc7b165faf8d32ebf0033 100644 | ||
--- a/dist/use-internals.mjs | ||
+++ b/dist/use-internals.mjs | ||
@@ -17,7 +17,7 @@ function useInternals() { | ||
}; | ||
}, [route, __nextra_internal__.refreshListeners, rerender]); | ||
} | ||
- const context = __nextra_internal__.context[route]; | ||
+ const context = __nextra_internal__.context[__nextra_internal__.route] | ||
if (!context) { | ||
throw new Error( | ||
`No content found for the current route. This is a Nextra bug.` |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we use react 18