Skip to content

Commit cc97687

Browse files
committed
naming and 1111 slugs
1 parent 507eeae commit cc97687

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/components/PartialsUsage.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import UsageList from "./UsageList.astro";
77
const partials = await getPartialsUsage();
88
---
99

10-
<Details header="Partials" id="partials-container">
10+
<Details header="Usage" id="partials-container">
1111
{
1212
[...Object.entries(partials)]
1313
.sort((a, b) => a[0].localeCompare(b[0]))

src/components/UsageList.astro

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ const { usage } = props.parse(Astro.props);
3131
.replace("src/content/docs/", "")
3232
.replace(".mdx", "")
3333
.split("/")
34-
.map((segment) => slug(segment))
34+
.map((segment) => {
35+
if (segment === "1.1.1.1") {
36+
return segment;
37+
}
38+
return slug(segment);
39+
})
3540
.join("/") +
3641
"/";
3742

src/content/docs/style-guide/components/render.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,6 @@ import { Render } from "~/components";
193193
<Render file="optional-props" params={{ product: "Thing Three" }} />
194194
```
195195

196-
## Usage
196+
## Partials
197197

198198
<PartialsUsage />

0 commit comments

Comments
 (0)