Skip to content

Commit

Permalink
Add LiveServer.jl as an option for running a local web server (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored Aug 2, 2020
1 parent 292b318 commit b18c419
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/src/man/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,11 @@ build/
not resolve directory URLs like `foo/` to `foo/index.html` for local files. You have two
options:

1. You can run a local web server out of the `docs/build` directory. If you have Python
installed, you can simple start one with `python3 -m http.server --bind localhost`
1. You can run a local web server out of the `docs/build` directory. One way to accomplish
this is to install the [LiveServer](https://github.com/asprionj/LiveServer.jl) Julia
package. You can then start the server with
`julia -e 'using LiveServer; cd("docs/build"); serve()'`. Alternatively, if you have Python
installed, you can start one with `python3 -m http.server --bind localhost`
(or `python -m SimpleHTTPServer` with Python 2).

2. You can disable the pretty URLs feature by passing `prettyurls = false` with the
Expand Down

0 comments on commit b18c419

Please sign in to comment.