A minimal markdown parser and HTML generator written in PHP to create instant websites.
Place your markdown files into the site/pages directory.
Call the pages like they were standard html pages, i.e.:
site/pages/welcome.md becomes available via http://localhost:8880/welcome.html
Requirements: Docker (or compatible)
md2html needs several components to run correctly. This includes rewrite rules engine running, which is served by the Apache web server.
Behind that PHP 5+ is doing the main work.
Run ./run-php-apache.sh from the project's root directory, to setup a docker container running all the requirements.
The default port is 8880, so here is the demo: http://localhost:8880
Check if runs locally: http://localhost:8880/probe.html
Check if PHP is running properly: http://localhost:8880/probe.php
Check if md2html renders the demo page: http://localhost:8880/md2html.php?file=demo.md
Test the default behavior incl. the rewrite rule: http://localhost:8880/demo.html
Requirements: Apache rewrite rules engine and PHP 5+.
Just copy the contents of the site folder onto your remote machine.
Adjust .htaccess and style.css to your needs.
That's all. Have fun.
