Fix quick-start docs regarding pelican --listen

Reverts 2ab91bbaaa and resolves #2626
This commit is contained in:
Justin Mayer 2019-09-28 13:51:20 -07:00
commit 047d884323
2 changed files with 7 additions and 15 deletions

View file

@ -54,20 +54,12 @@ HTML files directly::
firefox output/index.html firefox output/index.html
Because the above method may have trouble locating your CSS and other linked 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 assets, running Pelican's simple built-in web server will often provide a more
reliable previewing experience. reliable previewing experience::
For Python 2, run:: pelican --listen
cd output Once the web server has been started, you can preview your site at:
python -m SimpleHTTPServer
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/ http://localhost:8000/
Deployment Deployment

View file

@ -50,18 +50,18 @@ Given that this example article is in Markdown format, save it as
Generate your site Generate your site
------------------ ------------------
From your site directory, run the ``pelican`` command to generate your site:: From your project root directory, run the ``pelican`` command to generate your site::
pelican content pelican content
Your site has now been generated inside the ``output`` directory. (You may see Your site has now been generated inside the ``output/`` directory. (You may see
a warning related to feeds, but that is normal when developing locally and can a warning related to feeds, but that is normal when developing locally and can
be ignored for now.) be ignored for now.)
Preview your site Preview your site
----------------- -----------------
Open a new terminal session, navigate to your generated output directory and Open a new terminal session, navigate to your project root directory, and
run the following command to launch Pelican's web server:: run the following command to launch Pelican's web server::
pelican --listen pelican --listen