Create a docker container for a single-line setup and rendering#2638
Conversation
TimWolla
left a comment
There was a problem hiding this comment.
This looks absolutely reasonable for a starter.
|
php/phd#77 seems to be what broke phpd with something explicitly asserting a true which is not true. |
|
Once #2641 is merged it will fix docs-en builds. |
|
All builds for me I used the following edits to test depth 1 and not having a commit. The suggested edits have the whole thing build in under a minute (50 seconds), which is all clone depth. You should be free to iterate in future. The ARGS are optional, but if someone wants to fill this out with chm support or PDF, why not right? |
Use case: a casual contributor who wants to preview their changes before opening a PR. There is currently no way to provide custom args to phd/render.php, because then we'd be back to complicated instructions. I tried not to make any assumptions about the host system, so I don't use make. This image is tied to an older commit of phd, since a (very) recent commit causes a crash on `assert($this->cchunk["classsynopsis"]["legacy"] === true);`. I'll just assume that it's a regression, since it fails on 2 machines and 2 PHP versions. I don't want to go down that rabbit hole today.
277d2ae to
7057efc
Compare
Girgias
left a comment
There was a problem hiding this comment.
I know nothing about Docker, but this seems sensible if people who know better are OK with the docker file.
Although I might move this more to doc-base. Would it be possible to have it take an argument to be able to render translations? (just a lang thing that defaults to en)
That means that people would need to also clone |
Right... I was just thinking have people "just" clone doc-base and let the docker compose do the cloning for them. But then one can't actually edit the docs. |
Co-authored-by: Lewis Cowles <lewis+github@cowles.uk>
|
🙌 very nice |
Use case: a casual contributor who wants to preview their changes before opening a PR.
assert($this->cchunk["classsynopsis"]["legacy"] === true);. I'll just assume that it's a regression, since it fails on 2 machines and 2 PHP versions. I don't want to go down that rabbit hole today.Fixes #2637