Commit 885e1a7
fix(docs-site): render <Language> blocks that list multiple languages
`Language` typed its prop as a single language and tested the path with
`pathname.includes(`/${language}/`)`. Four call sites pass an array, which
stringifies to "typescript,python", so the test looked for the path segment
`/typescript,python/`, never matched, and the component returned null —
silently dropping its children on every page.
Accept `Language | readonly Language[]` and match if any listed language
matches the current path.
This restores content that was invisible sitewide, not just on the auth
page: the two intro paragraphs on the Essentials landing page and the
OAuth connection-name note both render again. Single-language gating is
unchanged.
Also add blank lines around the admonition inside that `<Language>` block
so the markdown is parsed, matching the surrounding convention.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent 9dc7434 commit 885e1a7
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
0 commit comments