Skip to content

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

Open
lacatoire wants to merge 1 commit intophp:masterfrom
lacatoire:feat/gh-194-packagesynopsis-rendering
Open

Support <packagesynopsis> and <package> rendering (GH-194)#241
lacatoire wants to merge 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
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

1 participant