Definition
Assembly: CloudNimble.DotNetDocs.Core.dll Namespace: CloudNimble.DotNetDocs.Core.Renderers Inheritance: CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Summary
Renders documentation as YAML files.Remarks
Generates structured YAML documentation suitable for configuration files and integration with various documentation platforms.Constructors
.ctor
Initializes a new instance of the YamlRenderer class.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
context | CloudNimble.DotNetDocs.Core.ProjectContext? | The project context. If null, a default context is created. |
.ctor Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
context | CloudNimble.DotNetDocs.Core.ProjectContext? | The project context. If null, a default context is created. |
enabled | bool | - |
.ctor Inherited
Inherited from
objectSyntax
Properties
Context Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Property Value
Type:CloudNimble.DotNetDocs.Core.ProjectContext
The project context containing configuration and settings.
Enabled Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Property Value
Type:bool
FileNamingOptions Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Property Value
Type:CloudNimble.DotNetDocs.Core.Configuration.FileNamingOptions
The file naming configuration.
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
EscapeXmlTagsInString Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
stringToEscape | string? | The string potentially containing XML/HTML tag syntax or generic type brackets. |
Returns
Type:string
The escaped string safe for MDX rendering.
Remarks
Converts angle brackets to HTML entities to prevent MDX parser interpretation as JSX/HTML tags. This handles both generic type syntax (e.g., JsonConverter<object>) and XML documentation tags (e.g., <see cref=”…”>) by converting them to JsonConverter<object> and <see cref=”…”> respectively.GetAccessModifier Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
accessibility | Microsoft.CodeAnalysis.Accessibility | The accessibility to convert. |
Returns
Type:string
The access modifier string.
GetEventSignature Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
evt | Microsoft.CodeAnalysis.IEventSymbol | The event symbol. |
Returns
Type:string
The event signature.
GetFieldSignature Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
field | Microsoft.CodeAnalysis.IFieldSymbol | The field symbol. |
Returns
Type:string
The field signature.
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetMemberSignature Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
member | CloudNimble.DotNetDocs.Core.DocMember | The member to get the signature for. |
Returns
Type:string
The member signature string.
GetMethodSignature Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
method | Microsoft.CodeAnalysis.IMethodSymbol | The method symbol. |
Returns
Type:string
The method signature.
GetNamespaceFileName Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
ns | CloudNimble.DotNetDocs.Core.DocNamespace | The namespace to get the file name for. |
extension | string | The file extension (without the dot). |
Returns
Type:string
A safe file name for the namespace.
Remarks
This method is deprecated. Use GetNamespaceFilePath instead.GetNamespaceFilePath Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
ns | CloudNimble.DotNetDocs.Core.DocNamespace | The namespace to get the file path for. |
outputPath | string | The base output path. |
extension | string | The file extension (without the dot). |
Returns
Type:string
The full file path for the namespace documentation.
GetPropertySignature Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
property | Microsoft.CodeAnalysis.IPropertySymbol | The property symbol. |
Returns
Type:string
The property signature.
GetSafeNamespaceName Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
ns | CloudNimble.DotNetDocs.Core.DocNamespace | The namespace to get the name for. |
Returns
Type:string
A safe namespace name, using “global” for the global namespace.
GetSafeTypeName Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
type | CloudNimble.DotNetDocs.Core.DocType | The type to get the name for. |
Returns
Type:string
A safe type name with invalid characters replaced.
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
GetTypeFileName Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
type | CloudNimble.DotNetDocs.Core.DocType | The type to get the file name for. |
ns | CloudNimble.DotNetDocs.Core.DocNamespace | The namespace containing the type. |
extension | string | The file extension (without the dot). |
Returns
Type:string
A safe file name for the type.
Remarks
This method is deprecated. Use GetTypeFilePath instead.GetTypeFilePath Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
type | CloudNimble.DotNetDocs.Core.DocType | The type to get the file path for. |
ns | CloudNimble.DotNetDocs.Core.DocNamespace | The namespace containing the type. |
outputPath | string | The base output path. |
extension | string | The file extension (without the dot). |
Returns
Type:string
The full file path for the type documentation.
GetTypeSignature Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
type | CloudNimble.DotNetDocs.Core.DocType | The type to get the signature for. |
Returns
Type:string
The type signature.
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
RemoveIndentation Inherited
Inherited from
CloudNimble.DotNetDocs.Core.Renderers.RendererBaseSyntax
Parameters
| Name | Type | Description |
|---|---|---|
text | string | The text to remove indentation from. |
Returns
Type:string
The text with common indentation removed.
RenderAsync
Renders the documentation assembly to YAML files.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
model | CloudNimble.DotNetDocs.Core.DocAssembly? | The documentation assembly to render, or null for documentation-only mode. |
Returns
Type:System.Threading.Tasks.Task
A task representing the asynchronous rendering operation.
RenderPlaceholdersAsync
Renders placeholder conceptual content files for the documentation assembly.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
model | CloudNimble.DotNetDocs.Core.DocAssembly | The documentation assembly to generate placeholders for. |
Returns
Type:System.Threading.Tasks.Task
A task representing the asynchronous placeholder rendering operation.
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?
Related APIs
- CloudNimble.DotNetDocs.Core.IDocRenderer