I just stumbled upon this post, and although it's older, I thought I'd add my two cents. Although sylouuu is right about placing the namespace immediately after your alleged DocBlock at page level, I believe that now I need to place the @package tag in DocBlock. There is some caution here when dealing with logical and hierarchical "packages." This behavior mainly depends on which version of PHPDocumentor you are using.
From: http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_elements.pkg.html "In phpDocumentor version 1.2.2, the page-level DocBlock is the first DocBlock in the file if it contains the @package tag."
And in https://github.com/phpDocumentor/phpDocumentor2/issues/910 you can read that more recently, like a month ago, the DocBlocks problem at the page level in files without PHP code / nodes still work. Thus, since sylouuu has announced the addition of a namespace, as soon as you do this, you have a document element and your problem needs to be resolved. In addition, since most likely no documentation for the page will be created without the presence of a node, this allows your html file to create its own documentation.
Hope this helps! sv
source share