@@ -37,16 +37,16 @@ However, PhD is a separate project which can be read about here: http://wiki.php
37
37
a. Fork the repository of the language you want to contribute to on [ GitHub] ( https://github.com/phpdoctest )
38
38
b. Check out the source
39
39
40
- ```bash
41
- git checkout git://github.com:[your github-username]/[language you want to contribute to].git
42
- git remote add upstream https://github.com/phpdoctest/[language you want to contribute to].git
43
- ```
40
+ ``` bash
41
+ git checkout git://github.com:[your github-username]/[language you want to contribute to].git
42
+ git remote add upstream https://github.com/phpdoctest/[language you want to contribute to].git
43
+ ```
44
44
45
45
c. Check out the doc-base repository with the different tools
46
46
47
- ```bash
48
- git checkout https://github.com/phpdoctest/doc-base.git
49
- ```
47
+ ``` bash
48
+ git checkout https://github.com/phpdoctest/doc-base.git
49
+ ```
50
50
51
51
That will leave you with a folder ``` [language you want to contribute to] ```
52
52
which contains the source-files for the documentation and a folder ``` doc-base ```
@@ -56,35 +56,35 @@ that contains the different tools and resources used in all languages.
56
56
57
57
a. Bring everything up to date and create a new branch
58
58
59
- ```
60
- cd [language you want to contribute to]
61
- git fetch upstream
62
- git checkout -b [branchname] upstream/master
63
- ```
59
+ ```
60
+ cd [language you want to contribute to]
61
+ git fetch upstream
62
+ git checkout -b [branchname] upstream/master
63
+ ```
64
64
65
65
b. Make the change. Use spaces not tabs. Be sure to carefully watch your whitespace!
66
66
c. Look at your unified diff, make sure it looks right and that whitespace changes aren't mixed in:
67
67
68
- ```bash
69
- git diff path/to/file.xml
70
- ```
68
+ ``` bash
69
+ git diff path/to/file.xml
70
+ ```
71
71
72
72
d. Make sure no errors are present, so at the command line in your phpdoc source directory run:
73
73
74
- ```bash
75
- cd ..
76
- php doc-base/configure.php
77
- ```
74
+ ``` bash
75
+ cd ..
76
+ php doc-base/configure.php
77
+ ```
78
78
79
79
Always ```php configure.php``` before commit!
80
80
81
81
e. Commit your changes
82
82
83
- ```
84
- git add path/to/file.xml
85
- git commit
86
- git push origin branchname
87
- ```
83
+ ```
84
+ git add path/to/file.xml
85
+ git commit
86
+ git push origin branchname
87
+ ```
88
88
89
89
f. Open a PullRequest on GitHub for your changes to be merged directly into the main repository.
90
90
0 commit comments