doc-en icon indicating copy to clipboard operation
doc-en copied to clipboard

PHP 2024 Documentation Roadmap

Open Girgias opened this issue 1 year ago • 16 comments

These are ideas that we want to achieve as part of @ThePHPF in 2024:

  • [x] Constant linking (https://github.com/php/phd/pull/102, https://github.com/php/phd/pull/111
  • [x] Improve call-out to contribute to the docs to be more like MDN which has it at the bottom of the page instead of hidden in the top right (https://github.com/php/web-php/pull/973)
  • [x] Rewrite the "Edited-by" section of the documentation (https://github.com/php/doc-en/pull/3467 and https://github.com/php/doc-en/pull/3468)
  • [x] Allow executing examples via 3v4l.org (in collaboration with @SjonHortensius) (https://github.com/php/doc-en/issues/3259)
  • [ ] Investigate adding a "Last Edited" time for individual documentation pages (https://github.com/php/web-php/pull/977)
  • [x] Triage user notes (Script to remove outdated and negatively voted notes is now live)
  • [x] Implement a support policy for what PHP versions the documentation covers and for how long (#3700)

Girgias avatar Mar 05 '24 23:03 Girgias

Making examples executable would ideally be done by storing the correct script link somewhere. Alternatively a new POST could be done to the correct endpoint containing the full example code - 3v4l will then forward the user to the correct script. I'd be happy to help with supporting the implementation from the 3v4l side

SjonHortensius avatar Mar 06 '24 16:03 SjonHortensius

I think there will need to be some changes in PhD to tie the example content to the output box if it exists, we might also need to limit it to parts of the documentation that does not refer to PECL extensions, as I don't think those are on 3v4l?

Girgias avatar Mar 07 '24 14:03 Girgias

Is there any plan to split these points into separate issues with better guidance to contributors on what needs to be done? Or is this just an announcement of what kind of work is already being carried out?

kamil-tekiela avatar Mar 08 '24 13:03 kamil-tekiela

We can split them up into separate issues, the constant linking one is more or less "done" as there has been good progress on this. User notes is something where one needs access to the underlying database so difficult to contribute.

The rest could be their own issues

Girgias avatar Mar 08 '24 15:03 Girgias

Folks, I've created a #3259 to continue "Allow executing examples via 3v4l.org" implementation discussion.

pronskiy avatar Mar 11 '24 13:03 pronskiy

@Girgias What does "Constant linking" exactly mean? Is it that the constants which are documented somewhere else than "predefined constant" pages should be moved to one of these pages and they should be linked wherever they are referenced from? Is documenting the rest of the missing constants/functions/methods too big of a project?

kocsismate avatar Mar 25 '24 12:03 kocsismate

@Girgias What does "Constant linking" exactly mean? Is it that the constants which are documented somewhere else than "predefined constant" pages should be moved to one of these pages and they should be linked wherever they are referenced from? Is documenting the rest of the missing constants/functions/methods too big of a project?

It's just to have <constant> tags create a link to the constant definition, similarly to how <function> does this for functions. It might require moving constants to the more standard pages, but not necessarilly.

Girgias avatar Apr 12 '24 15:04 Girgias

* [ ]  Rewrite the "Edited-by" section of the documentation

Do https://github.com/php/doc-en/pull/3467 and https://github.com/php/doc-en/pull/3468 address this in part or whole?

haszi avatar Sep 01 '24 21:09 haszi

* [ ]  Implement a support policy for what PHP versions the documentation covers and for how long

This item is addressed by the following PR: https://github.com/php/doc-en/pull/3700

haszi avatar Sep 01 '24 21:09 haszi

I updated the text.

Girgias avatar Sep 11 '24 13:09 Girgias