An experiment in diversifying the PHP docs ecosystem.
Get the code with:
git clone git@github.com:PHPOpenDocs/PHPOpenDocs.git
or
git clone https://github.com/PHPOpenDocs/PHPOpenDocs
Then:
sh runLocal.sh
or
sh runLocalPhp.sh
to not bring up the SCSS or JavaScript builders, in case you're on a low power system, or aren't going to be touching them.
The site should be up at:
- http://local.phpopendocs.com/ going through Varnish
- http://local.phpopendocs.com:8000/ directly hitting the Nginx webserver
- http://local.phpopendocs.com:8001/ directly hitting the Nginx webserver, with xdebug enabled.
- Site CSS generated from: app/public/scss
- Basic routes: routes/app_routes.php or as php files in public path.
- Where pages are converted into HTML src/site_html.php
- Section list: createSectionList in src/factories.php:180
- Injection params: injectionParams/app.php
Just push to main and it should appear quite soon...
Bashing into a box
docker exec -it example_web_admin_1 bash
Running tests:
docker-compose exec phpopendocs_php_fpm_1 php vendor/bin/phpunit -c test/phpunit.xml
docker-compose exec phpopendocs_php_fpm_debug_1 php vendor/bin/phpunit -c test/phpunit.xml
Kill all running docker boxes:
docker kill $(docker ps -q)
Remove all docker images:
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
docker network rm $(docker network ls -q)
https://domchristie.github.io/turndown/ - convert html into markdown