forked from TYPO3-Documentation/t3docs-search-indexer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TYPO3-Documentation#49 Adapt documentation indexing for new content s…
…tructure 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: `<meta content="phpdocumentor/guides" name="generator">` This commit also includes: - Fixes for minor issues in the code to ensure local functionality as intended. - Code cleanup for improved readability and maintenance. - Addition and updates of various unit tests. - Updates to assets configuration. Resolves issue: TYPO3-Documentation#49
- Loading branch information
Marcin Sągol
committed
Dec 14, 2023
1 parent
07626d2
commit fa028ef
Showing
36 changed files
with
5,709 additions
and
2,539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.