Skip to content

Commit 800e779

Browse files
committed
Add slug frontmatter to tutorial pages
Tutorial filenames use numeric prefixes (01-first-steps.md, etc.) that Docusaurus strips from URLs and vercel.json redirects away via /docs/tutorial/:number(\d+)-:path → /docs/tutorial/:path Without explicit slug frontmatter, docusaurus-plugin-llms wrote /docs/tutorial/01-first-steps.md etc. — URLs that production Vercel would 308-redirect to /docs/tutorial/first-steps.md, a path that didn't exist on disk (404). Setting slug: to the post-strip name on each tutorial page aligns the plugin's .md output with the canonical URL, so every link in llms.txt resolves cleanly.
1 parent 754a9e7 commit 800e779

10 files changed

Lines changed: 10 additions & 0 deletions

docs/tutorial/01-first-steps.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
slug: first-steps
23
archived: false
34
draft: false
45
title: First Steps

docs/tutorial/02-hello-world.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
slug: hello-world
23
archived: false
34
draft: false
45
title: Hello World

docs/tutorial/03-resources.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
slug: resources
23
archived: false
34
draft: false
45
title: Resources and the Move (<-) Operator

docs/tutorial/04-capabilities.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
slug: capabilities
23
title: Capabilities and Entitlements
34
description: An introduction to capabilities, entitlements, and how they interact with resources in Cadence
45
meta:

docs/tutorial/05-non-fungible-tokens-1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
slug: non-fungible-tokens-1
23
archived: false
34
draft: false
45
title: Basic NFT

docs/tutorial/05-non-fungible-tokens-2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
slug: non-fungible-tokens-2
23
archived: false
34
draft: false
45
title: Intermediate NFTs

docs/tutorial/06-fungible-tokens.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
slug: fungible-tokens
23
archived: false
34
draft: false
45
title: Fungible Tokens

docs/tutorial/07-marketplace-setup.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
slug: marketplace-setup
23
title: Marketplace Setup
34
---
45

docs/tutorial/08-marketplace-compose.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
slug: marketplace-compose
23
title: Marketplace
34
archived: false
45
draft: false

docs/tutorial/09-voting.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
slug: voting
23
title: Voting Contract
34
---
45

0 commit comments

Comments
 (0)