hi
Add the below code.
Configure<DocsUiOptions>(options => { options.RoutePrefix = null; });
hi maliming
Do you have any program or method suggestions for easier creation of .md files?
The transition between document pages takes 5-6 seconds. What could be the reason for this? And what can I do to improve performance?
hi
You can rename your
SearchModel
class toMySearchModel
or inherit theVolo.Docs.Pages.Documents.SearchModel
.[Dependency(ReplaceServices = true)] [ExposeServices(typeof(SearchModel), typeof(MySearchModel))] public class MySearchModel : SearchModel { private readonly IProjectAppService _projectAppService; private readonly IDocumentAppService _documentAppService; private readonly HtmlEncoder _encoder; public MySearchModel( IProjectAppService projectAppService, IDocumentAppService documentAppService, HtmlEncoder encoder) : base(projectAppService, documentAppService, encoder) { _projectAppService = projectAppService; _documentAppService = documentAppService; _encoder = encoder; } public override async Task<IActionResult> OnGetAsync(string keyword) { if (!await _documentAppService.FullSearchEnabledAsync()) { return RedirectToPage("Index"); } KeyWord = keyword; Project = await _projectAppService.GetAsync(ProjectName); var output = await _projectAppService.GetVersionsAsync(Project.ShortName); var versions = output.Items.ToList(); if (versions.Any() && string.Equals(Version, DocsAppConsts.Latest, StringComparison.OrdinalIgnoreCase)) { if ((!Project.ExtraProperties.ContainsKey("GithubVersionProviderSource") || (GithubVersionProviderSource) (long) Project.ExtraProperties["GithubVersionProviderSource"] ==GithubVersionProviderSource.Releases) && !string.IsNullOrEmpty(Project.LatestVersionBranchName)) { Version = Project.LatestVersionBranchName; } else { Version = (versions.FirstOrDefault(v => !SemanticVersionHelper.IsPreRelease(v.Name)) ?? versions.First()).Name; } } SearchOutputs = await _documentAppService.SearchAsync(new DocumentSearchInput { ProjectId = Project.Id, Context = KeyWord, LanguageCode = LanguageCode, Version = Version }); var highlightTag1 = Guid.NewGuid().ToString(); var highlightTag2 = Guid.NewGuid().ToString(); foreach (var searchOutput in SearchOutputs) { for (var i = 0; i < searchOutput.Highlight.Count; i++) { searchOutput.Highlight[i] = _encoder .Encode(searchOutput.Highlight[i].Replace("<highlight>", highlightTag1) .Replace("</highlight>", highlightTag2)) .Replace(highlightTag1, "<highlight>").Replace(highlightTag2, "</highlight>"); } } return Page(); } }
hi I have made the necessary adjustments to my project. However, I am unable to display the search bar in my project, and I am getting an error when trying to navigate to the search page using the link "https://localhost:44337/search".
I shared the project with the error by e-mail
hi maliming
I followed the instructions in the link https://docs.abp.io/en/abp/latest/Modules/Docs?_ga=2.11693748.1887967256.1679480673-1788700351.1679480673#full-text-search-elastic-search to add Elastic Search to my project, but I am getting errors when trying to add it. I included the code from the "documents" folder in the Volo.Docs.SourceCode project into my own project, but I am still getting errors. I could not find any resources on how to add the search bar to my document page.
I think expected signature is different
here the signeture of getFngetFn: (params: ABP.PageQueryParams) => Observable<ABP.PagedResponse<any>>;
PageQueryParams is
interface PageQueryParams { filter?: string; sorting?: string; skipCount?: number; maxResultCount?: number; }
lookupRequestDto is not compatible PageQueryParams maybe you should wrap this with a file or maybe you should re-generate the proxies.
Mahmut bey dediğiniz interfacelere ve sınıflara baktık herhangi bir farklılık göremedik konuyla ilgi uygun bir zamanınızda zoom üzerinden bir toplantı gerçekleştirebilirmiyiz?
mahmut bey merhaba sorun hala devam ediyor nasıl çözüme ulaştırabiliriz?
I think expected signature is different
here the signeture of getFngetFn: (params: ABP.PageQueryParams) => Observable<ABP.PagedResponse<any>>;
PageQueryParams is
interface PageQueryParams { filter?: string; sorting?: string; skipCount?: number; maxResultCount?: number; }
lookupRequestDto is not compatible PageQueryParams maybe you should wrap this with a file or maybe you should re-generate the proxies.
Mahmut bey dediğiniz interfacelere ve sınıflara baktık herhangi bir farklılık göremedik konuyla ilgi uygun bir zamanınızda zoom üzerinden bir toplantı gerçekleştirebilirmiyiz?