Skip to content

Commit 885a857

Browse files
authored
Update dependencies + tweaks (#462)
* Update dependencies + tweaks * Remove `lodash` from `website` * Fix source string that causes Crowdin to rewrite as invalid MDX, breaking the build * Prevent “Translation 'index.title' for locale XX not found” warnings
1 parent d1ec7d9 commit 885a857

13 files changed

+1074
-1158
lines changed

.eslintrc.cjs

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ module.exports = {
1414
parserOptions: {
1515
project: 'tsconfig.json',
1616
},
17+
rules: {
18+
'@typescript-eslint/no-unsafe-argument': 'off', // lots of false positives for some reason
19+
},
1720
},
1821
{
1922
// We lint only english pages because other languages will be translated from english

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"typecheck": "turbo run typecheck"
2323
},
2424
"devDependencies": {
25-
"@edgeandnode/eslint-config": "^1.3.5",
25+
"@edgeandnode/eslint-config": "^2.0.2",
2626
"eslint": "^8.46.0",
27-
"eslint-plugin-mdx": "^2.1.0",
27+
"eslint-plugin-mdx": "^2.2.0",
2828
"husky": "^8.0.3",
2929
"lint-staged": "^13.2.3",
3030
"prettier": "^3.0.1",

packages/nextra-theme/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@
4343
"react-use": "^17.4.0"
4444
},
4545
"devDependencies": {
46-
"@edgeandnode/gds": "^2.8.1",
47-
"@edgeandnode/organisms": "^2.9.1",
46+
"@edgeandnode/gds": "^2.9.0",
47+
"@edgeandnode/organisms": "^2.10.0",
4848
"@emotion/react": "^11.11.1",
4949
"@types/lodash": "^4.14.196",
50-
"@types/react": "^18.2.18",
50+
"@types/react": "^18.2.19",
5151
"@types/react-dom": "^18.2.7",
52-
"next": "^13.4.12",
52+
"next": "13.4.12",
5353
"next-seo": "^6.1.0",
5454
"nextra": "2.7.1",
5555
"react": "^18.2.0",

packages/nextra-theme/src/index.tsx

+6-9
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,12 @@ export default function NextraLayout({ children, pageOpts, pageProps }: NextraTh
128128
}, [headings, outlineItemIsInOrAboveView])
129129

130130
let seo: NextSeoProps = {
131-
title: `${title ? `${title} - ` : ''}The Graph Docs`,
132-
}
133-
if (frontMatter.description) {
134-
seo.description = frontMatter.description
135-
}
136-
if (frontMatter.socialImage) {
137-
seo.openGraph = {
138-
images: [{ url: frontMatter.socialImage }],
139-
}
131+
title: `${title ? `${title} | ` : ''}Docs | The Graph`,
132+
description: frontMatter.description,
133+
openGraph: {
134+
title,
135+
images: frontMatter.socialImage ? [{ url: frontMatter.socialImage }] : undefined,
136+
},
140137
}
141138
if (frontMatter.seo) {
142139
seo = merge(seo, frontMatter.seo)

0 commit comments

Comments
 (0)