@@ -320,7 +320,33 @@ Rules are evaluated in order; the first matching rule wins.
320320
321321-- -
322322
323- ### Rule 8 : TiDB Index Pages with Folders
323+ ### Rule 8 : TiDB Cloud Lake Namespace
324+
325+ ** Effect ** : Maps TiDB Cloud Lake pages to the ` /tidbcloudlake ` namespace .
326+
327+ ** Source Pattern ** : ` /{lang}/tidb-cloud-lake/{branch}/{...folders}/{filename} `
328+
329+ ** Target Pattern ** :
330+ - For ` _index ` : ` /{lang}/tidbcloudlake/{folders} ` (keeps folder structure )
331+ - For other files : ` /{lang}/tidbcloudlake/{filename} ` (flattens folder structure )
332+
333+ ** Filename Transform ** :
334+ - ` ignoreIf: ["_index"] `
335+ - ` conditionalTarget.keepIf: ["_index"] `
336+
337+ ** Example ** :
338+ - Source : ` en/tidb-cloud-lake/master/_index.md `
339+ - Target : ` /tidbcloudlake `
340+ - Source : ` en/tidb-cloud-lake/master/tidb-cloud-lake/_index.md `
341+ - Target : ` /tidbcloudlake `
342+ - Source : ` en/tidb-cloud-lake/master/tidb-cloud-lake/guides/dashboards.md `
343+ - Target : ` /tidbcloudlake/dashboards `
344+
345+ ** Use Case ** : TiDB Cloud Lake content is sourced from its own docs tree but published under a compact top - level namespace .
346+
347+ -- -
348+
349+ ### Rule 9 : TiDB Index Pages with Folders
324350
325351** Effect ** : Maps TiDB ` _index.md ` pages to URLs that keep their folder path , preventing multiple ` _index.md ` files from collapsing to the same ` /tidb/{branch} ` URL .
326352
@@ -340,7 +366,7 @@ Rules are evaluated in order; the first matching rule wins.
340366
341367-- -
342368
343- ### Rule 9 : TiDB with Branch Alias
369+ ### Rule 10 : TiDB with Branch Alias
344370
345371** Effect ** : Maps TiDB pages with branch aliasing (master → dev , release -* → v * ).
346372
@@ -365,7 +391,7 @@ Rules are evaluated in order; the first matching rule wins.
365391
366392-- -
367393
368- ### Rule 10 : TiDB - in - Kubernetes with Branch Alias
394+ ### Rule 11 : TiDB - in - Kubernetes with Branch Alias
369395
370396** Effect ** : Maps TiDB - in - Kubernetes pages with branch aliasing (main → dev , release -* → v * ).
371397
@@ -390,7 +416,7 @@ Rules are evaluated in order; the first matching rule wins.
390416
391417-- -
392418
393- ### Rule 11 : Fallback Rule
419+ ### Rule 12 : Fallback Rule
394420
395421** Effect ** : Generic fallback for any remaining paths .
396422
@@ -505,16 +531,17 @@ Rules are evaluated in order; the first matching rule wins.
505531
506532### Rule 6: Namespace Index Links (Direct Mapping)
507533
508- **Effect**: Resolves namespace index links (ending with `/_index`) to namespace URLs (published as `/developer`, `/best-practices`, `/api`, `/ai`, `/tidbcloud`).
534+ **Effect**: Resolves namespace index links (ending with `/_index`) to namespace URLs (published as `/developer`, `/best-practices`, `/api`, `/ai`, `/tidbcloud`, `/tidbcloudlake` ).
509535
510536**Link Pattern**: `/{namespace}/{...folders}/_index`
511537
512538**Target Pattern**: `/{curLang}/{namespace}/{folders}`
513539
514- **Conditions**: `namespace = ["tidb-cloud", "develop", "best-practices", "api", "ai"]`
540+ **Conditions**: `namespace = ["tidb-cloud", "tidb-cloud-lake", " develop", "best-practices", "api", "ai"]`
515541
516542**Namespace Transform**:
517543- `tidb-cloud` → `tidbcloud`
544+ - `tidb-cloud-lake` → `tidbcloudlake`
518545- `develop` → `developer`
519546
520547**Example**:
@@ -524,29 +551,36 @@ Rules are evaluated in order; the first matching rule wins.
524551- Link: `/best-practices/performance/_index`
525552- Current Page: Any page
526553- Result: `/best-practices/performance`
554+ - Link: `/tidb-cloud-lake/_index`
555+ - Current Page: Any page
556+ - Result: `/tidbcloudlake`
527557
528558**Use Case**: Keeps namespace index links consistent with how `_index.md` pages are published.
529559
530560---
531561
532562### Rule 7: Namespace Links (Direct Mapping)
533563
534- **Effect**: Resolves namespace links (`develop`, `best-practices`, `api`, `ai`, `tidb-cloud`) to namespace URLs (published as `/developer`, `/best-practices`, `/api`, `/ai`, `/tidbcloud`).
564+ **Effect**: Resolves namespace links (`develop`, `best-practices`, `api`, `ai`, `tidb-cloud`, `tidb-cloud-lake` ) to namespace URLs (published as `/developer`, `/best-practices`, `/api`, `/ai`, `/tidbcloud`, `/tidbcloudlake `).
535565
536566**Link Pattern**: `/{namespace}/{...any}/{docname}`
537567
538568**Target Pattern**: `/{curLang}/{namespace}/{docname}`
539569
540- **Conditions**: `namespace = ["tidb-cloud", "develop", "best-practices", "api", "ai"]`
570+ **Conditions**: `namespace = ["tidb-cloud", "tidb-cloud-lake", " develop", "best-practices", "api", "ai"]`
541571
542572**Namespace Transform**:
543573- `tidb-cloud` → `tidbcloud`
574+ - `tidb-cloud-lake` → `tidbcloudlake`
544575- `develop` → `developer`
545576
546577**Example**:
547578- Link: `/develop/vector-search`
548579- Current Page: Any page
549580- Result: `/developer/vector-search`
581+ - Link: `/tidb-cloud-lake/guides/dashboards`
582+ - Current Page: Any page
583+ - Result: `/tidbcloudlake/dashboards`
550584
551585**Use Case**: Direct links to namespace pages from any location.
552586
@@ -574,7 +608,26 @@ Rules are evaluated in order; the first matching rule wins.
574608
575609---
576610
577- ### Rule 9: Developer/Best-Practices/API/AI Namespace Page Links (Path-Based)
611+ ### Rule 9: TiDB Cloud Lake Page Links (Path-Based)
612+
613+ **Effect**: Resolves relative links from TiDB Cloud Lake pages to `/tidbcloudlake/*` URLs.
614+
615+ **Path Pattern**: `/{lang}/tidbcloudlake/{...any}`
616+
617+ **Link Pattern**: `/{...any}/{docname}`
618+
619+ **Target Pattern**: `/{lang}/tidbcloudlake/{docname}`
620+
621+ **Example**:
622+ - Current Page: `/tidbcloudlake`
623+ - Link: `/guides/dashboards`
624+ - Result: `/tidbcloudlake/dashboards`
625+
626+ **Use Case**: Relative links within TiDB Cloud Lake documentation preserve the TiDB Cloud Lake namespace.
627+
628+ ---
629+
630+ ### Rule 10: Developer/Best-Practices/API/AI Namespace Page Links (Path-Based)
578631
579632**Effect**: Resolves relative links from namespace pages to TiDB stable branch URLs.
580633
@@ -598,7 +651,7 @@ Rules are evaluated in order; the first matching rule wins.
598651
599652---
600653
601- ### Rule 10 : TiDB/TiDB-in-Kubernetes Page Links (Path-Based)
654+ ### Rule 11 : TiDB/TiDB-in-Kubernetes Page Links (Path-Based)
602655
603656**Effect**: Resolves relative links from TiDB or TiDB-in-Kubernetes pages, preserving branch/version.
604657
@@ -634,7 +687,7 @@ The URL mapping system provides:
634687
6356881. **Consistent URL Structure**: Source files are mapped to clean, SEO-friendly URLs
6366892. **Context-Aware Link Resolution**: Links are resolved based on the current page's context
637- 3. **Namespace Support**: Special namespaces (`developer`, `best-practices`, `api`, `ai`) have their own URL structure
690+ 3. **Namespace Support**: Special namespaces (`developer`, `best-practices`, `api`, `ai`, `tidbcloudlake` ) have their own URL structure
6386914. **Branch Aliasing**: Internal branch names are transformed to user-friendly versions
6396925. **Default Language Omission**: Default language (`en`) is omitted from URLs for cleaner paths
6406936. **TOC-Driven Build**: Only files referenced in TOC files are built, reducing build size
0 commit comments