Skip to content

Commit

Permalink
fix(doc): operators link list
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeysova committed Aug 31, 2024
1 parent 9fe1231 commit edc99cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
5 changes: 0 additions & 5 deletions documentation/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ export default defineConfig({
discord: 'https://discord.gg/yHcMcuRWeC',
youtube: 'https://youtube.com/@effectorjs',
},
defaultLocale: 'en',
locales: {
root: { label: 'English', lang: 'en' },
// 'ru-RU': { label: 'Russian' },
},
sidebar: [
{
label: 'Guides',
Expand Down
18 changes: 9 additions & 9 deletions documentation/src/pages/operators/index.astro
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
import { getCollection } from "astro:content";
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
import { LinkCard, CardGrid } from "@astrojs/starlight/components";
import { groupBy } from "../../lib/group-by";
import { capitalize } from "../../lib/string";
import { getCollection } from 'astro:content';
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
import { LinkCard, CardGrid } from '@astrojs/starlight/components';
import { groupBy } from '../../lib/group-by';
import { capitalize } from '../../lib/string';
const list = await getCollection("operators");
const list = await getCollection('operators');
const groups = groupBy(
list.map((i) => ({ ...i, ...i.data })),
"group",
'group',
).sort((a, b) => a.group.localeCompare(b.group));
---

<StarlightPage frontmatter={{ title: "Operators list" }}>
<StarlightPage frontmatter={{ title: 'Operators list' }}>
{
groups.map((group) => (
<section>
Expand All @@ -24,7 +24,7 @@ const groups = groupBy(
.map((operator) => (
<LinkCard
title={operator.title}
href={"operators/" + (operator.slug ?? operator.title)}
href={'/operators/' + (operator.slug ?? operator.title)}
description={operator.description}
/>
))}
Expand Down

0 comments on commit edc99cb

Please sign in to comment.