We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00b2f74 commit d358d47Copy full SHA for d358d47
src/docs-generator/Domain/MarkdownFile.cs
@@ -39,10 +39,15 @@ public void RewriteLinksIntoSections()
39
40
public string GetRandomLink()
41
{
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
+ /*
46
var sectionLink = Determinism.Random.Contents.Bool(0.8f);
47
if (!sectionLink) return RelativePath;
48
var section = Sections[Determinism.Random.Contents.Number(0, Sections.Length - 1)];
49
return $"{RelativePath}#{Generators.Slug.GenerateSlug(section.Header)}";
50
+ */
51
52
}
53
0 commit comments