refactor: change how images are imported in markdown

This commit is contained in:
DuroCodes
2024-05-09 11:58:40 -04:00
parent 40a2e39fc8
commit 529e6fccf5
4 changed files with 9 additions and 24 deletions

View File

@@ -16,26 +16,20 @@ And here we are!
# Who did our new branding?
import { Image } from 'astro:assets';
import paperPrototypes from '~/assets/blog/paper-prototypes.jpg';
import paperLogo from '~/assets/blog/paper-logo.png';
import serenTried from '~/assets/blog/seren-tried.png';
import sernLogo from '~/assets/logo/sern-logo.png';
[Ropox](https://github.com/Murtatrxx)!
[Ropox](https://github.com/Murtatrxx)!
Bro's the GOAT. This website is maintained by him, the domain costs are funded by him and also he started brainstorming how the logo would be on paper:
<Image src={paperPrototypes} alt="paper prototypes" />
![paper prototypes](~/assets/blog/paper-prototypes.jpg)
And there it all clicked:
<Image src={paperLogo} alt="paper logo" />
![paper logo](~/assets/blog/paper-logo.png)
seren tried by the way!
<Image src={serenTried} alt="seren tried" />
![seren tried](~/assets/blog/seren-tried.png)
# Anyways, here it is:
<Image src={sernLogo} alt="sern logo" />
![sern logo](~/assets/logo/sern-logo.png)
Pretty nice!

View File

@@ -34,10 +34,7 @@ If you do not know how to obtain either of these credentials, [click here](https
## Usage
import { Image } from 'astro:assets';
import sernPublish from '~/assets/docs/sern-publish.gif';
<Image src={sernPublish} alt="usage" />
![usage](~/assets/docs/sern-publish.gif)
## Features
@@ -96,7 +93,7 @@ This will create a container for publishing. (as of 0.6.0, client is required or
#### Script ran:
```
```sh
sern commands publish -i ./scripts/prerequire.mjs
```

View File

@@ -10,7 +10,4 @@ We hope you have learned the necessities you need to create a bot with the sern
If you have any other questions, bugs, feature requests, concerns, please join our [community server](https://sern.dev/discord), and we'll be glad to answer your questions!
import { Image } from 'astro:assets';
import paperLogo from '~/assets/blog/paper-logo.png';
<Image src={paperLogo} alt="paper logo" />
![paper logo](~/assets/blog/paper-logo.png)

View File

@@ -93,10 +93,7 @@ The plugin above simply checks if the module is in the correct directory. If it'
## Event Plugins
import { Image } from 'astro:assets';
import eventPlugins from '~/assets/docs/event-plugins.png';
<Image src={eventPlugins} alt="control plugins" />
![control plugins](~/assets/docs/event-plugins.png)
<Steps>
1. An event is emitted by `discord.js`.