mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
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.
40 lines
1.1 KiB
40 lines
1.1 KiB
using System;
|
|
|
|
namespace Volo.Docs
|
|
{
|
|
public class DocsUiOptions
|
|
{
|
|
private string _routePrefix = "documents";
|
|
|
|
/// <summary>
|
|
/// Default value: "documents";
|
|
/// </summary>
|
|
public string RoutePrefix
|
|
{
|
|
get => GetFormattedRoutePrefix();
|
|
set => _routePrefix = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Allows user to see a combobox in user interface for swapping across projects
|
|
/// Default value: True;
|
|
/// </summary>
|
|
public bool ShowProjectsCombobox = true;
|
|
|
|
/// <summary>
|
|
/// If true, allows to create sections in document and show/hide sections according to user preferences.
|
|
/// Default value: True;
|
|
/// </summary>
|
|
public bool SectionRendering = true;
|
|
|
|
private string GetFormattedRoutePrefix()
|
|
{
|
|
if (string.IsNullOrWhiteSpace(_routePrefix))
|
|
{
|
|
return "/";
|
|
}
|
|
|
|
return _routePrefix.EnsureEndsWith('/').EnsureStartsWith('/');
|
|
}
|
|
}
|
|
}
|
|
|