Do you have an improvement, bug fix or translation for our Docs?
-
On GitHub, create a fork of
phpbb/documentation
to your GitHub account. -
Create a local clone of your fork:
$ git clone git://github.com/YOUR_GITHUB_NAME/documentation.git
- Create a new branch in your repository before doing any work. It should be based off the branch you intend to update:
$ git checkout -b myNewbranch origin/master
- Do work on your branch, commit your changes and push it to your repository:
$ git commit -a -m "My new feature or bug fixes"
$ git push origin myNewbranch
-
Go to your repository on github.com.
-
Click the Pull Request button.
-
Make sure the correct branch is selected in the base branch dropdown menu.
You can build our Development Docs in your local environment to make it easier when writing new or updated documentation. The following steps may vary slightly depending on your OS, so if you run into any trouble you may ask for guidance in our Discord or IRC Channels.
-
Make sure you have Python3 installed (you can check by running
$ python -V
) -
Make sure your have PIP installed (you can check by running
$ pip -V
) -
Install Sphinx Docs:
$ pip install -U sphinx
-
Verify Sphinx installed:
$ sphinx-build --version
You may need to set a shell $PATH variable to point to wherever your Sphinx binaries were installed in your system
-
Install all the dependencies needed for our Docs:
$ pip install sphinx_rtd_theme $ pip install sphinxcontrib-phpdomain $ pip install sphinx-multiversion $ sudo pip install git+https://github.com/marc1706/sphinx-php.git
-
Build the Docs
$ cd development $ make html
-
You can now view the Docs by pointing a browser to
development/_build/html/index.html