-
Notifications
You must be signed in to change notification settings - Fork 30
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
Showing
3,337 changed files
with
26,848 additions
and
113,693 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
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,218 @@ | ||
import { defineConfig } from "astro/config"; | ||
import starlight from "@astrojs/starlight"; | ||
import { rehypeHeadingIds } from "@astrojs/markdown-remark"; | ||
import rehypeAutolinkHeadings from "rehype-autolink-headings"; | ||
import react from "@astrojs/react"; | ||
|
||
export default defineConfig({ | ||
site: "https://aoi.js.org", | ||
base: "/", | ||
integrations: [ | ||
starlight({ | ||
title: "aoi.js", | ||
favicon: "/favicon.png", | ||
logo: { | ||
src: "/favicon.png", | ||
}, | ||
social: { | ||
github: "https://github.com/aoijs/website-astro", | ||
discord: "https://discord.com/invite/HMUfMXDQsV", | ||
}, | ||
editLink: { | ||
baseUrl: "https://github.com/aoijs/website-astro/edit/main/", | ||
}, | ||
customCss: ["./src/styles/custom.css"], | ||
head: [ | ||
{ | ||
tag: "script", | ||
attrs: { | ||
src: "/website-astro/custom.js", | ||
defer: true, | ||
}, | ||
}, | ||
{ | ||
tag: 'meta', | ||
attrs: { property: 'og:site_name', content: "aoi.js | Akarui Development" }, | ||
}, | ||
{ | ||
tag: 'meta', | ||
attrs: { property: 'og:image', content: "https://raw.githubusercontent.com/aoijs/website/master/assets/images/aoijs-banner.png" }, | ||
}, | ||
{ | ||
tag: 'meta', | ||
attrs: { property: 'twitter:image', content: "https://raw.githubusercontent.com/aoijs/website/master/assets/images/aoijs-banner.png" }, | ||
}, | ||
{ | ||
tag: 'meta', | ||
attrs: { property: 'theme-color', content: "#89CFF0" }, | ||
}, | ||
], | ||
sidebar: [ | ||
{ | ||
label: "Introduction", | ||
link: "/guides/setup", | ||
}, | ||
{ | ||
label: 'Extensions', | ||
autogenerate: { directory: 'extensions' }, | ||
collapsed: true | ||
}, | ||
{ | ||
label: "Guides", | ||
items: [ | ||
{ | ||
label: "Application Commands", | ||
autogenerate: { | ||
directory: "guides/application-cmds", | ||
}, | ||
collapsed: true, | ||
}, | ||
{ | ||
label: "Client", | ||
autogenerate: { | ||
directory: "guides/client", | ||
}, | ||
collapsed: true, | ||
}, | ||
{ | ||
label: "Other", | ||
autogenerate: { | ||
directory: "guides/other", | ||
}, | ||
collapsed: true, | ||
}, | ||
], | ||
}, | ||
{ | ||
label: "Functions", | ||
items: [ | ||
{ | ||
label: "Array", | ||
autogenerate: { | ||
directory: "functions/array-related", | ||
}, | ||
collapsed: true, | ||
}, | ||
{ | ||
label: "Awaited", | ||
autogenerate: { | ||
directory: "functions/awaited-related", | ||
}, | ||
collapsed: true, | ||
}, | ||
{ | ||
label: "Client", | ||
autogenerate: { | ||
directory: "functions/client-related", | ||
}, | ||
collapsed: true, | ||
}, | ||
{ | ||
label: "Event", | ||
autogenerate: { | ||
directory: "functions/event-related", | ||
}, | ||
collapsed: true, | ||
}, | ||
{ | ||
label: "Guild", | ||
autogenerate: { | ||
directory: "functions/guild-related", | ||
}, | ||
collapsed: true, | ||
}, | ||
{ | ||
label: "Info", | ||
autogenerate: { | ||
directory: "functions/info-related", | ||
}, | ||
collapsed: true, | ||
}, | ||
{ | ||
label: "Interaction", | ||
autogenerate: { | ||
directory: "functions/interaction-related", | ||
}, | ||
collapsed: true, | ||
}, | ||
{ | ||
label: "Invite", | ||
autogenerate: { | ||
directory: "functions/invite-related", | ||
}, | ||
collapsed: true, | ||
}, | ||
{ | ||
label: "Math", | ||
autogenerate: { | ||
directory: "functions/math-related", | ||
}, | ||
collapsed: true, | ||
}, | ||
{ | ||
label: "Message", | ||
autogenerate: { | ||
directory: "functions/message-related", | ||
}, | ||
collapsed: true, | ||
}, | ||
{ | ||
label: "Misc", | ||
autogenerate: { | ||
directory: "functions/misc-related", | ||
}, | ||
collapsed: true, | ||
}, | ||
{ | ||
label: "User", | ||
autogenerate: { | ||
directory: "functions/user-related", | ||
}, | ||
collapsed: true, | ||
}, | ||
{ | ||
label: "Util", | ||
autogenerate: { | ||
directory: "functions/util-related", | ||
}, | ||
collapsed: true, | ||
}, | ||
{ | ||
label: "Variables", | ||
autogenerate: { | ||
directory: "functions/variables-related", | ||
}, | ||
collapsed: true, | ||
}, | ||
], | ||
collapsed: true, | ||
}, | ||
], | ||
}), | ||
react(), | ||
], | ||
image: { | ||
service: { | ||
entrypoint: "astro/assets/services/sharp", | ||
}, | ||
}, | ||
markdown: { | ||
shikiConfig: { | ||
langs: ["powershell"], | ||
}, | ||
rehypePlugins: [ | ||
rehypeHeadingIds, | ||
[ | ||
rehypeAutolinkHeadings, | ||
{ | ||
behavior: "wrap", | ||
properties: { ariaHidden: true, tabIndex: -1, class: "heading-link" }, | ||
}, | ||
], | ||
], | ||
}, | ||
redirects: { | ||
// for easier navigation | ||
guides: "/", | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.