Skip to main content

Definition

Assembly: CloudNimble.DotNetDocs.Core.dll Namespace: CloudNimble.DotNetDocs.Core.Renderers Inheritance: CloudNimble.DotNetDocs.Core.Renderers.RendererBase

Syntax

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

.ctor Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Initializes a new instance of the RendererBase class.

Syntax

Parameters

.ctor Inherited

Inherited from object

Syntax

Properties

Context Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets the project context for this renderer.

Syntax

Property Value

Type: CloudNimble.DotNetDocs.Core.ProjectContext The project context containing configuration and settings.

Enabled Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
When more than one Renderer is registered, allows a renderer to be turned off.

Syntax

Property Value

Type: bool

FileNamingOptions Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets the file naming options for this renderer.

Syntax

Property Value

Type: CloudNimble.DotNetDocs.Core.Configuration.FileNamingOptions The file naming configuration.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

EscapeXmlTagsInString Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Escapes XML/HTML tag syntax for safe rendering in Markdown/MDX.

Syntax

Parameters

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&lt;object&gt; and &lt;see cref=”…”&gt; respectively.

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetNamespaceFileName Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets a safe file name for a namespace, suitable for use in file systems.

Syntax

Parameters

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.RendererBase
Gets the file path for a namespace documentation file.

Syntax

Parameters

Returns

Type: string The full file path for the namespace documentation.

Remarks

The location comes from ProjectContext.GetNamespacePagePath, which cross-reference links also use.
Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets a link to a namespace documentation page, relative to the documentation output root.

Syntax

Parameters

Returns

Type: string The relative link to the namespace page, using forward slashes.

Examples

For the namespace CloudNimble.DotNetDocs.Core with the extension md:

Remarks

Use this for links from the assembly index page, which sits at the output root. It shares the path logic in RendererBase.GetNamespaceFilePath, so links always match where the namespace pages are written.

GetSafeNamespaceName Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets a safe namespace name for use in file names and display.

Syntax

Parameters

Returns

Type: string A safe namespace name, using “global” for the global namespace.

GetSafeTypeName Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets a safe type name for use in file names, removing invalid characters.

Syntax

Parameters

Returns

Type: string A safe type name with invalid characters replaced.

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

GetTypeFilePath Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets the file path for a type documentation file.

Syntax

Parameters

Returns

Type: string The full file path for the type documentation.

Remarks

The location comes from ProjectContext.GetTypePagePath, which cross-reference links also use.

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

RenderAsync

Renders the documentation assembly to YAML files.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task A task representing the asynchronous rendering operation.

RenderPlaceholdersAsync Inherited Virtual

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Adds this renderer’s own files to the conceptual content folder. The default implementation does nothing.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task A completed task.

Remarks

DocumentationManager.GeneratePlaceholdersAsync writes the standard namespace and type placeholders, then calls this method on each registered renderer. Override it to add files that a renderer needs beyond the standard placeholders; files written into the conceptual folder are loaded with the rest of the content.

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?
  • CloudNimble.DotNetDocs.Core.IDocRenderer