Implemented new documentation rendering based on PHP, which works well with the current code. However, due to minor changes in the rendered HTML file structure, it was necessary to introduce some adjustments.
When checking HTML files for content to be indexed, the old rendering method used the crawler to search for elements by the tag and attribute div[itemprop="articleBody"]. In contrast, the new rendering uses the article tag. Additionally, in the old rendering, snippets were generated based on div.section elements, whereas the new rendering matches them by section tags.
These updates are made in the ParseDocumentationHTMLService class. This class also determines whether the file content was generated with the old or new rendering method by checking the meta attribute generator. The new rendering produces:
Implemented new documentation rendering based on PHP, which works well with the current code. However, due to minor changes in the rendered HTML file structure, it was necessary to introduce some adjustments.
When checking HTML files for content to be indexed, the old rendering method used the crawler to search for elements by the tag and attribute
div[itemprop="articleBody"]
. In contrast, the new rendering uses thearticle
tag. Additionally, in the old rendering, snippets were generated based ondiv.section
elements, whereas the new rendering matches them bysection
tags.These updates are made in the
ParseDocumentationHTMLService
class. This class also determines whether the file content was generated with the old or new rendering method by checking the meta attributegenerator
. The new rendering produces:<meta content="phpdocumentor/guides" name="generator">
This commit also includes:
Resolves issue: #49