com php-langspec: Mention generated files + pre-commit hook in CONTRIBUTING: CONTRIBUTING.md

From: Date: Tue, 26 Sep 2017 08:59:40 +0000
Subject: com php-langspec: Mention generated files + pre-commit hook in CONTRIBUTING: CONTRIBUTING.md
Groups: php.standards.cvs 
Request: Send a blank email to standards--cvs+get-407@lists.php.net to get a copy of this message
Commit: b0e2ca93602b649d936295a0fceaec5381b64101 Author: Nikita Popov <nikita.ppv@gmail.com> Tue, 26 Sep 2017 10:59:40 +0200 Parents: 7741beb3af80779a223bc61ef0d4d7a31bf12f50 Branches: master Link: http://git.php.net/?p=php-langspec.git;a=commitdiff;h=b0e2ca93602b649d936295a0fceaec5381b64101 Log: Mention generated files + pre-commit hook in CONTRIBUTING Changed paths: M CONTRIBUTING.md Diff: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0b60901..681fd4b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,8 +1,24 @@ ## Contributing to the Specification for PHP We'd love your help in improving, correcting, adding to the specification. -Please [file an issue](https://bugs.php.net/) or [submit a pull request](https://wiki.php.net/vcs/gitworkflow) -at the [spec git repo](https://github.com/php/php-langspec). +Please [file an issue](https://github.com/php/php-langspec/issues) +or [submit a pull request](https://github.com/php/php-langspec/pulls). + +## Generated content + +The grammar listings and table of contents of the specification are automatically +generated. If you want to change the grammar, you need to modify the respective +<!--GRAMMAR block and run tools/grammar.php to regenerate the rendered listings. +If you add or change headings, you need to regenerate the TOC using tools/toc.php. +Additionally tools/check_refs.php can be run to verify that all cross-references +are valid. + +To combine these three steps you can instead execute tools/pre-commit. To +automatically run it on every commit, create a symlink in the .git/hooks directory: + +```sh +ln -s -f ../../tools/pre-commit .git/hooks/pre-commit +``` ## License for your Contributions

« previous php.standards.cvs (#407) next »