Skip to content

Commit

Permalink
fix init command in starter app on about page (#1105)
Browse files Browse the repository at this point in the history
* fix init command in starter app on about page

* add changeset
  • Loading branch information
Conduitry authored Apr 18, 2021
1 parent e1532dc commit daf6913
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/slow-fans-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Fix bootstrapping command on about page
24 changes: 17 additions & 7 deletions packages/create-svelte/templates/default/src/routes/about.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,24 @@
<div class="content">
<h1>About this app</h1>

<p>This is a <a href="https://kit.svelte.dev">SvelteKit</a> app. You can make your own by typing the following into your command line and following the prompts:</p>
<p>
This is a <a href="https://kit.svelte.dev">SvelteKit</a> app. You can make your own by typing the
following into your command line and following the prompts:
</p>

<!-- TODO lose the @next! -->
<pre>npx init svelte@next</pre>

<p>The page you're looking at is purely static HTML, with no client-side interactivity needed. Because of that, we don't need to load any JavaScript. Try viewing the page's source, or opening the devtools network panel and reloading.</p>

<p>The <a href="/todos">TODOs</a> page illustrates SvelteKit's data loading and form handling. Try using it with JavaScript disabled!</p>
<pre>npm init svelte@next</pre>

<p>
The page you're looking at is purely static HTML, with no client-side interactivity needed.
Because of that, we don't need to load any JavaScript. Try viewing the page's source, or opening
the devtools network panel and reloading.
</p>

<p>
The <a href="/todos">TODOs</a> page illustrates SvelteKit's data loading and form handling. Try using
it with JavaScript disabled!
</p>
</div>

<style>
Expand All @@ -37,4 +47,4 @@
max-width: var(--column-width);
margin: var(--column-margin-top) auto 0 auto;
}
</style>
</style>

1 comment on commit daf6913

@vercel
Copy link

@vercel vercel bot commented on daf6913 Apr 18, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.