fix: fix link validation

This commit is contained in:
DuroCodes
2024-05-24 17:50:31 -04:00
parent 1c6c0f8ec5
commit b3b98676c4
5 changed files with 9 additions and 8 deletions

View File

@@ -4,8 +4,8 @@ import starlightBlog from "starlight-blog";
import tailwind from "@astrojs/tailwind";
import starlightTypeDoc, { typeDocSidebarGroup } from "starlight-typedoc";
import lunaria from "@lunariajs/starlight";
import starlightLinksValidator from 'starlight-links-validator';
import { GITHUB_URL, DISCORD_URL } from "./src/utils/consts";
// import starlightLinksValidator from 'starlight-links-validator';
export default defineConfig({
integrations: [
@@ -130,9 +130,10 @@ export default defineConfig({
sidebar: { collapsed: true },
}),
lunaria(),
starlightLinksValidator({
exclude: ['/v3/api'],
}),
// Uncomment to enable links validation when building locally; netlify crashes for API routes
// starlightLinksValidator({
// exclude: ['/plugins'],
// }),
],
}),
tailwind(),

View File

@@ -23,7 +23,7 @@ date: 2023-01-12
### Deprecations
- `CommandPlugin` and `EventPlugin` have been renamed to [InitPlugin](/v3/api/interfaces/initplugin) and [ControlPlugin](/v3/docs/api/interfaces/controlplugin), respectively
- `CommandPlugin` and `EventPlugin` have been renamed to [InitPlugin](/v3/api/interfaces/initplugin) and [ControlPlugin](/v3/api/interfaces/controlplugin), respectively
### Reason

View File

@@ -40,4 +40,4 @@ To install extra utilities into your project, run:
sern extra
```
We have a more in depth [guide](/v3/cli/about) on the CLI if you're interested in learning more.
We have a more in depth [guide](/cli/about) on the CLI if you're interested in learning more.

View File

@@ -70,7 +70,7 @@ Each sern built dependency must implement its contracts:
- `@sern/logger`: Logging data → [`Logging`](/v3/api/interfaces/logging)
- `@sern/errors`: Handling errors and lifetime → [`ErrorHandling`](/v3/api/interfaces/errorhandling)
- `@sern/modules`: Managing all command modules → [`ModuleManager`](/v3/api/interfaces/modulemanager)
- `@sern/modules`: Managing all command modules → `ModuleManager`
- `@sern/emitter`: The key to emit events and occurences in a project → [`Emitter`](/v3/api/interfaces/emitter)
You may also add disposers so that when the application crashes, the targeted dependency calls that function.

View File

@@ -31,7 +31,7 @@ Some keys in `Dependencies` are special and are used by sern internally:
- `@sern/client`: Your Discord client. → [`Emitter`](/v3/api/interfaces/emitter)
- `@sern/logger`: Logging data → [`Logging`](/v3/api/interfaces/logging)
- `@sern/errors`: Handling errors and lifetime → [`ErrorHandling`](/v3/api/interfaces/errorhandling)
- `@sern/modules`: Managing all command modules → [`ModuleManager`](/v3/api/interfaces/modulemanager)
- `@sern/modules`: Managing all command modules → `ModuleManager`
- `@sern/emitter`: The key to emit events and occurences in a project → [`Emitter`](/v3/api/interfaces/emitter)
## Usage