fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

score: factors for headers in markdown (#661)

+10
+10
contentprovider.go
··· 872 872 case "type": 873 873 factor = 10 874 874 } 875 + case "Markdown", "markdown": 876 + // Headers are good signal in docs, but do not rank as highly as code. 877 + switch kind { 878 + case "chapter": // # 879 + factor = 4 880 + case "section": // ## 881 + factor = 3 882 + case "subsection": // ### 883 + factor = 2 884 + } 875 885 } 876 886 877 887 return factor * scoreKindMatch