Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-englert committed Jul 27, 2024
1 parent 1fce932 commit 2b73f46
Show file tree
Hide file tree
Showing 2,684 changed files with 14,091 additions and 29,935 deletions.
335 changes: 124 additions & 211 deletions docs/LastBuild.log

Large diffs are not rendered by default.

33 changes: 18 additions & 15 deletions docs/SearchHelp.aspx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// System : Sandcastle Help File Builder
// File : SearchHelp.aspx
// Author : Eric Woodruff (Eric@EWoodruff.us)
// Updated : 05/15/2014
// Note : Copyright 2007-2015, Eric Woodruff, All rights reserved
// Updated : 08/13/2022
// Note : Copyright 2007-2022, Eric Woodruff, All rights reserved
//
// This file contains the code used to search for keywords within the help topics using the full-text index
// files created by the help file builder.
Expand Down Expand Up @@ -119,7 +119,7 @@ private List<string> ParseKeywords(string keywords)
{
checkWord = word.ToLower(CultureInfo.InvariantCulture);
if(checkWord.Length > 2 && !Char.IsDigit(checkWord[0]) && !keywordList.Contains(checkWord))
if(checkWord.Length >= 2 && !Char.IsDigit(checkWord[0]) && !keywordList.Contains(checkWord))
keywordList.Add(checkWord);
}
Expand All @@ -140,7 +140,8 @@ private string Search(List<string> keywords, List<string> fileInfo,
StringBuilder sb = new StringBuilder(10240);
Dictionary<string, List<long>> matches = new Dictionary<string, List<long>>();
List<long> occurrences;
List<int> matchingFileIndices = new List<int>(), occurrenceIndices = new List<int>();
HashSet<int> matchingFileIndices = new HashSet<int>();
List<int> occurrenceIndices = new List<int>();
List<Ranking> rankings = new List<Ranking>();
string filename, title;
Expand All @@ -150,7 +151,13 @@ private string Search(List<string> keywords, List<string> fileInfo,
foreach(string word in keywords)
{
if(!wordDictionary.TryGetValue(word, out occurrences))
occurrences = new List<long>();
foreach(KeyValuePair<string, List<long>> kv in wordDictionary)
if(kv.Key.Contains(word))
occurrences.AddRange(kv.Value);
if(occurrences.Count == 0)
return "<strong>Nothing found</strong>";
matches.Add(word, occurrences);
Expand All @@ -163,18 +170,14 @@ private string Search(List<string> keywords, List<string> fileInfo,
if(isFirst)
{
isFirst = false;
matchingFileIndices.AddRange(occurrenceIndices);
matchingFileIndices.UnionWith(occurrenceIndices);
}
else
{
// After the first match, remove files that do not appear for
// all found keywords.
for(idx = 0; idx < matchingFileIndices.Count; idx++)
if(!occurrenceIndices.Contains(matchingFileIndices[idx]))
{
matchingFileIndices.RemoveAt(idx);
idx--;
}
// After the first match, remove files that do not appear for all found keywords
foreach(int i in matchingFileIndices.ToArray())
if(!occurrenceIndices.Contains(i))
matchingFileIndices.Remove(i);
}
}
Expand Down Expand Up @@ -217,7 +220,7 @@ private string Search(List<string> keywords, List<string> fileInfo,
});
// Format the file list and return the results
sb.Append("<ol>");
sb.Append("<ol>");
foreach(Ranking r in rankings)
sb.AppendFormat("<li><a href=\"{0}\" target=\"_blank\">{1}</a></li>", r.Filename, r.PageTitle);
Expand Down
2 changes: 1 addition & 1 deletion docs/SearchHelp.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function ParseKeywords($keywords)
{
$checkWord = strtolower($word);
$first = substr($checkWord, 0, 1);
if(strlen($checkWord) > 2 && !ctype_digit($first) && !in_array($checkWord, $keywordList))
if(strlen($checkWord) >= 2 && !ctype_digit($first) && !in_array($checkWord, $keywordList))
{
array_push($keywordList, $checkWord);
}
Expand Down
1 change: 1 addition & 0 deletions docs/Web.Config
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<add namespace="System.Collections.Generic"/>
<add namespace="System.Globalization"/>
<add namespace="System.IO"/>
<add namespace="System.Linq"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
Expand Down
4,417 changes: 0 additions & 4,417 deletions docs/WebKI.xml

This file was deleted.

2,796 changes: 0 additions & 2,796 deletions docs/WebTOC.xml

This file was deleted.

2 changes: 1 addition & 1 deletion docs/fti/FTI_100.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fti/FTI_101.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fti/FTI_102.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fti/FTI_103.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fti/FTI_104.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fti/FTI_105.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fti/FTI_106.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"join":[36372484,59965442,66977796,83361795,92012546,97648642,104005634,127074306,135200770],"just":[20316161,81133569,106168321,117964801]}
{"join":[33947652,42795012,65404930,77987842,91684867,102367234,124190722,126156802,128516098],"just":[27459585,80936961,92405761,121438209]}
2 changes: 1 addition & 1 deletion docs/fti/FTI_107.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"kernel":[458757,1835012,11403267,44630019,69730307,75497477,125239301],"key2":[81920001],"keyboardnavigation":[19202050,20054022,20381698,75694084,83492870,94830595,98500611,134807553],"keyboard":[20054017,26345473,48889857,80805889,134807553],"key1":[81920003],"key":[3014657,4128775,6356998,9371649,9633796,10092545,11075585,12517377,12648449,14811142,14876676,15007745,15138818,15794181,16515073,17694727,18743307,18808836,19136513,19595265,23199745,23265281,23527425,24182786,25165825,29097985,29229057,33226754,33816577,34013185,35061762,38535169,40108033,41091073,46006275,46727169,47448068,48496642,49545217,49938433,50200577,51838983,52297729,53805058,54132738,57999361,58458114,58851329,60948481,62849029,65011713,65404930,67108873,67633157,70123521,71041025,71172097,71434241,72155137,75300865,75431937,76546049,76742657,77070337,78118920,79364097,80019457,80674817,81199105,81920003,83034113,83165185,84410370,84934663,85196801,85327878,88211464,88473602,91815937,92864513,94633986,96403457,97452033,98107402,98238465,98828295,99352577,99614724,100597761,102367233,103350273,103874564,104267777,104726529,104792065,105054251,105316353,105971721,106889223,110034945,110952455,112656427,112721924,116064257,116195329,118882305,121176065,122290177,122421249,127336450,127664129,128909316,130351105,130482177,131268609,131399682,132382721,133103617,133627905,134152193,135069697,135987211],"keys":[2555905,3866629,4587521,15794180,17104897,18743297,21561345,24051713,29097985,46727169,47448066,47841281,53805057,54132738,57868291,63307779,65404930,69533697,69861377,75825153,86376449,100597761,101580801,102367235,105054209,105447425,107610113,131399681,135987201],"know":[28770305,133103617],"killed":[135200769],"keybinding":[57540609],"keyvaluepair":[15794194,18743300,47448071,53805072,54132742,58458119,65404934,86245380,89391107,135987204],"known":[2555905,4587521,8585217,9240579,12189697,18743297,19726337,21561345,25296898,25493505,40632321,47841281,52690945,55967745,60424193,73465857,86376449,87228419,107610113,116850689,135331841,135987201]}
{"kernel":[655365,3014660,14483459,72351747,79495173,87621635,118882309],"keyboardnavigation":[14745601,14876673,19202053,67960835,76939269,94371842,102236162,121176065],"keyboard":[14745601,14876673,19202050,27197441,46465025,67960833,76939265,83296257,94371841,102236161,121176065],"key":[6750209,7208966,8060932,10158082,10420225,11075591,11599873,12058625,13631492,13762561,14286853,15007745,15400961,15925249,17629185,18087942,19005441,20316162,20709383,20905985,22020097,22675457,24051716,25034753,25231361,25755659,26279937,27394049,29884417,34734081,35979265,37748737,41418755,42729476,43515905,44040193,45350913,45547522,46071810,46268417,46399489,47906817,49152002,49610753,50397185,51773443,53018632,53280771,53411842,53673985,54525954,54919175,58982402,59310081,59441153,63176706,63242241,63373313,64028675,68550659,70254594,70713345,71237633,73203713,74252289,74973185,75038721,75563010,77725697,78053377,79757314,80347143,80609281,81330183,82706439,83492865,85327874,85655553,87031809,87556098,87752705,88342529,88473601,90898433,90963969,93585413,94306305,94765059,96468993,98304001,99287043,99811330,100335621,101122057,104529924,105709569,106037249,106627074,106823681,106954753,107216897,108396587,109117441,109182977,109445124,110297096,110755850,111673345,112132103,112525313,115474436,116850699,120061953,121569281,122355755,122814465,124649473,125239297,125173761,127139847,128647169,128909313,129892361,129957889,131137538,131530753,133300225,133562370,134873089,135200769,135266305,136642564,136708097],"keys":[3670017,5046277,7143425,10420225,11599873,13762561,14286852,15400961,15925249,17629185,19005441,19791873,20316161,20381697,22020097,23855105,25034753,25559041,25755649,26279937,29884417,31719425,34734081,35979265,37748737,42729474,43253761,45350913,46399489,49152001,49610753,50397186,52625409,53673985,59310081,59441153,60686337,63242241,63373313,64028674,66387971,66912259,68550658,70713345,71237633,73203713,74252289,75038721,76414977,78053377,79036417,80609281,82444289,85655553,87031809,87752705,87883777,89325569,90505217,90898433,94306305,98304001,98893825,99811329,105250817,105709569,106037251,106627074,106823681,106954753,108396545,109117441,109182977,111673345,112525313,114688001,116850689,122355714,124518401,124649473,127860737,128647169,128909313,129040385,133300225,135200769,136708097],"know":[30801921,131530753],"killed":[102367233],"keybinding":[61538305],"keyvaluepair":[14286858,25755652,42729479,49152008,58982407,64028677,68550661,91553796,113901571,116850692],"known":[3670017,7143425,10027009,11272195,13238273,13565953,23855105,25755649,29163522,30867457,35520513,43581441,52625409,66322433,80740353,85131265,98893825,101318659,116850689,118292481,127008769,127860737]}
2 changes: 1 addition & 1 deletion docs/fti/FTI_108.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fti/FTI_109.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fti/FTI_110.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fti/FTI_111.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fti/FTI_112.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fti/FTI_113.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"queues":[56885249,83034113],"quotes":[16449537,77791233,100204545],"quoting":[77791233],"quot":[130351105],"quoted":[16449537,77791236,100204545]}
{"queues":[65863681,83492865],"quotes":[8978433,71565313,108724225],"quoting":[71565313],"quot":[125239297],"quoted":[8978433,71565316,108724225]}
2 changes: 1 addition & 1 deletion docs/fti/FTI_114.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fti/FTI_115.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fti/FTI_116.json

Large diffs are not rendered by default.

Loading

0 comments on commit 2b73f46

Please sign in to comment.