Skip to content

Commit

Permalink
docs: enable onPageNave
Browse files Browse the repository at this point in the history
This ensures setting correct meta data for Algolia
  • Loading branch information
Christoffer Åström committed Jun 28, 2018
1 parent 65bdbf1 commit ea8830d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 6 additions & 8 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@ id: development
title: Development
---

<AUTOGENERATED_TABLE_OF_CONTENTS>

## Getting started

### `Clone`
### Clone

```sh
git clone git@github.com:qlik-oss/after-work.js.git
```

### `Installation`
### Installation

Go into the cloned folder:

Expand All @@ -27,7 +25,7 @@ Since we are using [Lerna](https://lernajs.io/) with hoisting run:
npm run bootstrap
```

### `Testing`
### Testing

Run all tests with:

Expand All @@ -37,7 +35,7 @@ npm test

This will run all `after-work.js` tests with `after-work.js` itself.

### `Debugging`
### Debugging

For easy debugging using [vscode](https://code.visualstudio.com/download) just add a `.vscode/launch.json`.

Expand Down Expand Up @@ -106,7 +104,7 @@ For easy debugging using [vscode](https://code.visualstudio.com/download) just a

Add a breakpoint in any `*.{js,ts}` and hit F5 and off you go...

### `Debugging with Chrome`
### Debugging with Chrome

To debug in Chrome just pass:

Expand All @@ -117,7 +115,7 @@ npx aw chrome -c aw.config.js --chrome.devtools=true
This will ensure to auto open devtools in your Chrome instance and waiting for it to attach.
Add a `debugger` statement in any file and it will break right into it 🚀.

### `Testing local changes`
### Testing local changes

`after-work.js` is designed to be run directly without installing it. Just go into the project you want to test and point to your local entry point:

Expand Down
1 change: 1 addition & 0 deletions website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const siteConfig = {
scrollToTopOptions: {
zIndex: 100,
},
onPageNav: 'separate',
};

module.exports = siteConfig;

0 comments on commit ea8830d

Please sign in to comment.