You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,9 @@ Internal links between documentation pages use **URL paths built from the YAML c
26
26
|`{product-slug}`|`slug` field on the product in `fern/docs.yml`|`docs`, `sdks`, `dashboard`|
27
27
|`{section-slug}`| Section name or `slug` override in the product's YML file |`getting-started`, `ai-features`|
28
28
|`{page-slug}`| Page name or `slug` override in the product's YML file |`overview`, `llms-txt`|
29
+
|`skip-slug: true`| Set on a product, section, or tab | Omits that segment from the URL entirely |
29
30
30
-
The Home product has no slug, so its pages start at `/learn/{section}/{page}`.
31
+
Products, sections, and tabs with `skip-slug: true` — or with no `slug:` field at all (like the Home product in `fern/docs.yml`) — are omitted from the URL. The Home product's pages therefore start at `/learn/{section-slug}/{page-slug}`.
31
32
32
33
### Example
33
34
@@ -73,9 +74,11 @@ The correct link is:
73
74
74
75
1. Find the product's `slug` in `fern/docs.yml`.
75
76
2. Open the product's YML file (e.g., `fern/products/docs/docs.yml`).
76
-
3. Find the target page — check for explicit `slug:` overrides on both the section and the page.
77
-
4. If no explicit slug, the slug is auto-derived: lowercased and hyphenated from the display name.
0 commit comments