Converts git repository into a website. Currently it generates static websites by compiling to the HTML. The plans are to move forward and allow dynamic rendering of eg. Twig templates with passing the request to the template and allowing to list items with pagination stored in YAML files in some directory.
/*
* Wolnościowiec / ContentCompilerBundle
* -------------------------------------
*
* Converts git repository into a website.
* A part of an anarchist portal - wolnosciowiec.net
*
* Wolnościowiec is a project to integrate the movement
* of people who strive to build a society based on
* solidarity, freedom, equality with a respect for
* individual and cooperation of each other.
*
* We support human rights, animal rights, feminism,
* anti-capitalism (taking over the production by workers),
* anti-racism, and internationalism. We negate
* the political fight and politicians at all.
*
* http://wolnosciowiec.net/
*
* License: LGPLv3
*/
- A git push on github is made, then the github notifies the service
- The service is compiling source files eg. Markdown to HTML
- A website is ready at given address of the service
Wolnościowiec Wiki supports all formats that are handled by ContentCompilerBundle including Twig, Markdown and Plain HTML.
- Clone the repository.
- composer install --no-dev
- Create the
app/config/wiki.yml
, here is the example structure:
wiki:
repositories:
anarchifaq:
address: "https://github.com/Wolnosciowiec/anarchi-faq-pl"
branch: "master"
fetcher: "git"
- Configure and start the webserver
For development use
php bin/console server:start
and point your browser to the http://localhost:8000