Skip to content

Support full clone URLs in getDocs (e.g. GitLab repos)#382

Open
gerbsen wants to merge 2 commits into
mainfrom
fix-getdocs-hardcoded-github-url
Open

Support full clone URLs in getDocs (e.g. GitLab repos)#382
gerbsen wants to merge 2 commits into
mainfrom
fix-getdocs-hardcoded-github-url

Conversation

@gerbsen

@gerbsen gerbsen commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

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 or other forges like codeberg.

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.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Daniel Gerber <394442-gerbsen@users.noreply.gitlab.com>
@gerbsen
gerbsen force-pushed the fix-getdocs-hardcoded-github-url branch from 328a9a9 to 04bf5f1 Compare July 17, 2026 14:33

@fkr fkr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@fkr

fkr commented Jul 17, 2026

Copy link
Copy Markdown
Member

Indeed a very good addition. Thanks @gerbsen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants