Class ManualUtil
Utility class for handling manual and documentation files with culture support.
public static class ManualUtil
- Inheritance
-
ManualUtil
- Inherited Members
Fields
culture_keyword
Keyword placeholder for culture in URL templates.
public const string culture_keyword = "{culture}"
Field Value
Methods
GetBestDeployUrl(string)
Gets the best available deployment URL by removing the wwwroot prefix from the source URL.
public static string GetBestDeployUrl(string urlTemplate)
Parameters
urlTemplate
stringURL template containing culture placeholder.
Returns
- string
The best matching deployment URL for the current culture.
GetBestSourceUrl(string)
Gets the best available source URL by matching the current culture or falling back to defaults.
public static string GetBestSourceUrl(string urlTemplate)
Parameters
urlTemplate
stringURL template containing culture placeholder.
Returns
- string
The best matching source URL for the current culture.
GetTitle(string)
Extracts the title from an HTML file by looking for the first h1 tag or title tag.
public static string GetTitle(string urlTemplate)
Parameters
urlTemplate
stringURL template containing culture placeholder.
Returns
- string
The extracted title or empty string if not found.