/pelican-site

Pelican-based website

Primary LanguageCSS

Pelican-based website for NWCPP.

Running Pelican requires that you've installed Python 2.7. See The Hitchhiker’s Guide to Python! for guidelines on installing Python, pip, and virtualenv on Windows, Mac, and Linux.

Windows Setup

  • Install the prerequisites of Python 2.7 (32-bit), pip, virtualenv, Setuptools, and easy_install, per Installing Python on Windows.
  • The Fabric tool requires PyCrypto, which is tricky to install if you don't have the MSVC 2008 compiler on your system.
  • Download the PyCrypto installer for 32-bit Python 2.7 from VoidSpace.
  • Do not run the PyCrypto installer yet, until you've created your virtualenv.

Local Setup

  • Create a new virtualenv, nwcpp
  • Windows only: easy_install pycrypto-2.6.win32-py2.7.exe
  • Install Pelican and other dependencies: pip install pelican fabric python-dateutil typogrify ghp-import

Running Locally

  • Edit pages in your favorite editor.
  • Build pages and serve them on http://localhost:8000/, fab reserve
  • Commit pages to Git and push to GitHub: git push origin master
  • Publish website to GitHub Pages: fab gh_pages
  • To see all commands, fab --list