Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 75afc69

Browse files
committed
site: fix doc hash link destinations (#696)
1 parent ce50c2f commit 75afc69

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

site/content/docs/00-introduction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ For web developers, the stakes are generally lower than for combat engineers. Bu
3232
[Next.js](https://github.com/zeit/next.js) is a React framework from [Zeit](https://zeit.co), and is the inspiration for Sapper. There are a few notable differences, however:
3333

3434
* Sapper is powered by Svelte instead of React, so it's faster and your apps are smaller
35-
* Instead of route masking, we encode route parameters in filenames (see the [routing](docs#routing) section below)
35+
* Instead of route masking, we encode route parameters in filenames (see the [routing](docs#Routing) section below)
3636
* As well as *pages*, you can create *server routes* in your `src/routes` directory. This makes it very easy to, for example, add a JSON API such as the one powering this very page (try visiting [/docs.json](/docs.json))
3737
* Links are just `<a>` elements, rather than framework-specific `<Link>` components. That means, for example, that [this link right here](/), despite being inside a blob of markdown, works with the router as you'd expect
3838

site/content/docs/01-structure.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ If you take a look inside the [sapper-template](https://github.com/sveltejs/sapp
2424

2525
When you first run Sapper, it will create an additional `__sapper__` directory containing generated files.
2626

27-
You'll notice a few extra files and a `cypress` directory which relates to [testing](docs#testing) — we don't need to worry about those right now.
27+
You'll notice a few extra files and a `cypress` directory which relates to [testing](docs#Testing) — we don't need to worry about those right now.
2828

29-
> You *can* create these files from scratch, but it's much better to use the template. See [getting started](docs#getting-started) for instructions on how to easily clone it
29+
> You *can* create these files from scratch, but it's much better to use the template. See [getting started](docs#Getting_started) for instructions on how to easily clone it
3030
3131

3232
### package.json
@@ -35,9 +35,9 @@ Your package.json contains your app's dependencies and defines a number of scrip
3535

3636
* `npm run dev` — start the app in development mode, and watch source files for changes
3737
* `npm run build` — build the app in production mode
38-
* `npm run export` — bake out a static version, if applicable (see [exporting](docs#exporting))
38+
* `npm run export` — bake out a static version, if applicable (see [exporting](docs#Exporting))
3939
* `npm start` — start the app in production mode after you've built it
40-
* `npm test` — run the tests (see [testing](docs#testing))
40+
* `npm test` — run the tests (see [testing](docs#Testing))
4141

4242

4343
### src
@@ -56,7 +56,7 @@ sapper.start({
5656
});
5757
```
5858

59-
In many cases, that's the entirety of your entry module, though you can do as much or as little here as you wish. See the [client API](docs#client-api) section for more information on functions you can import.
59+
In many cases, that's the entirety of your entry module, though you can do as much or as little here as you wish. See the [client API](docs#Client_API) section for more information on functions you can import.
6060

6161

6262
#### src/server.js
@@ -88,7 +88,7 @@ Because every app needs a slightly different service worker (sometimes it's appr
8888

8989
This file is a template for responses from the server. Sapper will inject content that replaces the following tags:
9090

91-
* `%sapper.base%` — a `<base>` element (see [base URLs](docs#base-urls))
91+
* `%sapper.base%` — a `<base>` element (see [base URLs](docs#Base_URLs))
9292
* `%sapper.styles%` — critical CSS for the page being requested
9393
* `%sapper.head%` — HTML representing page-specific `<head>` contents, like `<title>`
9494
* `%sapper.html%` — HTML representing the body of the page being rendered

site/content/docs/02-routing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Dynamic parameters are encoded using `[brackets]`. For example, here's how you c
7070
</div>
7171
```
7272

73-
> See the section on [preloading](docs#preloading) for more info about `preload` and `this.fetch`
73+
> See the section on [preloading](docs#Preloading) for more info about `preload` and `this.fetch`
7474
7575

7676
### Server routes

site/content/docs/03-client-api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Programmatically navigates to the given `href`. If the destination is a Sapper r
3636

3737
* `href` — the page to prefetch
3838

39-
Programmatically prefetches the given page, which means a) ensuring that the code for the page is loaded, and b) calling the page's `preload` method with the appropriate options. This is the same behaviour that Sapper triggers when the user taps or mouses over an `<a>` element with [rel=prefetch](docs#prefetching).
39+
Programmatically prefetches the given page, which means a) ensuring that the code for the page is loaded, and b) calling the page's `preload` method with the appropriate options. This is the same behaviour that Sapper triggers when the user taps or mouses over an `<a>` element with [rel=prefetch](docs#Prefetching).
4040

4141

4242

site/content/docs/04-preloading.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Preloading
33
---
44

5-
As seen in the [routing](docs#routing) section, page components can have an optional `preload` function that will load some data that the page depends on. This is similar to `getInitialProps` in Next.js or `asyncData` in Nuxt.js.
5+
As seen in the [routing](docs#Routing) section, page components can have an optional `preload` function that will load some data that the page depends on. This is similar to `getInitialProps` in Next.js or `asyncData` in Nuxt.js.
66

77
```html
88
<script context="module">

site/content/docs/13-base-urls.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ express() // or Polka, or a similar framework
2121

2222
Sapper will detect the base path and configure both the server-side and client-side routers accordingly.
2323

24-
If you're [exporting](docs#exporting) your app, you will need to tell the exporter where to begin crawling:
24+
If you're [exporting](docs#Exporting) your app, you will need to tell the exporter where to begin crawling:
2525

2626
```bash
2727
sapper export --basepath my-base-path

site/content/migrating/01-migrating.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ Once your `App.html` has been created and your server and client apps updated, y
292292

293293
##### app/template.html
294294

295-
* Your `<head>` element must contain `%sapper.base%` (see ([base URLs](docs#base-urls))
295+
* Your `<head>` element must contain `%sapper.base%` (see ([base URLs](docs#Base_URLs))
296296
* Remove references to your service worker; this is now handled by `%sapper.scripts%`
297297

298298
##### Pages

0 commit comments

Comments
 (0)