Skip to content

Commit b85a573

Browse files
committed
Link directly to each section header
This gets more of the document on the page immediately, rather than requiring scrolling past the top part of GitHub's UI.
1 parent 45870c2 commit b85a573

12 files changed

+27
-27
lines changed

docs/1-installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ QUnit.testDone(function() {
102102
```
103103

104104
***
105-
Next: [Purpose](2-howto-purpose.md)
105+
Next: [Purpose](2-howto-purpose.md#purpose)

docs/2-howto-purpose.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,5 @@ integrated test suite and afford some opportunity for responding to hard-to-test
111111
situations by improving the API design of your adapters.
112112

113113
***
114-
Previous: [Installing testdouble.js](1-installation.md)
115-
Next: [Getting Started](3-getting-started.md)
114+
Previous: [Installing testdouble.js](1-installation.md#installing-testdoublejs)
115+
Next: [Getting Started](3-getting-started.md#getting-started)

docs/3-getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,5 +356,5 @@ Further reading that documents the features shown off in this tutorial include:
356356
* [Verifying invocations with `verify()`](6-verifying-invocations.md)
357357

358358
***
359-
Previous: [Purpose](2-howto-purpose.md)
360-
Next: [Creating Test Doubles](4-creating-test-doubles.md)
359+
Previous: [Purpose](2-howto-purpose.md#purpose)
360+
Next: [Creating Test Doubles](4-creating-test-doubles.md#creating-test-doubles)

docs/4-creating-test-doubles.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,5 +225,5 @@ FakeCat.prototype.scratch // a test double function named '#scratch'
225225
As you can see, there are a plethora of ways to create test doubles with testdouble.js, each designed to handle a different style of organizing JavaScript code. We recommend on landing on one consistent style (e.g. each module as one function) for each project, which in turn would encourage one consistent style of creating test doubles. This API is written to be flexible for a number of potential contexts across objects, but it has come at the cost of a large enough surface area that if any project were to make ample use of all or most of the above invocation styles, it would confuse readers.
226226

227227
***
228-
Previous: [Getting Started](3-getting-started.md)
229-
Next: [Stubbing behavior](5-stubbing-results.md)
228+
Previous: [Getting Started](3-getting-started.md#getting-started)
229+
Next: [Stubbing behavior](5-stubbing-results.md#stubbing-behavior)

docs/5-stubbing-results.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,5 +624,5 @@ on about [verifying interactions with `verify()`](6-verifying-invocations.md),
624624
and rest easy knowing that you already know exactly how to do it.
625625

626626
***
627-
Previous: [Creating Test Doubles](4-creating-test-doubles.md)
628-
Next: [Verifying interactions](6-verifying-invocations.md)
627+
Previous: [Creating Test Doubles](4-creating-test-doubles.md#creating-test-doubles#creating-test-doubles)
628+
Next: [Verifying interactions](6-verifying-invocations.md#verifying-interactions)

docs/6-verifying-invocations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,5 +375,5 @@ testdouble.js! At this point, you know everything you need to know to be pretty
375375
dangerous writing isolated tests.
376376

377377
***
378-
Previous: [Stubbing behavior](5-stubbing-results.md)
379-
Next: [Replacing Real Dependencies with Test Doubles](7-replacing-dependencies.md)
378+
Previous: [Stubbing behavior](5-stubbing-results.md#stubbing-behavior)
379+
Next: [Replacing Real Dependencies with Test Doubles](7-replacing-dependencies.md#replacing-real-dependencies-with-test-doubles)

docs/7-replacing-dependencies.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,5 +229,5 @@ to short-circuit any attempts to load and imitate a module at
229229
`relativePathToModule`.
230230

231231
***
232-
Previous: [Verifying interactions](6-verifying-invocations.md)
233-
Next: [Custom argument matchers](8-custom-matchers.md)
232+
Previous: [Verifying interactions](6-verifying-invocations.md#verifying-interactions)
233+
Next: [Custom argument matchers](8-custom-matchers.md#custom-argument-matchers)

docs/8-custom-matchers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ For some examples of `td.matchers.create()` in action, check out the
6666
[built-in matchers](src/matchers/index.coffee) provided by testdouble.js.
6767

6868
***
69-
Previous: [Replacing Real Dependencies with Test Doubles](7-replacing-dependencies.md)
70-
Next: [Debugging with testdouble.js](9-debugging.md)
69+
Previous: [Replacing Real Dependencies with Test Doubles](7-replacing-dependencies.md#replacing-real-dependencies-with-test-doubles)
70+
Next: [Debugging with testdouble.js](9-debugging.md#debugging-with-testdoublejs)

docs/9-debugging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,5 @@ to make [`explain` describe test double objects](https://github.com/testdouble/t
8080
in addition to functions.
8181

8282
***
83-
Previous: [Custom argument matchers](8-custom-matchers.md)
84-
Next: [Plugins](A-plugins.md)
83+
Previous: [Custom argument matchers](8-custom-matchers.md#custom-argument-matchers)
84+
Next: [Plugins](A-plugins.md#plugins)

docs/A-plugins.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ Jasmine `expect` matchers (WIP by @BrianGenisio)
2525

2626
## Build Plugins
2727

28-
Sometimes, it can be handy to have a ready-made shim to pull in and configure the
28+
Sometimes, it can be handy to have a ready-made shim to pull in and configure the
2929
library for various build tools. Here's what testdouble.js has so far:
3030

31-
* [ember-cli-testdouble](https://github.com/isleofcode/ember-cli-testdouble) by
32-
[@AlexBlom](https://github.com/AlexBlom) provides a shim for easy importing of
31+
* [ember-cli-testdouble](https://github.com/isleofcode/ember-cli-testdouble) by
32+
[@AlexBlom](https://github.com/AlexBlom) provides a shim for easy importing of
3333
testdouble.js by Ember projects that using Ember CLI
34-
* [karma-testdouble](https://github.com/kahwee/karma-testdouble) by
35-
[@kahwee](https://github.com/kahwee) will configure
34+
* [karma-testdouble](https://github.com/kahwee/karma-testdouble) by
35+
[@kahwee](https://github.com/kahwee) will configure
3636
[Karma](https://karma-runner.github.io) to load test double's browser
3737
distribution
3838

@@ -48,5 +48,5 @@ This API has been ported for use with testdouble.js by
4848
[testdouble-timers](https://github.com/kuy/testdouble-timers).
4949

5050
***
51-
Previous: [Debugging with testdouble.js](9-debugging.md)
52-
Next: [Frequently Asked Questions](B-frequently-asked-questions.md)
51+
Previous: [Debugging with testdouble.js](9-debugging.md#debugging-with-testdoublejs)
52+
Next: [Frequently Asked Questions](B-frequently-asked-questions.md#frequently-asked-questions)

0 commit comments

Comments
 (0)