Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 1 addition & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ module.exports = {
},
},
{
// Only lint the English pages because the Markdown for the other languages is auto-generated from English (via Crowdin).
// But include all languages when running the ESLint extension in VS Code (in case the user has "eslint.validate": ["mdx"]),
// otherwise there will be random errors since the non-English files don't match any ruleset.
files: [`website/src/pages/${isVSCode ? '' : 'en/'}**/*.{md,mdx}`],
files: ['website/src/pages/**/*.{md,mdx}'],
excludedFiles: [
'website/src/pages/*/subgraphs/developing/creating/graph-ts/*.md',
'website/src/pages/*/subgraphs/querying/graph-client/*.md',
Expand Down
4 changes: 0 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ Direct contributions are much appreciated for simple things (corrections, small

Most of our docs are written in [Markdown](https://www.markdownguide.org/getting-started/), or more specifically, [MDX](https://mdxjs.com/docs/what-is-mdx/). The files that you’ll likely be updating are in [the `/website/src/pages/en` directory](https://github.com/graphprotocol/docs/tree/main/website/src/pages/en).

> [!NOTE]
>
> Changes should only be made to the English language version of pages, as translations are handled by [Crowdin](https://crowdin.com/). If you spot an issue with a translation, please open an issue to let us know!

Once you located the file that you want to update, click on “Edit” which will create a new forked repo. You can make your edits there, and submit a PR. Alternatively, you can manually fork the repo, create a branch in your fork and make all the edits you want before submitting a PR. You can optionally [run the application locally](https://github.com/graphprotocol/docs/blob/main/README.md) to review your changes in context.

## Adding new pages
Expand Down
11 changes: 2 additions & 9 deletions algolia-crawler.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
// Changes to this config should be manually mirrored to https://crawler.algolia.com/admin
new Crawler({
appId: 'WQ5FYJCL00',
apiKey: '[SECRET]',
schedule: 'every 7 days',
indexPrefix: '',
rateLimit: 8,
startUrls: [
'https://thegraph.com/docs/en/',
'https://thegraph.com/docs/ar/',
'https://thegraph.com/docs/es/',
'https://thegraph.com/docs/ja/',
'https://thegraph.com/docs/ko/',
'https://thegraph.com/docs/vi/',
'https://thegraph.com/docs/zh/',
],
startUrls: ['https://thegraph.com/docs/en/'],
ignoreQueryParams: ['source', 'utm_*'],
actions: [
{
Expand Down
14 changes: 0 additions & 14 deletions crowdin.yml

This file was deleted.

243 changes: 123 additions & 120 deletions nginx.conf

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "graph-docs",
"private": true,
"version": "1.0.0",
"packageManager": "pnpm@10.26.0",
"packageManager": "pnpm@10.28.2",
"scripts": {
"dev": "turbo run dev",
"build": "NODE_OPTIONS='--max-old-space-size=8192' turbo run build",
Expand All @@ -21,17 +21,17 @@
},
"devDependencies": {
"@edgeandnode/eslint-config": "^2.0.3",
"@types/node": "^22.19.3",
"@types/node": "^22.19.7",
"eslint": "^8.57.1",
"eslint-plugin-mdx": "^3.6.2",
"prettier": "^3.7.4",
"prettier": "^3.8.1",
"prettier-plugin-tailwindcss": "^0.7.2",
"remark-frontmatter": "^5.0.0",
"remark-lint-first-heading-level": "^4.0.1",
"remark-lint-heading-increment": "^4.0.1",
"remark-lint-no-heading-punctuation": "^4.0.1",
"remark-lint-restrict-elements": "workspace:*",
"turbo": "^2.6.3",
"turbo": "^2.8.0",
"typescript": "^5.9.3"
},
"resolutions": {
Expand Down
6 changes: 3 additions & 3 deletions packages/og-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
"dependencies": {
"@resvg/resvg-wasm": "^2.6.2",
"react": "^18.3.1",
"satori": "^0.18.3",
"satori": "^0.19.1",
"yoga-wasm-web": "^0.3.3"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20251217.0",
"@cloudflare/workers-types": "^4.20260129.0",
"@types/react": "^18.3.27",
"jest-image-snapshot": "^6.5.1",
"tsx": "4.20.4",
"typescript": "^5.9.3",
"vitest": "^2.1.9",
"wrangler": "^3.114.15"
"wrangler": "^3.114.17"
},
"sideEffects": false
}
2 changes: 1 addition & 1 deletion packages/remark-lint-restrict-elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "Dimitri POSTOLOV <[email protected]>",
"dependencies": {
"unified-lint-rule": "^3.0.1",
"unist-util-visit": "^5.0.0"
"unist-util-visit": "^5.1.0"
},
"sideEffects": false
}
Loading