twigyard/twigyard

Twigyard library

v4.1.0 2021-06-08 09:31 UTC

README

TwigYard is a PHP library to host multiple websites written in the twig templating language.

Please refer to the documentation for details.

Pull requests are welcome. Please make sure to write tests and use PSR-2. We use the Robo task runner, so before submitting a pull request please run $ robo test to make sure everything is in order.

Docs

Build:

To build the static site files run:

docker-compose run --rm mkdocs bash -c "sh /root/init-container.sh /workspace && cd docs && su docker-container-user -c 'mkdocs build'"

Dev:

To run the site locally for easy development run:

docker-compose run --rm --service-ports mkdocs bash -c "sh /root/init-container.sh /workspace && cd docs && su docker-container-user -c 'mkdocs serve'"

Site will be accessible at http://localhost:8000