Skip to content

Commit

Permalink
Fix image imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbayly committed Mar 22, 2024
1 parent bb75791 commit 5709f7b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/indexer/build/graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ type StarterEntity @entity {
In addition, when using GraphQL query Playground, these doc strings will automatically show up in the schema documentation panel. This makes it easier for developers to understand your API while exploring it, and can even serve as a form of live, interactive documentation for your API.
![image](../.vuepress/public/assets/img/build/schema_docstring.png)
![image](/assets/img/build/schema_docstring.png)
## Indexing
Expand Down
6 changes: 3 additions & 3 deletions docs/indexer/build/multi-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ subquery-node-newchain:

Use `subql publish` command to publish all the projects listed in the `subquery-multichain.yaml` manifest to a single IPFS directory.

![image](../.vuepress/public/assets/img/build/multi_chain_publish.png)
![image](/assets/img/build/multi_chain_publish.png)

### See the Example Project

Expand All @@ -127,7 +127,7 @@ You can get the network through the global `chainId` value. This is the same val
```ts
// We prefix the ID with the network name to prevent ID collisions across networks
const transfer = new Transfer(
`${network}-${event.block.block.header.number.toNumber()}-${event.idx}`,
`${network}-${event.block.block.header.number.toNumber()}-${event.idx}`
);
```

Expand Down Expand Up @@ -162,7 +162,7 @@ export async function handleKusamaEvent(e: SubstrateEvent): Promise<void> {

async function handleEvent(
event: SubstrateEvent,
network: "polkadot" | "kusama",
network: "polkadot" | "kusama"
): Promise<void> {
// Do something with shared logic
}
Expand Down
8 changes: 4 additions & 4 deletions docs/indexer/build/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ subqlTest(
field3: BigInt(2303515439),
}),
], // expected entities
"handleEvent", //handler name
"handleEvent" //handler name
);
```

Expand All @@ -145,15 +145,15 @@ npm run-script test

An example of a passing test:

![image](../.vuepress/public/assets/img/build/tf-pass-test.png)
![image](/assets/img/build/tf-pass-test.png)

An example of a failing test:

![image](../.vuepress/public/assets/img/build/tf-fail-test.png)
![image](/assets/img/build/tf-fail-test.png)

The output will include a summary of the total tests run, passing tests, and failing tests. If any tests fail, a detailed summary of the failed tests will also be displayed:

![image](../.vuepress/public/assets/img/build/tf-fail-summary.png)
![image](/assets/img/build/tf-fail-summary.png)

### Example Project

Expand Down

0 comments on commit 5709f7b

Please sign in to comment.