Content

Quick start

This page shows how to install Pagegen and start managing content, for in depth documentation please see the user manual http://pagegen.phnd.net/user-manual.

Step 1. Setup

  1. Download http://pagegen.phnd.net/download/
  2. Install http://pagegen.phnd.net/user-manual/installation

Step 2. Write some content

  1. Run pagegen new my_site to setup the required directories and files for the site
  2. Add some text to the [pagegen directory]/mysite/content/default: echo "This is the front page:)" > default
  3. Create a new directory called My new page in the [pagegen directory]/my_site/content directory mkdir "My new page"
  4. Create a new file in the My new page directory, called default. Fill it with some text: echo "This here is my page" > "My new page/default". Every time a directory is added a default file must be created as well.
  5. Create another file in the My new page directory called Another page, again adding some text to it: echo "Starting to get this?" > "My new page/Another page"

Step 3. Customize site layout

Pagegen adds layout and navigation elements to each page when they are processed. To change the site look and feel, play with the following files:

Step 4. Generate site

Run pagegen gen my_site to generate the site, see [Pagegen directory]/my_site/site/live for the freshly generated HTML files. To take the site live, simply copy the live directory to your web server. Enjoy!

Last changed 2009-10-18 14:41