Skip to content

Commit d358d47

Browse files
committed
links in generator are to files only for now
1 parent 00b2f74 commit d358d47

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/docs-generator/Domain/MarkdownFile.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,15 @@ public void RewriteLinksIntoSections()
3939

4040
public string GetRandomLink()
4141
{
42+
//TODO since updates rewrite section headers old docs might
43+
//no longer validate so we always link to whole files
44+
return RelativePath;
45+
/*
4246
var sectionLink = Determinism.Random.Contents.Bool(0.8f);
4347
if (!sectionLink) return RelativePath;
4448
var section = Sections[Determinism.Random.Contents.Number(0, Sections.Length - 1)];
4549
return $"{RelativePath}#{Generators.Slug.GenerateSlug(section.Header)}";
50+
*/
4651

4752
}
4853
}

0 commit comments

Comments
 (0)