v0.57.0-beta - 2022-08-03
caendesilva
released this
03 Aug 18:35
·
22863 commits
to master
since this release
About
This update refactors the internal page source model parsing. This will likely not affect you directly, however, if you have written custom code that interacts with any class relating to the PageParser contract, you'll want to take a closer look at the changes.
Added
- Added a new static shorthand to quickly parse Markdown files into MarkdownDocuments (
MarkdownFileParser::parse()
) - Added
toArray()
method to MarkdownDocuments, which returns an array of all the body lines
Changed
- All source model parsing is now handled by the new SourceFileParser action
- Blog post front matter no longer includes merged slug
- MarkdownDocument now implements the
Arrayable
interface - Markdown page models no longer includes the slug merged into the front matter
- All Markdown page models now have the title property inferred when parsing
- internal: The DocumentationPage slug now behaves like other pages, and the basename is produced at runtime, see below
- internal: Refactor search index generator to use route system
Deprecated
- Deprecated
MarkdownDocument::parseFile()
, will be renamed toMarkdownDocument::parse()
Removed
- The PageParserContract interface, and all of its implementations have been removed
- Removed
$localPath
property from DocumentationPage class, see above - Removed trait HasDynamicTitle
What's Changed
- Merge page parsers into single action by @caendesilva in #322
- Remove DocumentationPage localPath property by @caendesilva in #324
- Simplify page parsers by @caendesilva in #323
- Implement Arrayable interface in MarkdownDocument by @caendesilva in #326
- Refactor search index generator to use route system by @caendesilva in #327
- Handle complex parsing logic in new parser action by @caendesilva in #325
Full Changelog: v0.56.0-beta...v0.57.0-beta