diff --git a/packages/website/src/components/DocContainer.tsx b/packages/website/src/components/DocContainer.tsx
index 2b332a1b8..596ba028e 100644
--- a/packages/website/src/components/DocContainer.tsx
+++ b/packages/website/src/components/DocContainer.tsx
@@ -53,7 +53,7 @@ export function DocContainer({
- } padded dense={matches}>
+ } padded dense={matches}>
{summary ? : No summary provided.}
@@ -97,7 +97,13 @@ export function DocContainer({
{typeParams?.length ? (
- } padded dense={matches} defaultClosed>
+ }
+ padded
+ dense={matches}
+ defaultClosed
+ >
) : null}
diff --git a/packages/website/src/components/Section.tsx b/packages/website/src/components/Section.tsx
index 21894a3a4..92e30cbee 100644
--- a/packages/website/src/components/Section.tsx
+++ b/packages/website/src/components/Section.tsx
@@ -8,7 +8,6 @@ const useStyles = createStyles((theme, { opened }: { opened: boolean }) => ({
width: '100%',
padding: `${theme.spacing.xs}px ${theme.spacing.xs}px`,
color: theme.colorScheme === 'dark' ? theme.colors.dark![0] : theme.black,
- fontSize: theme.fontSizes.sm,
'&:hover': {
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark![6] : theme.colors.gray![0],
@@ -45,11 +44,7 @@ export function Section({
setOpened((o) => !o)}>
- {icon ? (
-
- {icon}
-
- ) : null}
+ {icon ? {icon} : null}
{title}
diff --git a/packages/website/src/components/Sections.tsx b/packages/website/src/components/Sections.tsx
index 4fbbfbc7c..7ed93534a 100644
--- a/packages/website/src/components/Sections.tsx
+++ b/packages/website/src/components/Sections.tsx
@@ -14,7 +14,7 @@ export function PropertiesSection({ data }: { data: ApiClassJSON['properties'] |
const matches = useMediaQuery('(max-width: 768px)', true, { getInitialValueInEffect: false });
return data.length ? (
- } padded dense={matches}>
+ } padded dense={matches}>
) : null;
@@ -24,7 +24,7 @@ export function MethodsSection({ data }: { data: ApiClassJSON['methods'] | ApiIn
const matches = useMediaQuery('(max-width: 768px)', true, { getInitialValueInEffect: false });
return data.length ? (
- } padded dense={matches}>
+ } padded dense={matches}>
) : null;
@@ -34,7 +34,7 @@ export function ParametersSection({ data }: { data: ParameterDocumentation[] })
const matches = useMediaQuery('(max-width: 768px)', true, { getInitialValueInEffect: false });
return data.length ? (
- } padded dense={matches}>
+ } padded dense={matches}>
) : null;
@@ -53,7 +53,7 @@ export function ConstructorSection({ data }: { data: ApiConstructorJSON }) {
}, '')})`;
return data.parameters.length ? (
- } padded dense={matches}>
+ } padded dense={matches}>
diff --git a/packages/website/src/components/SidebarItems.tsx b/packages/website/src/components/SidebarItems.tsx
index dc980a806..b1e9913de 100644
--- a/packages/website/src/components/SidebarItems.tsx
+++ b/packages/website/src/components/SidebarItems.tsx
@@ -51,17 +51,17 @@ function groupMembers(members: Members): GroupedMembers {
function resolveIcon(item: keyof GroupedMembers) {
switch (item) {
case 'Classes':
- return ;
+ return ;
case 'Enums':
- return ;
+ return ;
case 'Interfaces':
- return ;
+ return ;
case 'Types':
- return ;
+ return ;
case 'Variables':
- return ;
+ return ;
case 'Functions':
- return ;
+ return ;
}
}
diff --git a/packages/website/src/components/SidebarLayout.tsx b/packages/website/src/components/SidebarLayout.tsx
index ff2ec1e28..1dcd2ceb5 100644
--- a/packages/website/src/components/SidebarLayout.tsx
+++ b/packages/website/src/components/SidebarLayout.tsx
@@ -130,8 +130,8 @@ export function SidebarLayout({ packageName, data, children }: PropsWithChildren
-
-
+
+
{packageName}
diff --git a/packages/website/src/components/TableOfContentItems.tsx b/packages/website/src/components/TableOfContentItems.tsx
index 341ffde60..c4a3d3e5a 100644
--- a/packages/website/src/components/TableOfContentItems.tsx
+++ b/packages/website/src/components/TableOfContentItems.tsx
@@ -1,5 +1,5 @@
-import { createStyles, Group, Text, Box, Stack } from '@mantine/core';
-import { VscListSelection } from 'react-icons/vsc';
+import { createStyles, Group, Text, Box, Stack, ThemeIcon } from '@mantine/core';
+import { VscListSelection, VscSymbolMethod, VscSymbolProperty } from 'react-icons/vsc';
import type { ApiClassJSON, ApiInterfaceJSON } from '~/DocModel/ApiNodeJSONEncoder';
const useStyles = createStyles((theme) => ({
@@ -13,13 +13,14 @@ const useStyles = createStyles((theme) => ({
fontSize: theme.fontSizes.sm,
padding: theme.spacing.xs,
paddingLeft: theme.spacing.md,
- marginLeft: 8,
+ marginLeft: 14,
borderTopRightRadius: theme.radius.sm,
borderBottomRightRadius: theme.radius.sm,
borderLeft: `1px solid ${theme.colorScheme === 'dark' ? theme.colors.dark![4] : theme.colors.gray![3]}`,
'&:hover': {
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark![6] : theme.colors.gray![0],
+ color: theme.colorScheme === 'dark' ? theme.white : theme.black,
},
},
}));
@@ -64,20 +65,38 @@ export function TableOfContentItems({
return (
-
-
- Table of content
+
+
+ Table of contents
-
+
{propertyItems.length ? (
- Properties
+
+
+
+
+
+
+ Properties
+
+
+
{propertyItems}
) : null}
{methodItems.length ? (
- Methods
+
+
+
+
+
+
+ Methods
+
+
+
{methodItems}
) : null}
diff --git a/packages/website/src/components/model/Enum.tsx b/packages/website/src/components/model/Enum.tsx
index 3dcaaff79..0dfe76184 100644
--- a/packages/website/src/components/model/Enum.tsx
+++ b/packages/website/src/components/model/Enum.tsx
@@ -11,7 +11,7 @@ export function Enum({ data }: { data: ApiEnumJSON }) {
return (
- } padded dense={matches}>
+ } padded dense={matches}>
{data.members.map((member) => (
-
-
-
-
-
+ <>
+
+ discord.js
+
+
+
+
+
+
+
+
+ >
);
}
diff --git a/packages/website/src/pages/_document.tsx b/packages/website/src/pages/_document.tsx
index 9ed53f46c..452d086dd 100644
--- a/packages/website/src/pages/_document.tsx
+++ b/packages/website/src/pages/_document.tsx
@@ -15,9 +15,8 @@ export default class _Document extends Document {
public override render() {
return (
-
+
-
diff --git a/packages/website/src/pages/docs/[...slug].tsx b/packages/website/src/pages/docs/[...slug].tsx
index 6cdef84c8..0c85706ae 100644
--- a/packages/website/src/pages/docs/[...slug].tsx
+++ b/packages/website/src/pages/docs/[...slug].tsx
@@ -1,8 +1,8 @@
-/* eslint-disable @typescript-eslint/no-throw-literal */
import { readFile } from 'node:fs/promises';
import { join } from 'node:path';
import { Box } from '@mantine/core';
import { ApiFunction } from '@microsoft/api-extractor-model';
+import Head from 'next/head';
import type { GetStaticPaths, GetStaticProps } from 'next/types';
import type {
ApiClassJSON,
@@ -150,7 +150,16 @@ export default function Slug(props: Partial{props.error}
) : (
- {props.data?.member ? member(props.data.member) : null}
+
+ {props.data?.member ? (
+ <>
+
+ discord.js | {props.data.member.name}
+
+ {member(props.data.member)}
+ >
+ ) : null}
+
);
}
diff --git a/packages/website/src/util/icon.tsx b/packages/website/src/util/icon.tsx
index 26a614e61..a5945796e 100644
--- a/packages/website/src/util/icon.tsx
+++ b/packages/website/src/util/icon.tsx
@@ -1,13 +1,13 @@
import { VscSymbolClass, VscSymbolMethod, VscSymbolEnum, VscSymbolInterface, VscSymbolVariable } from 'react-icons/vsc';
-export function generateIcon(kind: string, className?: string) {
+export function generateIcon(kind: string) {
const icons = {
- Class: ,
- Method: ,
- Function: ,
- Enum: ,
- Interface: ,
- TypeAlias: ,
+ Class: ,
+ Method: ,
+ Function: ,
+ Enum: ,
+ Interface: ,
+ TypeAlias: ,
};
return icons[kind as keyof typeof icons];