-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4f0eb5
commit f45cb55
Showing
13 changed files
with
87 additions
and
736 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,111 @@ | ||
// @ts-check | ||
import { defineConfig } from 'astro/config'; | ||
import starlight from '@astrojs/starlight'; | ||
import starlightTypeDoc, { typeDocSidebarGroup } from 'starlight-typedoc' | ||
import { defineConfig } from "astro/config"; | ||
import starlight from "@astrojs/starlight"; | ||
import starlightTypeDoc, { typeDocSidebarGroup } from "starlight-typedoc" | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
site: 'https://tomato6966.github.io/lavalink-client/', | ||
base: '/', | ||
site: "https://tomato6966.github.io/lavalink-client/", | ||
base: "/", | ||
integrations: [ | ||
starlight({ | ||
title: 'Lavalink Client', | ||
title: "Lavalink Client", | ||
social: { | ||
github: 'https://github.com/Tomato6966/lavalink-client', | ||
//discord: 'https://discord.gg/', | ||
github: "https://github.com/Tomato6966/lavalink-client", | ||
discord: "https://discord.gg/AsgD3gtPnb", | ||
email: "mailto:[email protected]", | ||
}, | ||
editLink: { | ||
baseUrl: 'https://github.com/Tomato6966/lavalink-client/tree/main', | ||
baseUrl: "https://github.com/Tomato6966/lavalink-client/tree/main", | ||
}, | ||
plugins: [ | ||
// Generate the documentation. | ||
starlightTypeDoc({ | ||
entryPoints: ['../src/index.ts'], | ||
tsconfig: '../tsconfig.json', | ||
entryPoints: ["../src/structures/**/*.ts"], | ||
tsconfig: "../tsconfig.json", | ||
typeDoc: { | ||
useCodeBlocks: true, | ||
parametersFormat: 'table', | ||
propertiesFormat: 'table', | ||
enumMembersFormat: 'table', | ||
typeDeclarationFormat: 'table', | ||
indexFormat: 'table', | ||
parametersFormat: "table", | ||
propertiesFormat: "table", | ||
enumMembersFormat: "table", | ||
typeDeclarationFormat: "table", | ||
indexFormat: "table", | ||
expandParameters: true, | ||
name: 'Lavalink Client', | ||
name: "Lavalink Client", | ||
}, | ||
pagination: true, | ||
}), | ||
], | ||
sidebar: [ | ||
{ | ||
label: 'Getting Started', | ||
label: "Getting Started", | ||
collapsed: true, | ||
items: [ | ||
{ | ||
label: 'installation', | ||
link: '/home/installation', | ||
label: "installation", | ||
link: "/home/installation", | ||
}, | ||
{ | ||
label: 'Features', | ||
link: '/home/features', | ||
label: "Setup Lavalink-Server", | ||
link: "/home/setup-lavalink", | ||
}, | ||
{ | ||
label: 'Example Guide', | ||
link: '/home/example', | ||
label: "Features", | ||
link: "/home/features", | ||
}, | ||
{ | ||
label: 'Sample Configuration', | ||
link: '/home/configuration', | ||
} | ||
label: "Example Guide", | ||
link: "/home/example", | ||
}, | ||
{ | ||
label: "Sample Configuration", | ||
link: "/home/configuration", | ||
}, | ||
{ | ||
label: "Checkout Docs (Manager-Class)", | ||
link: "/api/lavalinkmanager/classes/lavalinkmanager" | ||
} | ||
], | ||
}, | ||
{ | ||
label: 'Extra', | ||
label: "Extra", | ||
collapsed: true, | ||
items: [ | ||
{ | ||
label: 'Manager Events', | ||
link: '/extra/manager-events', | ||
label: "Manager Events", | ||
link: "/extra/manager-events", | ||
}, | ||
{ | ||
label: 'Node Events', | ||
link: '/extra/node-events', | ||
label: "Node Events", | ||
link: "/extra/node-events", | ||
}, | ||
{ | ||
label: 'Resuming', | ||
link: '/extra/resuming', | ||
label: "Resuming", | ||
link: "/extra/resuming", | ||
} | ||
] | ||
}, | ||
typeDocSidebarGroup, | ||
{ | ||
label: 'GitHub', | ||
link: 'https://github.com/Tomato6966/lavalink-client', | ||
label: "GitHub", | ||
link: "https://github.com/Tomato6966/lavalink-client", | ||
}, | ||
{ | ||
label: 'NPM', | ||
link: 'https://npmjs.com/lavalink-client', | ||
label: "NPM", | ||
link: "https://npmjs.com/lavalink-client", | ||
}, | ||
{ | ||
label: 'Example Bot', | ||
link: 'https://github.com/Tomato6966/lavalink-client/tree/main/testBot', | ||
label: "Example Bot", | ||
link: "https://github.com/Tomato6966/lavalink-client/tree/main/testBot", | ||
}, | ||
{ | ||
label: "Lavalink-Discord", | ||
link: "https://discord.gg/lavalink-1082302532421943407" | ||
}, | ||
{ | ||
label: "Lavalink-Web", | ||
link: "https://lavalink.dev" | ||
} | ||
], | ||
}), | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
import fs from "fs"; | ||
import path from "path"; | ||
import matter from "gray-matter"; | ||
import { marked } from "marked"; | ||
const fileContents = fs.readFileSync("../README.md", "utf-8"); | ||
const { content } = matter(fileContents); | ||
const startIndex = content.indexOf("# UpdateLog"); | ||
let filteredContent = ""; | ||
if (startIndex !== -1) { | ||
filteredContent = content.slice(startIndex); | ||
} | ||
const markdownHtml = marked(filteredContent); | ||
--- | ||
|
||
<div class="markdown" set:html={markdownHtml}></div> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.