Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: Added python SimpleHTTPServer as a method reading docs in browser
Documented an easier way for users to browse documentation without
setting up a whole web environment. It make the process of reading the
latest documentation, and comparing it with the documentation of
older versions on the Node.JS website a lot easier.
  • Loading branch information
AyushG3112 committed Mar 26, 2018
commit 0770c1f6e8d3a0e137dc3d3a5d8d11ffd7e8c74f
9 changes: 5 additions & 4 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,15 @@ To read the documentation:
$ man doc/node.1
```

If you prefer to read the documentation in the browser,
run the following once `make doc` is done:
If you prefer to read the documentation in the browser and have `python`
installed, you can run:

```console
$ make docopen
$ cd out/doc/api/
$ python -m SimpleHTTPServer
```

This will open up a browser tab/window with the documentation.
and navigate to `http://localhost:8000` in your browser.

To test if Node.js was built correctly:

Expand Down