Author: Not specified Language: text
Description: Not specified Timestamp: 2015-02-11 05:02:08 -0500
View raw paste Reply
  1. #Getting Started
  2. #
  3. #
  4. #
  5. #The Ubuntu-ZA site is a static HTML site generated by the `Nikola #<http://getnikola.com/>`_ site generator. Nikola is
  6. #written in Python and is in the Ubuntu repository.
  7. #
  8. #
  9. #Installing Nikola (Ubuntu 14.10 and higher)
  10. #-------------------------------------------
  11. #The minimum version of Nikola required is 7.0. If you're running Ubuntu #14.10 Utopic Unicorn, you'll have 7.0.1 in the
  12. #repositories and you can just install it using apt-get::
  13. #
  14. #   $ sudo apt-get install nikola
  15. #
  16. #
  17. #Installing Nikola (Ubuntu 14.04 and lower)
  18. #-------------------------------------------
  19. #If you're on an earlier version of Ubuntu, you'll need to install the #latest version of Nikola. The best way to do this
  20. #is to create a virtual environment and install it in there.
  21. #
  22. #First, install ``python-virtualenv`` and a number of other packages you #will need::
  23. #
  24. #   $ sudo apt-get install python-virtualenv python-dev libxml2-dev #libxslt1-dev zlib1g-dev
  25. Did this
  26. #
  27. #Then you need to create a virtual environment. Navigate to a root folder #for your virtual environment, and then create
  28. #your virtual environment::
  29. #
  30. #   $ cd ~/Projects
  31. #    $ virtualenv --system-site-packages venv
  32. doesnt ring a bell
  33. #
  34. #Once that is done, you need to install Nikola itself::
  35. #
  36. #   $ ./venv/bin/pip install --upgrade nikola
  37. doesnt ring a bell
  38. #
  39. #You may want to create a symlink for ease-of-use::
  40. #
  41. #    $ ln -s /path/to/venv/bin/nikola /path/to/ubuntuza-site/nikola
  42. should this not be ubuntu-za-site/nikola
  43. #
  44. #
  45. #Building the Site
  46. #-----------------
  47. #Once you have Nikola installed, you probably want to see the site. First we #need to build it::
  48. #
  49. #    $ nikola build
  50. #
  51. #If you've created the symlink, you'll want to use it like this::
  52. #
  53. #    $ ./nikola build
  54. Didnt do this i think
  55. #
  56. #
  57. #Running the Site
  58. #----------------
  59. #To preview the site, it's as easy as running a local web server::
  60. #
  61. #
  62. # $ nikola serve
  63. #
  64. #Then open your browser and naviate to `http://127.0.0.1:8000/`_ to see the #site.
  65. #
  66.  
View raw paste Reply