IDocumentationContext Interface
- Namespace
- Kampute.DocToolkit
- Assembly
Definition
Defines a contract for providing the context for the documentation generation process.
public interface IDocumentationContext : IDisposable
- Extends
- Implemented by
Properties
| AddressProvider | Gets the provider responsible for resolving documentation URLs and file paths of elements. |
| Assemblies | Gets the assemblies for which documentation will be generated. |
| ContentFormatter | Gets the object responsible for formatting the documentation content. |
| ContentProvider | Gets the provider responsible for finding documentation content of elements. |
| Language | Gets the programming language of the codebase being documented. |
| Namespaces | Gets all namespaces in the assemblies being documented. |
| Topics | Gets all top-level topics in the documentation. |
| Types | Gets all exported types in the assemblies being documented. |
| UrlTransformer | Gets the object responsible for transforming non-API site-root-relative URLs to an absolute or document-relative URL. |
Extension Methods
The IDocumentationContext interface represents the central hub of the documentation generation system, binding together all the necessary components for creating complete API documentation. It serves as a repository of information about the assemblies, types, and members being documented, while also providing access to formatting, addressing, and content extraction services.
A documentation context typically contains:- The assemblies being documented and their contained types and members
- The topics that provide narrative content for the documentation
- The strategy for organizing documentation pages
- The formatter for transforming XML documentation comments into readable content
- The content provider for extracting XML documentation comments from code elements
- The address provider for resolving URLs and file paths for documentation elements
- The URL translator provider for replacing URLs in documentation content, particularly for cross-references in topics
Documentation generators use this context to access all the information needed to create a complete set of documentation pages, ensuring consistency across the entire documentation set. Extensions can be built on top of this interface to provide specialized functionality like documentation validation, search index generation, or cross-reference resolution.