Skip to content

Commit 4d49ac9

Browse files
committed
feat: add section and article slugs for examples
1 parent a65fbf5 commit 4d49ac9

File tree

3 files changed

+246
-35
lines changed

3 files changed

+246
-35
lines changed

src/transform/docs.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ async function process_tutorial(
247247
const _example = {
248248
name: vfile.data.section_title,
249249
slug: make_slug(`${cat_title} ${vfile.data.section_slug}`, seen_slugs),
250+
section_slug: make_slug(cat_title, new Map()),
251+
article_slug: vfile.data.section_slug
250252
};
251253

252254
full.push({

0 commit comments

Comments
 (0)