1
0
mirror of https://github.com/php/phd.git synced 2026-03-23 22:52:05 +01:00
Commit Graph

1329 Commits

Author SHA1 Message Date
Derick Rethans
5d0f203eff Add the long description (refpurpose) so that we can expose that in the meta information on the web site 2025-08-28 18:53:26 +01:00
dependabot[bot]
295283cf53 Bump actions/checkout from 2 to 5 (#200) 2025-08-13 18:17:57 +00:00
Tim Düsterhus
43881399b0 Create dependabot.yml 2025-08-13 20:12:26 +02:00
Luffy
10303e6e88 Decode HTML entities in descriptions (#196) 2025-04-22 10:20:55 +08:00
Jakub Vrána
40bc3ea30a Fix link to true and false types (#197) 2025-04-15 12:16:45 +08:00
Derick Rethans
b7d8f52b05 Allow for (nested) annotations elements
This allows us to set 'interactive' annotations on books, sets, and chapters to
signal to the WASM code runner that examples in these areas can be run.

The WASM code runner also checks for the 'non-interactive' annotation and
selectively disables running code for that example.
2025-03-06 17:30:06 +01:00
Derick Rethans
b1e5ac3975 Fixed trailing spaces 2025-03-06 17:30:06 +01:00
Luffy
d603ec5441 Render enumitemdescription using single line comments (#192) 2025-03-06 12:34:37 +00:00
Luffy
b09ca0b9da Support enum display version info (#191) 2025-03-06 12:33:05 +00:00
philip
0b690001ae Removed E_STRICT references as it's deprecated 2025-03-04 08:32:37 -08:00
Saki Takamachi
3c00a1a753 Add support enum links (#188) 2025-02-06 12:22:18 +00:00
haszi
b4c4bf8066 Explicitly cast values to the expected types 2025-01-14 12:16:32 +00:00
haszi
85aeccaf0d Pass missing parameter to constructor 2025-01-14 12:16:32 +00:00
haszi
7e4a232578 Fix incorrectly placed parenthesis 2025-01-14 12:16:32 +00:00
haszi
0525f61e85 Remove unnecessarily passed variables 2025-01-14 12:16:32 +00:00
haszi
996043bdca Remove unnecessary null coalescing operator
The property is initialized as an empty array
2025-01-14 12:16:32 +00:00
haszi
00743eb4af Instantiate Config object and use it in demo 2025-01-14 12:16:32 +00:00
haszi
dc826beaac Remove duplicate array keys 2025-01-14 12:16:32 +00:00
haszi
7073c2f5ae Remove return statement
Parent method returns void as should this method
2025-01-14 12:16:32 +00:00
haszi
d611e64fb1 Fix PHPDoc Return types 2025-01-14 12:16:32 +00:00
haszi
e89333c222 Change PHPDoc return type of createLink
The various formats return string, null or void so change the PHPDoc return type to reflect this
2025-01-14 12:16:32 +00:00
haszi
c5491e4b36 Fix Config parameter types 2025-01-14 12:16:32 +00:00
haszi
f6fcc078c1 Remove unnecessary ternary operators 2025-01-14 12:16:32 +00:00
haszi
9999f02ea7 Fix existing PHPDoc issues 2025-01-14 12:16:32 +00:00
haszi
92dd87abf8 Define undefined properties and variables (#186)
Co-authored-by: haszi <haszika80@gmail.com>
2025-01-05 23:51:29 +00:00
haszi
c22feecbd0 Add FQN normalization to constants 2025-01-05 23:49:14 +00:00
haszi
d7a81ebea6 Add FQN normalization to properties 2025-01-05 23:49:14 +00:00
haszi
6865785037 Add method for normalizing FQN 2025-01-05 23:49:14 +00:00
haszi
ae255bca28 Fix Config property assignment 2025-01-05 23:49:14 +00:00
haszi
b7c5282c88 Fix FQN class and method linking
Closes GH-170
2025-01-05 23:49:14 +00:00
haszi
f1280799ef Fix property linking test 2024-12-29 23:40:46 +00:00
haszi
b80ae36dba Change property names to camel case 2024-12-29 19:58:10 +00:00
haszi
e66f34e029 Fix tests 2024-12-29 19:58:10 +00:00
haszi
b8e817b6ff Replace method calls with property access 2024-12-29 19:58:10 +00:00
haszi
171b0e4dd1 Make constant explicitly public 2024-12-29 19:58:10 +00:00
haszi
32e6352556 Add PHP format related properties 2024-12-29 19:58:10 +00:00
haszi
12c6e240d0 Refactor copyright
Make copyright a readonly property that is initialized in the constructor
Remove copyright() method
2024-12-29 19:58:10 +00:00
haszi
c220f9af5f Fix color output related methods
Add getter for color output
Remove superfluous set_color_output() method
Add code related to color output on windows to the constructor
2024-12-29 19:58:10 +00:00
haszi
2ef82d78ce Refactor methods mass getting and setting options
Remove superfluous exportable() method
2024-12-29 19:58:10 +00:00
haszi
3694750fa8 Replace method calls with property access
Remove methods mapping method calls to property access
2024-12-29 19:58:10 +00:00
haszi
e571634780 Convert array to properties 2024-12-29 19:58:10 +00:00
haszi
7f4079e98d Add property linking (#183)
Co-authored-by: haszi <haszika80@gmail.com>
2024-12-29 16:42:51 +00:00
Gina Peter Banyard
9c76a0f6a0 Support enumsynopsis in the most minimal way (#179) 2024-11-20 16:42:46 +00:00
haszi
15284136ff Separate regular PhD output from error handling (#176)
- Move error handling code into a class and remove PhD message output handling from it.
- Introduce a new class to handle PhD message output.
- Make the implicit dependency on the output functionality of classes explicit.
- Update PEAR package.xml.
- Fix tests.
- Use proper variadic parameters
- Use class constants
- Use first-class callable syntax

---------

Co-authored-by: haszi <haszika80@gmail.com>
2024-11-10 17:57:05 +00:00
haszi
b0c1f87202 Remove PHP 8.0 testing (#178)
Co-authored-by: haszi <haszika80@gmail.com>
2024-11-10 17:52:53 +00:00
haszi
99c70b7aaf Add links to constants with replaceable tags (#175)
Add links to constants with replaceable tags by processing them when the constant tag is being closed.
Add a test.

Co-authored-by: haszi <haszika80@gmail.com>
2024-11-03 14:05:25 +00:00
Lucas Azevedo
c578cc95d1 Fix search index for entries without parent book (#160)
* Fix search index for entries without parent books

This commit enhances the search index generation process by providing
more meaningful descriptions for entries that lack a parent <book>
element. Additionally, refactors writeJsonIndex() into smaller methods.

Fixes #159

* Prefer array_key_exists over isset

* Return set elements immediately

* Rename processIndexForSearch to improve clarity

Also, updated the doc block with additional context.
2024-11-03 14:02:44 +00:00
haszi
0364e4f969 Use trigger_error for errors (#174)
Co-authored-by: haszi <haszika80@gmail.com>
2024-10-29 14:11:27 +00:00
Jim Winstead
59d1c60b3b Remove old handling for phd:args, it's no longer used (#173) 2024-10-24 20:34:52 +01:00
Kamil Tekiela
84859905a5 Don't invoke instance methods statically (#166) 2024-10-24 13:12:39 +02:00