pawandubey / griffin

speedy and simplistic static site generator.
Apache License 2.0
27 stars 7 forks source link

Implement clear specification for directory structure. #2

Closed pawandubey closed 9 years ago

pawandubey commented 9 years ago

There needs to be a specified structure for the top level directory on which griffin will operate. Basically, the presentation related content needs to be at one place. Eg, there should be a directory called static for this. Note that the following format will support pretty links by default

Example source directory structure:

  • root

    • assets
    • css
      • style.css
    • templates
      • index.html
      • page.html
      • post.html
      • archive.html
    • scripts
      • script.js
    • content
    • blog
      • firstpost.md
      • secondpost.md
    • mypage.md
    • config.toml
    • output

      Example output directory structure:

  • css

    • style.css
  • scripts

    • script.js
  • blog

    • firstpost
    • index.html
    • secondpost
    • index.html
  • mypage

    • index.html

Also, the program should support the reading and parsing of the configuration file. and applying the correct properties as specified.