Skip to content

Support <packagesynopsis> and <package> rendering (GH-194)#241

Merged
Girgias merged 1 commit intophp:masterfrom
lacatoire:feat/gh-194-packagesynopsis-rendering
Feb 15, 2026
Merged

Support <packagesynopsis> and <package> rendering (GH-194)#241
Girgias merged 1 commit intophp:masterfrom
lacatoire:feat/gh-194-packagesynopsis-rendering

Conversation

@lacatoire
Copy link
Contributor

@lacatoire lacatoire commented Feb 12, 2026

Summary

  • Add rendering for <packagesynopsis> and <package> DocBook elements so that namespaced PHP classes/enums display a proper namespace X; declaration above the class/enum synopsis
  • <packagesynopsis> wraps <classsynopsis> or <enumsynopsis>, providing the outer <div class="classsynopsis"> container; the inner synopsis skips its own wrapper to avoid double-nesting
  • <package> renders as <span class="modifier">namespace</span> <strong class="package">...</strong>; inside <packagesynopsis>, and as a plain <span class="package"> elsewhere
  • Existing PEAR package => 'strong' mapping is unaffected

Closes #194

…ses/enums (phpGH-194)

Add rendering support for DocBook's <packagesynopsis> and <package>
elements so that namespaced PHP classes and enums can display a proper
`namespace X;` declaration above the class/enum synopsis.
@lacatoire lacatoire force-pushed the feat/gh-194-packagesynopsis-rendering branch from e22ed65 to 007a3aa Compare February 12, 2026 17:05
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, might need some CSS changes on the web-php side :)

@Girgias Girgias merged commit d7f7004 into php:master Feb 15, 2026
7 checks passed
@lacatoire lacatoire deleted the feat/gh-194-packagesynopsis-rendering branch February 15, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support namespaces rendition for class-like structures

2 participants