mirror of https://github.com/abpframework/abp.git
Browse Source
Replaces the internal Heading record in TocGeneratorService with a new public TocHeading record class. Updates all references and method signatures to use TocHeading, improving code clarity and reusability.pull/23666/head
4 changed files with 17 additions and 13 deletions
@ -1,10 +1,9 @@ |
|||
using System.Collections.Generic; |
|||
using Volo.Abp.Application.Services; |
|||
using static Volo.Docs.TableOfContents.TocGeneratorService; |
|||
|
|||
namespace Volo.Docs.TableOfContents; |
|||
|
|||
public interface ITocGeneratorService : IApplicationService |
|||
{ |
|||
List<Heading> GenerateTocHeadings(string markdownContent); |
|||
List<TocHeading> GenerateTocHeadings(string markdownContent); |
|||
} |
|||
|
|||
@ -0,0 +1,8 @@ |
|||
namespace Volo.Docs.TableOfContents; |
|||
|
|||
public record TocHeading |
|||
{ |
|||
public int Level { get; set; } |
|||
public string Text { get; set; } |
|||
public string Id { get; set; } |
|||
} |
|||
Loading…
Reference in new issue