You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
705 B
25 lines
705 B
using System;
|
|
|
|
namespace GitUI.UserManual
|
|
{
|
|
public class StandardHtmlUserManual : IProvideUserManual
|
|
{
|
|
private const string _location = @"https://git-extensions-documentation.readthedocs.org/";
|
|
|
|
private readonly string _subFolder;
|
|
private readonly string _anchorName;
|
|
|
|
public StandardHtmlUserManual(string subFolder, string anchorName)
|
|
{
|
|
_subFolder = subFolder;
|
|
_anchorName = anchorName;
|
|
}
|
|
|
|
public string GetUrl()
|
|
{
|
|
var subFolder = string.IsNullOrEmpty(_subFolder) ? string.Empty : _subFolder + ".html";
|
|
|
|
return (_location + subFolder).Combine("#", _anchorName)!;
|
|
}
|
|
}
|
|
}
|