From b80f2357b9c30843f0cf462bd4a47b75f52f8b8b Mon Sep 17 00:00:00 2001 From: Mike Lissner Date: Sat, 16 Aug 2014 20:20:08 -0700 Subject: [PATCH] Updates docs for Python 3 In Python 3, the simpleHTTPServer has moved into the http module, so the command `python -m simpleHTTPServer no longer works. This minor change adds instructions for those of us using Python 3. --- docs/publish.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/publish.rst b/docs/publish.rst index 266009e4..fea053bf 100644 --- a/docs/publish.rst +++ b/docs/publish.rst @@ -36,12 +36,19 @@ HTML files directly:: Because the above method may have trouble locating your CSS and other linked assets, running a simple web server using Python will often provide a more -reliable previewing experience:: +reliable previewing experience. + +For Python 2, run:: cd output python -m SimpleHTTPServer -Once the ``SimpleHTTPServer`` has been started, you can preview your site at +For Python 3, run:: + + cd output + python -m http.server + +Once the basic server has been started, you can preview your site at http://localhost:8000/ Deployment