C# Class Projbook.Core.ProjbookEngine

Entry point for document generation. Setup your generation environment using the right constructor and run the process with Generate() method.
Datei anzeigen Open project: defrancea/Projbook Class Usage Examples

Public Methods

Method Description
Generate ( Configuration configuration ) : Projbook.Core.Model.GenerationError[]

Generates documentation.

GenerateAll ( ) : Projbook.Core.Model.GenerationError[]

Generates all documents.

GenerateIndex ( IndexConfiguration indexConfiguration ) : Projbook.Core.Model.GenerationError[]

Generates the index page for the documentation.

ProjbookEngine ( IFileSystem fileSystem, string csprojFile, string extensionPath, IndexConfiguration indexConfiguration, string outputDirectoryPath, bool skipPdf ) : System

Initializes a new instance of ProjbookEngine.

Private Methods

Method Description
ExtractSourceDirectories ( System.IO.Abstractions.FileInfoBase csprojFile ) : System.IO.Abstractions.DirectoryInfoBase[]

Extracts source directories from the csproj file. The expected directory info list is the csproj's directory and all project references.

GenerateFile ( string templateName, string outputFileHtml, Configuration configuration, List pages ) : void

Generates a file.

GenerateIndexFile ( string templateName, string outputFileHtml, IndexConfiguration indexConfiguration ) : void

Generates the index file.

LocateBlockLine ( CommonMark.Syntax.Block block, Page page ) : int

Computes line number of a block in a page.

RegisterHtmlToXLibraries ( ) : void

Register HtmlToX libraries.

StringFromByteArray ( byte data, long startIndex, long length ) : string

Extracts a string from a byte array.

WriteFile ( string templateName, string outputFileHtml, Object fileConfiguration ) : void

Write to the documentation file.

Method Details

Generate() public method

Generates documentation.
public Generate ( Configuration configuration ) : Projbook.Core.Model.GenerationError[]
configuration Projbook.Core.Model.Configuration.Configuration
return Projbook.Core.Model.GenerationError[]

GenerateAll() public method

Generates all documents.
public GenerateAll ( ) : Projbook.Core.Model.GenerationError[]
return Projbook.Core.Model.GenerationError[]

GenerateIndex() public method

Generates the index page for the documentation.
public GenerateIndex ( IndexConfiguration indexConfiguration ) : Projbook.Core.Model.GenerationError[]
indexConfiguration Projbook.Core.Model.Configuration.IndexConfiguration The index configuration.
return Projbook.Core.Model.GenerationError[]

ProjbookEngine() public method

Initializes a new instance of ProjbookEngine.
public ProjbookEngine ( IFileSystem fileSystem, string csprojFile, string extensionPath, IndexConfiguration indexConfiguration, string outputDirectoryPath, bool skipPdf ) : System
fileSystem IFileSystem Initializes the required file system abstraction.
csprojFile string Initializes the required .
extensionPath string Initializes the required extension path.
indexConfiguration Projbook.Core.Model.Configuration.IndexConfiguration Initializes the required .
outputDirectoryPath string Initializes the required .
skipPdf bool Initializes the required .
return System