File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed
modules/docs/src/Volo.Docs.Application.Contracts/Volo/Docs/TableOfContents Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 22
33namespace Volo . Docs . TableOfContents ;
44
5- public record TocHeading ( int Level , string Text , string Id ) ;
5+ public class TocHeading
6+ {
7+ public int Level { get ; set ; }
68
7- public record TocItem ( TocHeading Heading , List < TocItem > Children ) ;
9+ public string Text { get ; set ; }
10+
11+ public string Id { get ; set ; }
12+
13+ public TocHeading ( int level , string text , string id )
14+ {
15+ Level = level ;
16+ Text = text ;
17+ Id = id ;
18+ }
19+ }
20+
21+ public class TocItem
22+ {
23+ public TocHeading Heading { get ; set ; }
24+
25+ public List < TocItem > Children { get ; set ; }
26+
27+ public TocItem ( TocHeading heading , List < TocItem > children )
28+ {
29+ Heading = heading ;
30+ Children = children ;
31+ }
32+ }
You can’t perform that action at this time.
0 commit comments