phpunit-documentation-english icon indicating copy to clipboard operation
phpunit-documentation-english copied to clipboard

Document the development process for the PHPUnit documentation

Open sebastianbergmann opened this issue 7 years ago • 10 comments

  • [x] Figure out a strategy (branching and tagging) for maintaining multiple versions of the documentation (ReadTheDocs does not render branches other than master and requires tags for alternative versions)
  • [x] Document how to contribute to an existing language edition of the documentation
  • [ ] Document how to build the documentation on a local machine
  • [x] Document how to start a new language edition of the documentation

sebastianbergmann avatar Jan 26 '18 17:01 sebastianbergmann

Hi! I am translating into Spanish the PHPUnit's documentation. The chapter 2 and 8, writing test and database tests respectively, are already translated. Could you create a git project?

glengemann avatar Feb 16 '18 02:02 glengemann

You should have access to the newly created https://github.com/sebastianbergmann/phpunit-documentation-spanish repository now.

sebastianbergmann avatar Feb 16 '18 06:02 sebastianbergmann

somehow related to the process.. does docs for legacy PHPUnit versions (like 5) still maintained, or they are frozen ?

keradus avatar Feb 18 '18 11:02 keradus

The documentation for PHPUnit < 7 is frozen.

sebastianbergmann avatar Feb 18 '18 13:02 sebastianbergmann

Thanks for info :+1:

keradus avatar Feb 18 '18 19:02 keradus

Regarding handling multiple version we figured that having a branch for each released version works best. So now there are 7.0 and 7.1 branches which readthedocs.org will automatically pick up; see http://phpunit.readthedocs.io/en/7.0/ for example.

The same branching will have to be done for all other languages as well to be able to properly switch between translations for a specific version.

sebastianheuer avatar Apr 06 '18 09:04 sebastianheuer

bit :+1: for branches

keradus avatar Apr 06 '18 10:04 keradus

Regarding building the documentation locally, there's not much to add to the current explanation in README.md - just found out there is also a Docker image available, provided by readthedocs.io

plucht avatar Apr 06 '18 15:04 plucht

Thanks @plucht, the first time before run make html I need to install some packages (in Debian 9):

The python dependencies and make:

# apt install python-sphinx python-pip make

Then, install Sphinx Theme via pip:

# pip install sphinx_rtd_theme

I do not know if this is the best way. It was not difficult but it was not obvious either.

glengemann avatar Apr 08 '18 18:04 glengemann

vide requirements.txt file

keradus avatar Apr 08 '18 20:04 keradus