Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: 22
Expand Down
224 changes: 0 additions & 224 deletions src/components/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,6 @@ export const icons: Record<string, IconNode> = {
}
]
],
"x": [
[
"path",
{
"d": "M18 6 6 18"
}
],
[
"path",
{
"d": "m6 6 12 12"
}
]
],
"arrow-left": [
[
"path",
Expand Down Expand Up @@ -405,26 +391,6 @@ export const icons: Record<string, IconNode> = {
}
]
],
"map": [
[
"path",
{
"d": "M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z"
}
],
[
"path",
{
"d": "M15 5.764v15"
}
],
[
"path",
{
"d": "M9 3.236v15"
}
]
],
"history": [
[
"path",
Expand All @@ -445,38 +411,6 @@ export const icons: Record<string, IconNode> = {
}
]
],
"scale": [
[
"path",
{
"d": "M12 3v18"
}
],
[
"path",
{
"d": "m19 8 3 8a5 5 0 0 1-6 0zV7"
}
],
[
"path",
{
"d": "M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1"
}
],
[
"path",
{
"d": "m5 8 3 8a5 5 0 0 1-6 0zV7"
}
],
[
"path",
{
"d": "M7 21h10"
}
]
],
"shield": [
[
"path",
Expand Down Expand Up @@ -693,14 +627,6 @@ export const icons: Record<string, IconNode> = {
}
]
],
"chevron-right": [
[
"path",
{
"d": "m9 18 6-6-6-6"
}
]
],
"chevron-left": [
[
"path",
Expand Down Expand Up @@ -812,14 +738,6 @@ export const icons: Record<string, IconNode> = {
}
]
],
"cloud": [
[
"path",
{
"d": "M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"
}
]
],
"cpu": [
[
"path",
Expand Down Expand Up @@ -1004,14 +922,6 @@ export const icons: Record<string, IconNode> = {
}
]
],
"message-square": [
[
"path",
{
"d": "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"
}
]
],
"refresh-cw": [
[
"path",
Expand All @@ -1038,56 +948,6 @@ export const icons: Record<string, IconNode> = {
}
]
],
"swords": [
[
"path",
{
"d": "m13 19 6-6"
}
],
[
"path",
{
"d": "M14.5 17.5 3.586 6.586A2 2 0 013 5.172V3h2.172a2 2 0 011.414.586L17.5 14.5"
}
],
[
"path",
{
"d": "m14.828 6.172 2.586-2.586A2 2 0 0118.828 3H21v2.172a2 2 0 01-.586 1.414l-2.586 2.586"
}
],
[
"path",
{
"d": "m16 16 4 4"
}
],
[
"path",
{
"d": "m19 21 2-2"
}
],
[
"path",
{
"d": "m5 14 4 4"
}
],
[
"path",
{
"d": "m5 21-2-2"
}
],
[
"path",
{
"d": "M7.5 16.5 4 20"
}
]
],
"box": [
[
"path",
Expand Down Expand Up @@ -1308,20 +1168,6 @@ export const icons: Record<string, IconNode> = {
}
]
],
"axe": [
[
"path",
{
"d": "m14 12-8.381 8.38a1 1 0 0 1-3.001-3L11 9"
}
],
[
"path",
{
"d": "M15 15.5a.5.5 0 0 0 .5.5A6.5 6.5 0 0 0 22 9.5a.5.5 0 0 0-.5-.5h-1.672a2 2 0 0 1-1.414-.586l-5.062-5.062a1.205 1.205 0 0 0-1.704 0L9.352 5.648a1.205 1.205 0 0 0 0 1.704l5.062 5.062A2 2 0 0 1 15 13.828z"
}
]
],
"bug": [
[
"path",
Expand Down Expand Up @@ -1390,32 +1236,6 @@ export const icons: Record<string, IconNode> = {
}
]
],
"trees-icon": [
[
"path",
{
"d": "M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z"
}
],
[
"path",
{
"d": "M7 16v6"
}
],
[
"path",
{
"d": "M13 19v3"
}
],
[
"path",
{
"d": "M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5"
}
]
],
"download": [
[
"path",
Expand Down Expand Up @@ -1538,22 +1358,6 @@ export const icons: Record<string, IconNode> = {
}
]
],
"compass": [
[
"circle",
{
"cx": "12",
"cy": "12",
"r": "10"
}
],
[
"path",
{
"d": "m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"
}
]
],
"hash": [
[
"line",
Expand Down Expand Up @@ -1592,14 +1396,6 @@ export const icons: Record<string, IconNode> = {
}
]
],
"chevron-down": [
[
"path",
{
"d": "m6 9 6 6 6-6"
}
]
],
"folder-archive": [
[
"circle",
Expand Down Expand Up @@ -2352,26 +2148,6 @@ export const icons: Record<string, IconNode> = {
}
]
],
"shopping-bag": [
[
"path",
{
"d": "M16 10a4 4 0 0 1-8 0"
}
],
[
"path",
{
"d": "M3.103 6.034h17.794"
}
],
[
"path",
{
"d": "M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z"
}
]
],
"chevron-up": [
[
"path",
Expand Down
10 changes: 0 additions & 10 deletions src/lib/docs-nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ export const GROUPS: {
{ id: "community", label: "Community", icon: "heart-handshake", section: "reference" },
];

const groupIndex = new Map(GROUPS.map((group) => [group.id, group]));

export async function getOrderedDocs(): Promise<DocEntry[]> {
const docs = await getCollection("docs");
const groupOrder = new Map(GROUPS.map((group, index) => [group.id, index]));
Expand Down Expand Up @@ -77,11 +75,3 @@ export function docHref(doc: DocEntry): string {
export function sidebarLabel(doc: DocEntry): string {
return doc.data.sidebarLabel ?? doc.data.title;
}

export function getGroupById(id: string) {
return groupIndex.get(id);
}

export function getGroupsInSection(section: DocEntry["data"]["section"]) {
return GROUPS.filter((g) => g.section === section);
}