DocumentationParser::parse
Parse a given path to the documentation for a file. Performs a case insensitive lookup on the file system. Automatically appends the file extension to one of the markdown extensions as well so /install/ in a web browser will match /install.md or /INSTALL.md.
Filepath: /var/www/myproject/src/cms/en/folder/subfolder/page.md URL: http://myhost/mywebroot/dev/docs/2.4/cms/en/folder/subfolder/page Webroot: http://myhost/mywebroot/ Baselink: dev/docs/2.4/cms/en/ Pathparts: folder/subfolder/page
Signature
public function parse(DocumentationPage
$page,
[string
$baselink = NULL] )
Parameters
$page
— DocumentationPage
$baselink
— string- Link relative to webroot, up until the "root" of the module.
Necessary to rewrite relative links of the module. Necessary
to rewrite relative links
Returns
- string