php-fig / www.php-fig.org

Source for the PHP-FIG website
https://www.php-fig.org
MIT License
149 stars 123 forks source link
site

www.php-fig.org

This is the source for www.php-fig.org. It is a static site generated with Sculpin.

Contributing

Clone

Note the --recursive flag to clone the submodule too.

git clone --recursive https://github.com/php-fig/www.php-fig.org

Install and run

The project leverages make and Docker Compose to automate the local environment, so they are required.

Once you have them installed, you can simply type make and the whole site will be built and put on "watch mode", for both PHP and SASS/CSS. You'll then be able to access the site at localhost:8000.

Additionally, you can run make html-proofer to run the same checks that are run during the deploy process. Look into Makefile for additional useful targets.

Note that:

services: php: build: args:

your custom IDs

    UID: 1234
    GID: 5678


## Updating the submodule
This site uses the master branch of the [main PHP-FIG repository](https://github.com/php-fig/fig-standards) as a Git submodule to pull content from it. 
If you need to update it, you can use the `bin/update_submodule.sh` script to pull new commits. Afterwards, you can commit the differences in this repo, to push the updates afterwards.

## Using Xdebug
If you need to debug the site build, you can enable Xdebug. To do it, you need to copy `docker-compose.override.dist.yml` as `docker-compose.override.yml` so that your local Docker Compose configuration loads that configuration. This (after a container reload) will put Xdebug in `debug` mode. Once done that, you need to configure your IDE to catch to that. Xdebug will automatically connect back your host system thanks to the `host.docker.internal` special hostname, with a serverName of `PHP-FIG`, as defined in `docker-compose.yml`.