pablomartinezalvarez / glayu

A static site generator for mid-sized sites.
MIT License
79 stars 4 forks source link

Working Directory #13

Closed pmartinezalvarez closed 7 years ago

pmartinezalvarez commented 7 years ago

Working Directory

A new working directory will be included to enable the following workflow:

work -> publish -> source -> build -> public

Directories

Work

It is the editor workspace, all its content has not been published.

work
├── page-1.md
...
├── page-N.md
└── _drafts
    ├── draft-1.md
    ... 
    └── draft-N.md

Source

When a editor publishes a draft or page it will be copied into the source folder. This directory will contain all the markdown files that will be compiled by the static site generator to produce the final site under the public directory. On a magazine or newspaper organization this directory could be deployed and made accessible to all editors using a shared network drive.

source
├── page-1.md
...
├── page-N.md
└── _posts
    ├── 2013
    ├── 2014
    ... 
    └── 2017
        └── 09
            └── 01
                ├── post-1.md
                ... 
                └── post-M.md

Public

Output directory that will containg the site HTML files after a site build.

Why this workflow?

It enables editors to have a local workspace containing only the pages in which they are working on.