HtmlFileTopic.CreateContentReader Method

Namespace
Kampute.DocToolkit.Topics
Assembly
  • Kampute.DocToolkit.dll

Definition

Creates a TextReader to read the content of the topic
protected override TextReader CreateContentReader(IDocumentationContext context)

Parameters

context IDocumentationContext
The documentation context that provides additional information for the operation.

Returns

TextReader
A TextReader to read the content of the topic.

Exceptions

IOException
Thrown when an I/O error occurs while reading the file specified by FileTopic.FilePath.

Remarks

This methods attempts to extract the content of the <body> tag from the HTML file and returns a StringReader for that content. If the <body> tag is not found, it returns a StringReader for the entire HTML file content.