RelativeUrlContextManager Class

Namespace
Kampute.DocToolkit.Routing
Assembly
  • Kampute.DocToolkit.dll

Definition

Manages URL contexts that resolve documentation-root-relative URLs relative to the current document.
public sealed class RelativeUrlContextManager : DocumentUrlContextManager
Inheritance

Remarks

The manager calculates URLs from each rendered document to resources identified from the documentation root.

For example, if a document at api/namespace/class.html references another document at api/other-namespace/interface.html, the managed context produces ../other-namespace/interface.html. In this case, the documentation root URL relative to the current document is ../../.

Thread Safety

All public members of the type are guaranteed to be thread-safe.

Constructors

RelativeUrlContextManager()Initializes a new instance of the RelativeUrlContextManager class.

Methods

CreateScope(string, IDocumentModel)Creates a new scope for the specified directory path and document model.

See Also