Skip to content

Commit ac11511

Browse files
committed
style(site): format mdx
1 parent f92c34b commit ac11511

File tree

7 files changed

+40
-35
lines changed

7 files changed

+40
-35
lines changed

site/src/content/docs/command.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ title: Commands
33
description: CLI commands for managing dependency versions across your monorepo
44
---
55

6-
import { CardGrid, LinkCard } from '@astrojs/starlight/components';
7-
import { getCollection } from 'astro:content';
6+
import { CardGrid, LinkCard } from "@astrojs/starlight/components";
7+
import { getCollection } from "astro:content";
88

9-
export const allDocs = await getCollection('docs');
9+
export const allDocs = await getCollection("docs");
1010
export const pages = allDocs
11-
.filter((doc) => doc.id.startsWith('command/') && doc.id !== 'command')
11+
.filter((doc) => doc.id.startsWith("command/") && doc.id !== "command")
1212
.sort((a, b) => a.data.title.localeCompare(b.data.title));
1313

1414
Syncpack provides several commands to lint, fix, format, and update dependencies in your monorepo.
@@ -17,8 +17,8 @@ Syncpack provides several commands to lint, fix, format, and update dependencies
1717
{pages.map((page) => (
1818
<LinkCard
1919
title={page.data.title}
20-
href={`/syncpack/${page.id.replace(/\.mdx?$/, '')}/`}
20+
href={`/syncpack/${page.id.replace(/\.mdx?$/, "")}/`}
2121
description={page.data.description}
2222
/>
2323
))}
24-
</CardGrid>
24+
</CardGrid>

site/src/content/docs/command/json.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import SpecifierTypesOption from "@partials/option/specifier-types.mdx";
1818

1919
import QuoteFilters from "@partials/tips/quote-filters.mdx";
2020

