Add Repository
(source = 'github')} > GitHub
(source = 'local')} > Local Path
{source === 'github' ? 'GitHub URL' : 'Local Path'}
{#if source === 'github'}
{:else}
{ if (!title) title = p.split('/').at(-1) ?? ''; }} />
{/if}
Display Title (optional)
{#if source === 'github'}
GitHub Token
(optional, for private repos)
{/if}
{#if error}
{error}
{/if}
Cancel
{loading ? 'Adding...' : 'Add & Index'}