Commit 7c475d6
Support full clone URLs in getDocs (e.g. GitLab repos) (#382)
getDocs.js hardcoded the GitHub host and prepended it to every
`repo` entry in docs.package.json, so only GitHub repos could be
imported. Resolve each entry to a clone URL instead: a full URL
(https:// or git@) is used as-is, while a bare "owner/name" still
falls back to the GitHub prefix for backwards compatibility.
This unblocks adding application examples that live on GitLab.
Signed-off-by: Daniel Gerber <394442-gerbsen@users.noreply.gitlab.com>
Co-authored-by: Daniel Gerber <394442-gerbsen@users.noreply.gitlab.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 18c633b commit 7c475d6
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
18 | | - | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| |||
0 commit comments