21-
Export dependency data from your monorepo as JSON. Outputs one line per dependency instance with version, location, and status information. Use with tools like [`jq`](https://jqlang.org/) to analyse, filter, or pipe into other commands.
21+
Export dependency data from your monorepo as JSON. Outputs one line per dependency instance with version, location, and status information. Use with tools like [`jq`](https://jqlang.org/) to analyse, filter, or pipe into other programs.
2222

2323
## Examples
2424

site/src/content/docs/config.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ title: Configuration File
33
description: Configure syncpack behavior through .syncpackrc files and command-line options
44
---
55

6-
import { CardGrid, LinkCard } from '@astrojs/starlight/components';
7-
import { getCollection } from 'astro:content';
6+
import { CardGrid, LinkCard } from "@astrojs/starlight/components";
7+
import { getCollection } from "astro:content";
88

9-
export const allDocs = await getCollection('docs');
9+
export const allDocs = await getCollection("docs");
1010
export const pages = allDocs
11-
.filter((doc) => doc.id.startsWith('config/') && doc.id !== 'config')
11+
.filter((doc) => doc.id.startsWith("config/") && doc.id !== "config")
1212
.sort((a, b) => a.data.title.localeCompare(b.data.title));
1313

1414
Configure syncpack's behavior using a `.syncpackrc` file in your project root. These options control formatting, sorting, dependency management, and version constraints.
@@ -17,8 +17,8 @@ Configure syncpack's behavior using a `.syncpackrc` file in your project root. T
1717
{pages.map((page) => (
1818
<LinkCard
1919
title={page.data.title}
20-
href={`/syncpack/${page.id.replace(/\.mdx?$/, '')}/`}
20+
href={`/syncpack/${page.id.replace(/\.mdx?$/, "")}/`}
2121
description={page.data.description}
2222
/>
2323
))}
24-
</CardGrid>
24+
</CardGrid>

site/src/content/docs/guide.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ title: Guides
33
description: Learn how to use Syncpack effectively in your monorepo
44
---
55

6-
import { CardGrid, LinkCard } from '@astrojs/starlight/components';
7-
import { getCollection } from 'astro:content';
6+
import { CardGrid, LinkCard } from "@astrojs/starlight/components";
7+
import { getCollection } from "astro:content";
88

9-
export const allDocs = await getCollection('docs');
9+
export const allDocs = await getCollection("docs");
1010
export const pages = allDocs
11-
.filter((doc) => doc.id.startsWith('guide/') && doc.id !== 'guide')
11+
.filter((doc) => doc.id.startsWith("guide/") && doc.id !== "guide")
1212
.sort((a, b) => a.data.title.localeCompare(b.data.title));
1313

1414
Step-by-step guides to help you get the most out of Syncpack in your JavaScript monorepo.
@@ -17,8 +17,8 @@ Step-by-step guides to help you get the most out of Syncpack in your JavaScript
1717
{pages.map((page) => (
1818
<LinkCard
1919
title={page.data.title}
20-
href={`/syncpack/${page.id.replace(/\.mdx?$/, '')}/`}
20+
href={`/syncpack/${page.id.replace(/\.mdx?$/, "")}/`}
2121
description={page.data.description}
2222
/>
2323
))}
24-
</CardGrid>
24+
</CardGrid>

site/src/content/docs/reference.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ title: Reference
33
description: Technical reference documentation for Syncpack concepts and terminology
44
---
55

6-
import { CardGrid, LinkCard } from '@astrojs/starlight/components';
7-
import { getCollection } from 'astro:content';
6+
import { CardGrid, LinkCard } from "@astrojs/starlight/components";
7+
import { getCollection } from "astro:content";
88

9-
export const allDocs = await getCollection('docs');
9+
export const allDocs = await getCollection("docs");
1010
export const pages = allDocs
11-
.filter((doc) => doc.id.startsWith('reference/') && doc.id !== 'reference')
11+
.filter((doc) => doc.id.startsWith("reference/") && doc.id !== "reference")
1212
.sort((a, b) => a.data.title.localeCompare(b.data.title));
1313

1414
Reference documentation covering dependency types, specifier types, status codes, and glossary of terms used throughout Syncpack.
@@ -17,8 +17,8 @@ Reference documentation covering dependency types, specifier types, status codes
1717
{pages.map((page) => (
1818
<LinkCard
1919
title={page.data.title}
20-
href={`/syncpack/${page.id.replace(/\.mdx?$/, '')}/`}
20+
href={`/syncpack/${page.id.replace(/\.mdx?$/, "")}/`}
2121
description={page.data.description}
2222
/>
2323
))}
24-
</CardGrid>
24+
</CardGrid>

site/src/content/docs/semver-groups.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ title: Semver Groups
33
description: Configure semver range formats for dependencies across your monorepo
44
---
55

6-
import { CardGrid, LinkCard } from '@astrojs/starlight/components';
7-
import { getCollection } from 'astro:content';
6+
import { CardGrid, LinkCard } from "@astrojs/starlight/components";
7+
import { getCollection } from "astro:content";
88

9-
export const allDocs = await getCollection('docs');
9+
export const allDocs = await getCollection("docs");
1010
export const pages = allDocs
11-
.filter((doc) => doc.id.startsWith('semver-groups/') && doc.id !== 'semver-groups')
11+
.filter(
12+
(doc) => doc.id.startsWith("semver-groups/") && doc.id !== "semver-groups",
13+
)
1214
.sort((a, b) => a.data.title.localeCompare(b.data.title));
1315

1416
Allow some packages to have different semver range rules to the rest of your monorepo. Each dependency can only belong to one semver group, the first rule which matches a given dependency and package will apply.
@@ -88,7 +90,7 @@ Allow some packages to have different semver range rules to the rest of your mon
8890
{pages.map((page) => (
8991
<LinkCard
9092
title={page.data.title}
91-
href={`/syncpack/${page.id.replace(/\.mdx?$/, '')}/`}
93+
href={`/syncpack/${page.id.replace(/\.mdx?$/, "")}/`}
9294
description={page.data.description}
9395
/>
9496
))}

site/src/content/docs/version-groups.mdx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ title: Version Groups
33
description: Control how dependency versions are managed across your monorepo
44
---
55

6-
import { CardGrid, LinkCard } from '@astrojs/starlight/components';
6+
import { CardGrid, LinkCard } from "@astrojs/starlight/components";
77
import { Tabs, TabItem } from "@astrojs/starlight/components";
8-
import { getCollection } from 'astro:content';
8+
import { getCollection } from "astro:content";
99

10-
export const allDocs = await getCollection('docs');
10+
export const allDocs = await getCollection("docs");
1111
export const pages = allDocs
12-
.filter((doc) => doc.id.startsWith('version-groups/') && doc.id !== 'version-groups')
12+
.filter(
13+
(doc) =>
14+
doc.id.startsWith("version-groups/") && doc.id !== "version-groups",
15+
)
1316
.sort((a, b) => a.data.title.localeCompare(b.data.title));
1417

1518
Version groups split your project into isolated sections, each with their own policy for how versions should be managed.
@@ -91,7 +94,7 @@ Any properties of a version group that are omitted will match-all by default, so
9194
{pages.map((page) => (
9295
<LinkCard
9396
title={page.data.title}
94-
href={`/syncpack/${page.id.replace(/\.mdx?$/, '')}/`}
97+
href={`/syncpack/${page.id.replace(/\.mdx?$/, "")}/`}
9598
description={page.data.description}
9699
/>
97100
))}

0 commit comments

Comments
 (0)