DocumentationContext Class
- Namespace
- Kampute.DocToolkit
- Assembly
- Kampute.DocToolkit.dll
Definition
Provides the context for generating documentation.
public class DocumentationContext : IDocumentationContext- Inheritance
- object
- DocumentationContext
- Implements
Remarks
Constructors
Properties
| AddressProvider | Gets the provider responsible for resolving documentation URLs and file paths of elements. |
| Assemblies | Gets the assemblies to generate documentation for. |
| 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. |
| Metadata | Gets the metadata associated with the documentation context. |
| Namespaces | Gets all namespaces in the assemblies being documented. |
| Topics | Gets the topics in the documentation context. |
| 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. |
Methods
| Dispose() | Disposes of the resources used by the DocumentationContext class. |
| Dispose(bool) | Disposes of the resources used by the DocumentationContext class. |
| ToScopedTopic(ITopic) | Creates a contextual reference to the specified topic. |
Extension Methods
| DetermineNameQualifier(this IDocumentationContext, IMember) | Determines the most suitable name qualifier for displaying the specified member in the context of the current documentation scope. |
| FindMember(this IDocumentationContext, IMember) | Finds the model corresponding to the specified reflection metadata within the documentation context. |
| InspectDocumentations(this IDocumentationContext, XmlDocInspectionOptions) | Inspects the documentation of members in the context for missing or incomplete elements. |
| IsFormatSupported(this IDocumentationContext, string) | Determines whether the specified file format (based on the file extension) is supported by the content formatter of the documentation context. |
| TryTransformText(this IDocumentationContext, string, string, out string) | Attempts to transform the specified text using the appropriate text transformer based on the file extension. |

The DocumentationContext class serves as the central repository for all information needed to generate API documentation. It implements the IDocumentationContext interface to provide a unified way to access assemblies, their types and members, formatted documentation content, and documentation addressing schemes.
This class combines several key components of the documentation system: