Skip to content

Commit 92fc43c

Browse files
committed
Docs: Fix instructions
Rel #360
1 parent 70e8bb2 commit 92fc43c

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

README.md

+6-10
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ repo](https://github.com/webhintio/hint).
1010

1111
## Getting started
1212

13-
_**Note:**_ Our builder uses async arrow functions as well as other ES2017
14-
features so please ensure you are using Node.js v8.x or higher.
15-
1613
Clone the project:
1714

1815
``` bash
@@ -25,24 +22,23 @@ Install dependencies:
2522
npm install
2623
```
2724

28-
Fetch remote content (e.g. documentation)
29-
30-
```bash
31-
npm run update-site
32-
```
33-
3425
Build the site:
3526

3627
```bash
3728
npm run build
3829
```
3930

40-
Run server:
31+
The command above will pull all the documentation and generate all the required
32+
assets. It might take a bit so please be patient.
33+
34+
Run the site:
4135

4236
```bash
4337
npm start
4438
```
4539

40+
This will start a local web server in port 4000.
41+
4642
To know more about the internals of the site please read the
4743
[server](architecture/server.md) documentation.
4844

src/server/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ const configureRoutes = (app) => {
7777
};
7878

7979
const configureFallbacks = (app) => {
80-
if (production) {
81-
app.use('/', express.static(path.join(rootPath, 'dist')));
82-
} else {
80+
app.use('/', express.static(path.join(rootPath, 'dist')));
81+
82+
if (!production) {
8383
app.use('/', express.static(path.join(hexoDir, theme, 'source')));
8484
}
8585
};

0 commit comments

Comments
 (0)