Skip to content

Commit bcffdd6

Browse files
committed
feat(docs): use next/image for images & add flowchart to introducing-plugins page
1 parent 8efd27f commit bcffdd6

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

apps/docs/pages/blog/_meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"typesetting": "article"
99
}
1010
},
11-
"introducing-spark": "Introducing Spark",
12-
"introducing-plugins": "Introducing Spark Plugins"
11+
"introducing-plugins": "Introducing Spark Plugins",
12+
"introducing-spark": "Introducing Spark"
1313
}

apps/docs/pages/blog/introducing-plugins.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ date: 11/8/2022
44
description: Spark now has plugins!
55
---
66

7+
import Image from 'next/image';
8+
79
# Spark Plugins
810

911
Spark now has plugin support! With plugins, you can create reusable actions with ease, without copy/pasting code between files.
@@ -45,3 +47,9 @@ With plugins, you have the `controller` option in the run function. With the con
4547
For example, if you'd like to return an `Err`, or specify that the plugin failed, you'd return `controller.stop()`. This would make the command execution stop.
4648

4749
If you'd like to continue with the command, you have to return `controller.next()`, this means that the controller should continue with whatever action.
50+
51+
## Flowchart
52+
53+
Here's a flowchart that shows the execution of commands:
54+
55+
<Image src="/images/blog/plugin-flowchart.png" height={2304 / 3} width={2208 / 3} />

apps/docs/pages/blog/introducing-spark.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ date: 10/18/2022
44
description: Welcome to Spark, the next generation Discord.js handler.
55
---
66

7+
import Image from 'next/image';
78
import Callout from '../../components/Callout';
89

910
# Introducing Spark
@@ -40,6 +41,6 @@ With Spark's CLI tool, `create-spark`, you can create a new Spark project in jus
4041

4142
All you have to do is answer a few questions, and your Spark project is setup for you!
4243

43-
![](../../public/images/blog/spark-cli.png)
44+
<Image src="/images/blog/spark-cli.png" height={524} width={926} />
4445

4546
<Callout type="info">If you'd like more information on this project, join our [Discord server](/discord).</Callout>
77.3 KB
Loading

0 commit comments

Comments
 (0)