2017 © Pedro Peláez
 

project preacher

Personal static website generator using GitHub Flavored Markdown, Twig and Git.

image

zero-config/preacher

Personal static website generator using GitHub Flavored Markdown, Twig and Git.

  • Thursday, March 9, 2017
  • by johmanx10
  • Repository
  • 2 Watchers
  • 18 Stars
  • 50 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 8 Versions
  • 2 % Grown

The README.md

Build Status Latest Stable Version Total Downloads, (*1)

Introduction

Preacher is a personal static website generator, which allows you to setup and maintain a personal website with zero configuration., (*2)

I always figured the word 'blog' would sound *less* silly as the years went by., (*3)

Fresh installation

To create a fresh website using Preacher, one can install it as follows:, (*4)

composer create-project zero-config/static-website

When asked to remove the existing VCS, answer Y., (*5)

Installation on top of existing website

composer require --dev zero-config/preacher

This installs the necessary files and packages. The next step is initiating a git repository, so Preacher can keep track of what needs to be published:, (*6)

git init

Now all we need to do, is commit our first page and template:, (*7)

git add index.md default.html.twig && git commit -m "My first Preacher page!"

To see what a basic .md page file and template can contain, have a look at Preacher's own index.md page and default.html.twig template., (*8)

By default, Preacher will look for the Twig template called default.html.twig. However, if a custom template is required, simply give it the same name as the source file., (*9)

E.g.: articles/something-fancy.md => articles/something-fancy.html.twig., (*10)

Generating pages

Preacher creates pages from the committed .md page files and .twig templates. It uses a single command to either generate the current directory and all its children, or one can (re)generate a single source file., (*11)

vendor/bin/preach [<source>]...

Optionally, if one wants to always generate output when a file is committed, try the following:, (*12)

ln -s ../../vendor/bin/preach .git/hooks/post-commit

This will install Preacher as a post-commit hook and makes it run each time you commit one of your files., (*13)

The contents of vendor directories are skipped by interpreting the vendor-dir composer config., (*14)

If one wants to force the generation of files, add the --force flag., (*15)

Standards

Preacher uses existing software with well-defined standards to create the most stable and user friendly experience at the same time., (*16)

Preacher is built with programmers in mind., (*17)

Component Type Package
Content parser GitHub Flavored Markdown erusev/parsedown
Template engine Twig 2 twig/twig
Version control git coyl/git
Package manager Composer composer/composer
Syntax highlighter Prism prismjs

Documentation

For full documentation and a cookbook for Preacher, go to the Preacher homepage., (*18)

The Versions

09/03 2017

dev-master

9999999-dev https://zeroconfig.github.io/Preacher/

Personal static website generator using GitHub Flavored Markdown, Twig and Git.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

twig git php markdown static prism website blog

09/03 2017

3.0.0

3.0.0.0 https://zeroconfig.github.io/Preacher/

Personal static website generator using GitHub Flavored Markdown, Twig and Git.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

twig git php markdown static prism website blog

04/03 2017

2.2.0

2.2.0.0 https://zeroconfig.github.io/Preacher/

Personal static website generator using GitHub Flavored Markdown, Twig and Git.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

twig git php markdown static prism website blog

19/02 2017

2.1.0

2.1.0.0 https://zeroconfig.github.io/Preacher/

Personal static website generator using GitHub Flavored Markdown, Twig and Git.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

twig git php markdown static prism website blog

18/02 2017

2.0.0

2.0.0.0 https://zeroconfig.github.io/Preacher/

Personal static website generator using GitHub Flavored Markdown, Twig and Git.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

twig git php markdown static prism website blog

12/02 2017

1.1.0

1.1.0.0 http://janmarten.name

Personal static website generator using GitHub Flavored Markdown, Twig and Git.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

twig git php markdown static prism website blog

09/02 2017

1.0.1

1.0.1.0 http://janmarten.name

Personal static website generator using GitHub Flavored Markdown, Twig and Git.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

twig git php markdown static prism website blog

05/02 2017

1.0.0

1.0.0.0 http://janmarten.name

Personal static website generator using GitHub Flavored Markdown, Twig and Git.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

twig git php markdown static prism website blog