Enriches each project of the 'projects' object with the property 'repodocDescription'
an object with enumerable string objects (an object for each project, angular.json structure)
parameters for controlling app's run
the projects input object enriched with 'repodocDescription' property for each project/app
throws no error(s)
Creates the Documentation, in detail:
creates html file with an entry for each app including
copies the documentation of all apps (if desired)
API/Entry point of that main Repodoc module.
Parameter which controls the creation process
nothing (for instance) but consumes the params by logging them to the console
throws an error if
Compiles the html template
compile function
projects objects
html string
Extracts app's brief description from a text (which usually comes from app's readme.md).
The text the function extract the brief description from.
App's brief description (if exists)
throws an error if
Copies apps' docs, if desired (copyProjectsDocs=true is default)
Prepares the link to the apps' docs. The link will
leads either
not be prepared, if docs of an app do not exist
Name of the project, is part of destination path of a potential copy
Object with all project details (see structure of angular.json) particually project's root directory which is also part of destination path of a potential copy
reference to apps' docs (e.g. projectName) or only projectName, if there are no docs for an app or the docs cannot be copied
throws no errors
Enriches each project of the 'projects' object with the property 'repodocReference'
Calls for each project/app fetchProjectDocs (projectName, project, params) which
the input object 'projects' enriched with with property 'repodocReference' for each project/app
throws no errors
Reads the file (usually app's readme.md) containing app's brief description
Either
content of the file read of
'no descrption due to missing file' notice, if the file cannot be read
'no description due to ...' notice, if file has unusable content. *
throws no error(s)
Reads the hbs template file and compiles it.
template creation function
throws an error if file
Writes the html code to a file
html code
notice 'html file is written to ...'
throws an error if
Generated using TypeDoc
Creates the Documentation
createDoc(params:Params) is the (only) entry point of this module.