docs: fix edit links (#9568)

fixes #9557
pull/9697/head
Rich Harris 1 year ago committed by GitHub
parent 2d8a8603cb
commit 7a5176e45b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,7 +21,7 @@ export const GET = client_id
<p>In order to use GitHub authentication, you will need to <a target="_blank" href="https://github.com/settings/developers">register an OAuth application</a> and create a local .env file:</p>
<pre>GITHUB_CLIENT_ID=[YOUR_APP_ID]\nGITHUB_CLIENT_SECRET=[YOUR_APP_SECRET]\nBASEURL=http://localhost:5173</pre>
<p>The <code>BASEURL</code> variable should match the callback URL specified for your app.</p>
<p>See also <a target="_blank" href="https://github.com/sveltejs/svelte/tree/master/site#repl-github-integration">here</a></p>
<p>See also <a target="_blank" href="https://github.com/sveltejs/svelte/tree/svelte-4/sites/svelte.dev#repl-github-integration">here</a></p>
</body>
`,
{

@ -25,7 +25,7 @@
<div class="text" id="docs-content" use:copy_code_descendants>
<a
class="edit"
href="https://github.com/sveltejs/svelte/edit/master/documentation/docs/{data.page.file}"
href="https://github.com/sveltejs/svelte/edit/svelte-4/documentation/docs/{data.page.file}"
>
<Icon size={50} name="edit" /> Edit this page on GitHub
</a>

@ -47,7 +47,7 @@
$: if (scrollable) data.tutorial, scrollable.scrollTo(0, 0);
$: selected = lookup.get(data.slug);
$: improve_link = `https://github.com/sveltejs/svelte/tree/master/documentation/tutorial/${data.tutorial.dir}`;
$: improve_link = `https://github.com/sveltejs/svelte/tree/svelte-4/documentation/tutorial/${data.tutorial.dir}`;
const clone = (file) => ({
name: file.name.replace(/.\w+$/, ''),

Loading…
Cancel
Save