class
KalimahApps
/
Daleel
/
ProcessDocs
ProcessDocs
Process markdown files.
Properties
private
$console Symfony\...\SymfonyStyle
input/output interface
Default: null
private
$errors array
Array of errors
Default: []
private
$config
Default: null
private
$view_builder
Default: null
private
$markdown_config array
Markdown converter config
Default: array
private
$converter League\...\MarkdownConverter
Markdown converter
Default: null
Methods
public
__construct ( Symfony\...\SymfonyStyle $console ) : void
Build link tree and create HTML files.
Parameters
-
$console
Symfony\...\SymfonyStyle
input/output interface
public
start ( ) : bool
Start the process.
public
createIndex ( ) : bool
Create the main index.html file.
private
createDocs ( Symfony\...\Finder $files ) : array
Loop through files and create a hierarchical tree.
Parameters
-
$files
Symfony\...\Finder
Files to loop through
private
getTitle ( League\...\Document $document ) : string
Get the first H1 heading from the document.
Parameters
-
$document
MarkdownDocument
Markdown document
private
buildToc ( League\...\Document $document ) : void
Build table of contents from headings.
Parameters
-
$document
MarkdownDocument
Markdown document
public
getErrors ( ) : array
Get list of errors found.