Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: graphprotocol/docs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.6.77
Choose a base ref
...
head repository: graphprotocol/docs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing 5,595 changed files with 396,815 additions and 334,772 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
37 changes: 0 additions & 37 deletions .eslintrc.cjs

This file was deleted.

43 changes: 43 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// @ts-check

const isVSCode = Boolean(process.env.VSCODE_PID)

/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
overrides: [
{
files: ['*.{ts,tsx,js,jsx,mjs,cjs}'],
extends: ['@edgeandnode/eslint-config', '@edgeandnode/eslint-config/next'],
settings: {
next: { rootDir: 'website' },
},
},
{
files: ['*.{ts,tsx}'],
parserOptions: {
project: true,
},
},
{
// 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}`],
excludedFiles: [
'website/src/pages/*/subgraphs/developing/creating/graph-ts/*.md',
'website/src/pages/*/subgraphs/querying/graph-client/*.md',
],
parser: 'eslint-mdx',
processor: 'mdx/remark',
plugins: ['mdx'],
rules: {
'mdx/remark': 'error',
},
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
},
],
}
3 changes: 2 additions & 1 deletion .github/workflows/ci-cd-production.yml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}

@@ -37,6 +37,7 @@ jobs:
cache-to: type=inline
build-args: |
ENVIRONMENT=production
ORIGIN=https://thegraph.com
tags: |
${{ env.BASE_IMAGE }}:${{ github.sha }}
${{ env.BASE_IMAGE }}:latest
29 changes: 9 additions & 20 deletions .github/workflows/ci-cd-pull-request.yml
Original file line number Diff line number Diff line change
@@ -11,18 +11,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}

- name: Check out the repo
uses: actions/checkout@v4

- name: Set up env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 20
packageManager: pnpm
uses: the-guild-org/shared-config/setup@v1

- name: Install dependencies
run: pnpm install
@@ -35,18 +32,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}

- name: Check out the repo
uses: actions/checkout@v4

- name: Set up env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 20
packageManager: pnpm
uses: the-guild-org/shared-config/setup@v1

- name: Install dependencies
run: pnpm install
@@ -59,18 +53,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}

- name: Check out the repo
uses: actions/checkout@v4

- name: Set up env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 20
packageManager: pnpm
uses: the-guild-org/shared-config/setup@v1

- name: Install dependencies
run: pnpm install
@@ -84,18 +75,15 @@ jobs:
needs: [lint, format, typecheck]
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}

- name: Check out the repo
uses: actions/checkout@v4

- name: Set up env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 20
packageManager: pnpm
uses: the-guild-org/shared-config/setup@v1

- name: Install dependencies
run: pnpm install
@@ -107,4 +95,5 @@ jobs:
cache-from: type=registry,ref=${{ env.BASE_IMAGE }}:latest
build-args: |
ENVIRONMENT=staging
ORIGIN=https://staging.thegraph.com
push: false
3 changes: 2 additions & 1 deletion .github/workflows/ci-cd-staging.yml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}

@@ -38,6 +38,7 @@ jobs:
cache-to: type=inline
build-args: |
ENVIRONMENT=staging
ORIGIN=https://staging.thegraph.com
tags: |
${{ env.BASE_IMAGE }}:${{ github.sha }}
${{ env.BASE_IMAGE }}:latest
112 changes: 0 additions & 112 deletions .github/workflows/next-js-bundle-analysis.yml

This file was deleted.

5 changes: 1 addition & 4 deletions .github/workflows/opengraph.yml
Original file line number Diff line number Diff line change
@@ -24,10 +24,7 @@ jobs:
ref: ${{ env.COMMIT }}

- name: Set up env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 20
packageManager: pnpm
uses: the-guild-org/shared-config/setup@v1

- name: Deploy
working-directory: ./packages/og-image
14 changes: 7 additions & 7 deletions .github/workflows/website-integrity.yml
Original file line number Diff line number Diff line change
@@ -9,8 +9,8 @@ jobs:
website-check:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}

@@ -21,12 +21,12 @@ jobs:
run: git fetch origin main

- name: Set up env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 20
packageManager: pnpm
uses: the-guild-org/shared-config/setup@v1

- name: Run pre-build scripts
run: pnpm prebuild:ci

- name: Build Site
- name: Build
run: pnpm build

- name: Compare
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -37,5 +37,5 @@ build/
.eslintcache
dist/
.turbo/
packages/og-image/vender/*.wasm
packages/og-image/vendor/*.wasm
.wrangler/
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22
6 changes: 4 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -3,5 +3,7 @@
out/
pnpm-lock.yaml
dist/
website/remote-files/*.json
website/.graphclient/
# fetched files
website/src/openApi/*.json
website/src/pages/*/subgraphs/developing/creating/graph-ts/*.md
website/src/pages/*/subgraphs/querying/graph-client/*.md
9 changes: 0 additions & 9 deletions .remarkrc.cjs

This file was deleted.

Loading