Skip to content

Commit 1396ffb

Browse files
committed
feat: add tutorial category to slug
1 parent 2b36b5c commit 1396ffb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/action.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26035,7 +26035,7 @@ async function process_tutorial(
2603526035

2603626036
const _example = {
2603726037
name: vfile.data.section_title,
26038-
slug: `${cat_title}-${vfile.data.section_slug}`,
26038+
slug: `${make_slug(cat_title, seen_slugs)}-${vfile.data.section_slug}`,
2603926039
};
2604026040

2604126041
full.push({

dist/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24798,7 +24798,7 @@ async function process_tutorial(
2479824798

2479924799
const _example = {
2480024800
name: vfile.data.section_title,
24801-
slug: `${cat_title}-${vfile.data.section_slug}`,
24801+
slug: `${make_slug(cat_title, seen_slugs)}-${vfile.data.section_slug}`,
2480224802
};
2480324803

2480424804
full.push({

src/transform/docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ async function process_tutorial(
239239

240240
const _example = {
241241
name: vfile.data.section_title,
242-
slug: `${cat_title}-${vfile.data.section_slug}`,
242+
slug: `${make_slug(cat_title, seen_slugs)}-${vfile.data.section_slug}`,
243243
};
244244

245245
full.push({

0 commit comments

Comments
 (0)