Skip to content

Commit f1ed1fc

Browse files
authored
Clean up redirects a little bit (#753)
* Clean up redirects a little bit * Update old URLs still in the content to the new ones
1 parent 478de07 commit f1ed1fc

File tree

147 files changed

+228
-250
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+228
-250
lines changed

nginx.conf

+9-7
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ http {
4444
rewrite ^/(.*)//+(.*) $scheme://$http_host/$1/$2 permanent; # remove adjacent slashes in the middle of the URI
4545
rewrite ^/([^.]*[^/])$ $scheme://$http_host/$1/ permanent; # force a trailing slash except for files with an extension
4646

47-
# Permanent redirects (301)
48-
rewrite ^/docs/hostedservice/(.*)$ $scheme://$http_host/docs/en/hosted-service/$1 permanent;
49-
rewrite ^/docs/(?!(?:[a-zA-Z][a-zA-Z]|_next|img)(?:/|$))(.*)$ $scheme://$http_host/docs/en/$1 permanent; # Redirect to `/en` if no language in URL and not an asset URL
47+
# Redirect to `/en` if no language in URL and not an asset URL
48+
rewrite ^/docs/(?!(?:[a-zA-Z][a-zA-Z]|_next|img)(?:/|$))(.*)$ $scheme://$http_host/docs/en/$1 permanent;
5049

50+
# Permanent redirects (301)
5151
rewrite ^/docs/([a-zA-Z][a-zA-Z])/about/introduction/$ $scheme://$http_host/docs/$1/about/ permanent;
5252
rewrite ^/docs/([a-zA-Z][a-zA-Z])/about/network/$ $scheme://$http_host/docs/$1/network/overview/ permanent;
5353
rewrite ^/docs/([a-zA-Z][a-zA-Z])/curating/$ $scheme://$http_host/docs/$1/network/curating/ permanent;
@@ -88,14 +88,16 @@ http {
8888
rewrite ^/docs/([a-zA-Z][a-zA-Z])/arbitrum-faq/$ $scheme://$http_host/docs/$1/arbitrum/arbitrum-faq/ permanent;
8989
rewrite ^/docs/([a-zA-Z][a-zA-Z])/cookbook/migrating-a-subgraph/$ $scheme://$http_host/docs/$1/cookbook/upgrading-a-subgraph/ permanent;
9090
rewrite ^/docs/([a-zA-Z][a-zA-Z])/cookbook/quick-start/$ $scheme://$http_host/docs/$1/quick-start/ permanent;
91-
rewrite ^/docs/en/substreams/(?!index\.).+$ https://substreams.streamingfast.io permanent;
92-
rewrite ^/docs/en/firehose/(?!index\.).+$ https://firehose.streamingfast.io permanent;
9391
rewrite ^/docs/([a-zA-Z][a-zA-Z])/developer/assemblyscript-api/$ $scheme://$http_host/docs/$1/developing/graph-ts/api/ permanent;
9492
rewrite ^/docs/([a-zA-Z][a-zA-Z])/developing/assemblyscript-api/$ $scheme://$http_host/docs/$1/developing/graph-ts/api/ permanent;
93+
rewrite ^/docs/([a-zA-Z][a-zA-Z])/managing/deprecating-a-subgraph/$ $scheme://$http_host/docs/$1/managing/transfer-and-deprecate-a-subgraph/ permanent;
94+
rewrite ^/docs/([a-zA-Z][a-zA-Z])/managing/transferring-subgraph-ownership/$ $scheme://$http_host/docs/$1/managing/transfer-and-deprecate-a-subgraph/ permanent;
95+
rewrite ^/docs/en/substreams/(?!index\.).+$ https://substreams.streamingfast.io permanent;
96+
rewrite ^/docs/en/firehose/(?!index\.).+$ https://firehose.streamingfast.io permanent;
9597

9698
# Temporary redirects (302)
97-
rewrite ^/docs/en/querying/graph-client/$ $scheme://$http_host/docs/en/querying/graph-client/README/ redirect;
98-
rewrite ^/docs/en/developing/graph-ts/$ $scheme://$http_host/docs/en/developing/graph-ts/README/ redirect;
99+
rewrite ^/docs/en/querying/graph-client/$ $scheme://$http_host/docs/en/querying/graph-client/README/ redirect;
100+
rewrite ^/docs/en/developing/graph-ts/$ $scheme://$http_host/docs/en/developing/graph-ts/README/ redirect;
99101

100102
location / {
101103
try_files $uri $uri.html $uri/index.html =404;

website/next.config.js

+1-25
Original file line numberDiff line numberDiff line change
@@ -56,31 +56,7 @@ export default withNextra({
5656
destination: '/en/',
5757
permanent: true,
5858
},
59-
{
60-
source: '/en/arbitrum-faq/',
61-
destination: '/en/arbitrum/arbitrum-faq/',
62-
permanent: true,
63-
},
64-
{
65-
source: '/en/querying/graph-client/',
66-
destination: '/en/querying/graph-client/README/',
67-
permanent: false,
68-
},
69-
{
70-
source: '/en/developing/graph-ts/',
71-
destination: '/en/developing/graph-ts/README/',
72-
permanent: false,
73-
},
74-
{
75-
source: '/en/developer/assemblyscript-api/',
76-
destination: '/en/developing/graph-ts/api/',
77-
permanent: true,
78-
},
79-
{
80-
source: '/en/developing/assemblyscript-api/',
81-
destination: '/en/developing/graph-ts/api/',
82-
permanent: true,
83-
},
59+
// If we ever change `output` to not be `export`, we should move all the redirects from `nginx.conf` here
8460
],
8561
images: {
8662
unoptimized: true,

website/pages/ar/cookbook/arweave.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Schema definition describes the structure of the resulting subgraph database and
105105

106106
تمت كتابة المعالجات الخاصة بمعالجة الأحداث بـ[ أسيمبلي سكريبت ](https://www.assemblyscript.org/).
107107

108-
Arweave indexing introduces Arweave-specific data types to the [AssemblyScript API](/developing/assemblyscript-api/).
108+
Arweave indexing introduces Arweave-specific data types to the [AssemblyScript API](/developing/graph-ts/api/).
109109

110110
```tsx
111111
class Block {

website/pages/ar/cookbook/cosmos.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Schema definition describes the structure of the resulting subgraph database and
8585

8686
تمت كتابة المعالجات(handlers) الخاصة بمعالجة الأحداث بـ[ AssemblyScript ](https://www.assemblyscript.org/).
8787

88-
Cosmos indexing introduces Cosmos-specific data types to the [AssemblyScript API](/developing/assemblyscript-api/).
88+
Cosmos indexing introduces Cosmos-specific data types to the [AssemblyScript API](/developing/graph-ts/api/).
8989

9090
```tsx
9191
class Block {

website/pages/ar/cookbook/near.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ title: بناء Subgraphs على NEAR
3737

3838
**schema.graphql:** a schema file that defines what data is stored for your subgraph, and how to query it via GraphQL. The requirements for NEAR subgraphs are covered by [the existing documentation](/developing/creating-a-subgraph#the-graphql-schema).
3939

40-
**AssemblyScript Mappings:** [AssemblyScript code](/developing/assemblyscript-api) that translates from the event data to the entities defined in your schema. NEAR support introduces NEAR-specific data types and new JSON parsing functionality.
40+
**AssemblyScript Mappings:** [AssemblyScript code](/developing/graph-ts/api) that translates from the event data to the entities defined in your schema. NEAR support introduces NEAR-specific data types and new JSON parsing functionality.
4141

4242
During subgraph development there are two key commands:
4343

@@ -98,7 +98,7 @@ Schema definition describes the structure of the resulting subgraph database and
9898

9999
تمت كتابة المعالجات(handlers) الخاصة بمعالجة الأحداث بـ[ AssemblyScript ](https://www.assemblyscript.org/).
100100

101-
NEAR indexing introduces NEAR-specific data types to the [AssemblyScript API](/developing/assemblyscript-api).
101+
NEAR indexing introduces NEAR-specific data types to the [AssemblyScript API](/developing/graph-ts/api).
102102

103103
```typescript
104104
@@ -165,9 +165,9 @@ These types are passed to block & receipt handlers:
165165
- معالجات الكتلة ستتلقى`Block`
166166
- معالجات الاستلام ستتلقى`ReceiptWithOutcome`
167167

168-
Otherwise, the rest of the [AssemblyScript API](/developing/assemblyscript-api) is available to NEAR subgraph developers during mapping execution.
168+
Otherwise, the rest of the [AssemblyScript API](/developing/graph-ts/api) is available to NEAR subgraph developers during mapping execution.
169169

170-
This includes a new JSON parsing function - logs on NEAR are frequently emitted as stringified JSONs. A new `json.fromString(...)` function is available as part of the [JSON API](/developing/assemblyscript-api#json-api) to allow developers to easily process these logs.
170+
This includes a new JSON parsing function - logs on NEAR are frequently emitted as stringified JSONs. A new `json.fromString(...)` function is available as part of the [JSON API](/developing/graph-ts/api#json-api) to allow developers to easily process these logs.
171171

172172
## نشر NEAR Subgraph
173173

website/pages/ar/cookbook/upgrading-a-subgraph.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Make sure **Update Subgraph Details in Explorer** is checked and click on **Save
136136

137137
## Deprecating a Subgraph on The Graph Network
138138

139-
Follow the steps [here](/managing/deprecating-a-subgraph) to deprecate your subgraph and remove it from The Graph Network.
139+
Follow the steps [here](/managing/transfer-and-deprecate-a-subgraph) to deprecate your subgraph and remove it from The Graph Network.
140140

141141
## Querying a Subgraph + Billing on The Graph Network
142142

website/pages/ar/developing/creating-a-subgraph.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ The file data source must specifically mention all the entity types which it wil
14771477

14781478
#### Create a new handler to process files
14791479

1480-
This handler should accept one `Bytes` parameter, which will be the contents of the file, when it is found, which can then be processed. This will often be a JSON file, which can be processed with `graph-ts` helpers ([documentation](/developing/assemblyscript-api/#json-api)).
1480+
This handler should accept one `Bytes` parameter, which will be the contents of the file, when it is found, which can then be processed. This will often be a JSON file, which can be processed with `graph-ts` helpers ([documentation](/developing/graph-ts/api/#json-api)).
14811481

14821482
The CID of the file as a readable string can be accessed via the `dataSource` as follows:
14831483

website/pages/ar/developing/unit-testing-framework.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ The log output includes the test run duration. Here's an example:
13681368
13691369
> Critical: Could not create WasmInstance from valid module with context: unknown import: wasi_snapshot_preview1::fd_write has not been defined
13701370
1371-
This means you have used `console.log` in your code, which is not supported by AssemblyScript. Please consider using the [Logging API](/developing/assemblyscript-api/#logging-api)
1371+
This means you have used `console.log` in your code, which is not supported by AssemblyScript. Please consider using the [Logging API](/developing/graph-ts/api/#logging-api)
13721372
13731373
> ERROR TS2554: Expected ? arguments, but got ?.
13741374
>

website/pages/cs/cookbook/arweave.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Definice schématu popisuje strukturu výsledné databáze podgrafu a vztahy mez
105105

106106
Obslužné programy pro zpracování událostí jsou napsány v jazyce [AssemblyScript](https://www.assemblyscript.org/).
107107

108-
Indexování Arweave zavádí do [AssemblyScript API](/developing/assemblyscript-api/) datové typy specifické pro Arweave.
108+
Indexování Arweave zavádí do [AssemblyScript API](/developing/graph-ts/api/) datové typy specifické pro Arweave.
109109

110110
```tsx
111111
class Block {

website/pages/cs/cookbook/cosmos.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Definice schématu popisuje strukturu výsledné databáze podgrafů a vztahy me
8585

8686
Obslužné programy pro zpracování událostí jsou napsány v jazyce [AssemblyScript](https://www.assemblyscript.org/).
8787

88-
Indexování Cosmos zavádí datové typy specifické pro Cosmos do [AssemblyScript API](/developing/assemblyscript-api/).
88+
Indexování Cosmos zavádí datové typy specifické pro Cosmos do [AssemblyScript API](/developing/graph-ts/api/).
8989

9090
```tsx
9191
class Block {

website/pages/cs/cookbook/near.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Definice podgrafů má tři aspekty:
3737

3838
**schema.graphql:** soubor se schématem, který definuje, jaká data jsou uložena pro váš podgraf, a jak je možné je dotazovat pomocí GraphQL. Požadavky na podgrafy NEAR jsou pokryty [existující dokumentací](/developing/creating-a-subgraph#the-graphql-schema).
3939

40-
**Mapování v jazyce AssemblyScript:** [Kód jazyka AssemblyScript](/developing/assemblyscript-api), který převádí data událostí na entity definované ve vašem schématu. Podpora NEAR zavádí datové typy specifické pro NEAR a nové funkce pro parsování JSON.
40+
**Mapování v jazyce AssemblyScript:** [Kód jazyka AssemblyScript](/developing/graph-ts/api), který převádí data událostí na entity definované ve vašem schématu. Podpora NEAR zavádí datové typy specifické pro NEAR a nové funkce pro parsování JSON.
4141

4242
Při vývoji podgrafů existují dva klíčové příkazy:
4343

@@ -98,7 +98,7 @@ Definice schématu popisuje strukturu výsledné databáze podgrafů a vztahy me
9898

9999
Obslužné programy pro zpracování událostí jsou napsány v jazyce [AssemblyScript](https://www.assemblyscript.org/).
100100

101-
Indexování NEAR zavádí do rozhraní [AssemblyScript API](/developing/assemblyscript-api) datové typy specifické pro NEAR.
101+
Indexování NEAR zavádí do rozhraní [AssemblyScript API](/developing/graph-ts/api) datové typy specifické pro NEAR.
102102

103103
```typescript
104104
@@ -165,9 +165,9 @@ Tyto typy jsou předány do block & obsluha účtenek:
165165
- Obsluhy bloků obdrží `Block`
166166
- Obsluhy příjmu obdrží `ReceiptWithOutcome`
167167

168-
Jinak je zbytek [AssemblyScript API](/developing/assemblyscript-api) dostupný vývojářům podgrafů NEAR během provádění mapování.
168+
Jinak je zbytek [AssemblyScript API](/developing/graph-ts/api) dostupný vývojářům podgrafů NEAR během provádění mapování.
169169

170-
To zahrnuje novou funkci parsování JSON - záznamy na NEAR jsou často vysílány ve formě zřetězených JSON. Nová funkce `json.fromString(...)` je k dispozici jako součást [JSON API](/developing/assemblyscript-api#json-api), které umožňuje vývojářům snadno zpracovávat tyto záznamy.
170+
To zahrnuje novou funkci parsování JSON - záznamy na NEAR jsou často vysílány ve formě zřetězených JSON. Nová funkce `json.fromString(...)` je k dispozici jako součást [JSON API](/developing/graph-ts/api#json-api), které umožňuje vývojářům snadno zpracovávat tyto záznamy.
171171

172172
## Nasazení podgrafu NEAR
173173

website/pages/cs/cookbook/upgrading-a-subgraph.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Ujistěte se, že je zaškrtnuto políčko **Aktualizovat podrobnosti subgrafu v
136136

137137
## Odepsání subgrafu v síti Graph
138138

139-
Postupujte podle pokynů [zde](/managing/deprecating-a-subgraph), abyste svůj podgraf vyřadili a odstranili jej ze sítě The Graph Network.
139+
Postupujte podle pokynů [zde](/managing/transfer-and-deprecate-a-subgraph), abyste svůj podgraf vyřadili a odstranili jej ze sítě The Graph Network.
140140

141141
## Dotazování podgrafu + fakturace v síti graph
142142

website/pages/cs/developing/creating-a-subgraph.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ The file data source must specifically mention all the entity types which it wil
14771477

14781478
#### Vytvoření nové obslužné pro zpracování souborů
14791479

1480-
This handler should accept one `Bytes` parameter, which will be the contents of the file, when it is found, which can then be processed. This will often be a JSON file, which can be processed with `graph-ts` helpers ([documentation](/developing/assemblyscript-api/#json-api)).
1480+
This handler should accept one `Bytes` parameter, which will be the contents of the file, when it is found, which can then be processed. This will often be a JSON file, which can be processed with `graph-ts` helpers ([documentation](/developing/graph-ts/api/#json-api)).
14811481

14821482
CID souboru jako čitelný řetězec lze získat prostřednictvím `dataSource` následujícím způsobem:
14831483

website/pages/cs/developing/unit-testing-framework.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ Výstup protokolu obsahuje dobu trvání test. Zde je příklad:
13681368
13691369
> Kritické: Nelze vytvořit WasmInstance z platného modulu s kontextem: neznámý import: wasi_snapshot_preview1::fd_write nebyl definován
13701370
1371-
To znamená, že jste ve svém kódu použili `console.log`, což není podporováno jazykem AssemblyScript. Zvažte prosím použití [Logging API](/developing/assemblyscript-api/#logging-api)
1371+
To znamená, že jste ve svém kódu použili `console.log`, což není podporováno jazykem AssemblyScript. Zvažte prosím použití [Logging API](/developing/graph-ts/api/#logging-api)
13721372
13731373
> ERROR TS2554: Expected ? arguments, but got ?.
13741374
>

website/pages/de/cookbook/arweave.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Schema definition describes the structure of the resulting subgraph database and
105105

106106
Die Handler für die Ereignisverarbeitung sind in [AssemblyScript](https://www.assemblyscript.org/) geschrieben.
107107

108-
Arweave indexing introduces Arweave-specific data types to the [AssemblyScript API](/developing/assemblyscript-api/).
108+
Arweave indexing introduces Arweave-specific data types to the [AssemblyScript API](/developing/graph-ts/api/).
109109

110110
```tsx
111111
class Block {

website/pages/de/cookbook/cosmos.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Schema definition describes the structure of the resulting subgraph database and
8585

8686
Die Handler für die Ereignisverarbeitung sind in [AssemblyScript](https://www.assemblyscript.org/) geschrieben.
8787

88-
Die Cosmos-Indizierung führt Cosmos-spezifische Datentypen in die [AssemblyScript-API](/developing/assemblyscript-api/) ein.
88+
Die Cosmos-Indizierung führt Cosmos-spezifische Datentypen in die [AssemblyScript-API](/developing/graph-ts/api/) ein.
8989

9090
```tsx
9191
class Block {

website/pages/de/cookbook/near.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ There are three aspects of subgraph definition:
3737

3838
**schema.graphql:** a schema file that defines what data is stored for your subgraph, and how to query it via GraphQL. The requirements for NEAR subgraphs are covered by [the existing documentation](/developing/creating-a-subgraph#the-graphql-schema).
3939

40-
**AssemblyScript Mappings:** [AssemblyScript code](/developing/assemblyscript-api) that translates from the event data to the entities defined in your schema. NEAR support introduces NEAR-specific data types and new JSON parsing functionality.
40+
**AssemblyScript Mappings:** [AssemblyScript code](/developing/graph-ts/api) that translates from the event data to the entities defined in your schema. NEAR support introduces NEAR-specific data types and new JSON parsing functionality.
4141

4242
During subgraph development there are two key commands:
4343

@@ -98,7 +98,7 @@ Schema definition describes the structure of the resulting subgraph database and
9898

9999
Die Handler für die Ereignisverarbeitung sind in [AssemblyScript](https://www.assemblyscript.org/) geschrieben.
100100

101-
NEAR indexing introduces NEAR-specific data types to the [AssemblyScript API](/developing/assemblyscript-api).
101+
NEAR indexing introduces NEAR-specific data types to the [AssemblyScript API](/developing/graph-ts/api).
102102

103103
```typescript
104104
@@ -165,9 +165,9 @@ These types are passed to block & receipt handlers:
165165
- Block handlers will receive a `Block`
166166
- Receipt handlers will receive a `ReceiptWithOutcome`
167167

168-
Otherwise, the rest of the [AssemblyScript API](/developing/assemblyscript-api) is available to NEAR subgraph developers during mapping execution.
168+
Otherwise, the rest of the [AssemblyScript API](/developing/graph-ts/api) is available to NEAR subgraph developers during mapping execution.
169169

170-
This includes a new JSON parsing function - logs on NEAR are frequently emitted as stringified JSONs. A new `json.fromString(...)` function is available as part of the [JSON API](/developing/assemblyscript-api#json-api) to allow developers to easily process these logs.
170+
This includes a new JSON parsing function - logs on NEAR are frequently emitted as stringified JSONs. A new `json.fromString(...)` function is available as part of the [JSON API](/developing/graph-ts/api#json-api) to allow developers to easily process these logs.
171171

172172
## Deploying a NEAR Subgraph
173173

website/pages/de/cookbook/upgrading-a-subgraph.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Make sure **Update Subgraph Details in Explorer** is checked and click on **Save
136136

137137
## Deprecating a Subgraph on The Graph Network
138138

139-
Follow the steps [here](/managing/deprecating-a-subgraph) to deprecate your subgraph and remove it from The Graph Network.
139+
Follow the steps [here](/managing/transfer-and-deprecate-a-subgraph) to deprecate your subgraph and remove it from The Graph Network.
140140

141141
## Querying a Subgraph + Billing on The Graph Network
142142

website/pages/de/developing/creating-a-subgraph.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ The file data source must specifically mention all the entity types which it wil
14771477

14781478
#### Create a new handler to process files
14791479

1480-
This handler should accept one `Bytes` parameter, which will be the contents of the file, when it is found, which can then be processed. This will often be a JSON file, which can be processed with `graph-ts` helpers ([documentation](/developing/assemblyscript-api/#json-api)).
1480+
This handler should accept one `Bytes` parameter, which will be the contents of the file, when it is found, which can then be processed. This will often be a JSON file, which can be processed with `graph-ts` helpers ([documentation](/developing/graph-ts/api/#json-api)).
14811481

14821482
The CID of the file as a readable string can be accessed via the `dataSource` as follows:
14831483

0 commit comments

Comments
 (0)