Skip to content

Commit 2bd56a0

Browse files
authored
Merge pull request #145 from IvorySQL/docs-update-1-2025-11-11-071727
Docs: Automated update from IvorySQL/ivorysql_docs commit 8c8c764e82cc0c351945b9aa561814d033680b8b
2 parents 5e4a88a + 8608b70 commit 2bd56a0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+2625
-1053
lines changed

docs/cn/_/js/search-ui.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,9 @@
133133
document.head.appendChild(link);
134134
}
135135

136-
function highlightPageTitle (title, terms) {
137-
const positions = getTermPosition(title, terms);
138-
return buildHighlightedText(title, positions, snippetLength)
139-
}
140-
141136
function highlightSectionTitle (sectionTitle, terms) {
142137
if (sectionTitle) {
143-
const text = sectionTitle.text;
138+
const text = sectionTitle.title ?? sectionTitle.text;
144139
const positions = getTermPosition(text, terms);
145140
return buildHighlightedText(text, positions, snippetLength)
146141
}
@@ -156,8 +151,7 @@
156151
return []
157152
}
158153

159-
function highlightText (doc, terms) {
160-
const text = doc.text;
154+
function highlightText (text, terms) {
161155
const positions = getTermPosition(text, terms);
162156
return buildHighlightedText(text, positions, snippetLength)
163157
}
@@ -183,9 +177,12 @@
183177
}
184178
}
185179
return {
186-
pageTitleNodes: highlightPageTitle(doc.title, terms.title || []),
180+
pageTitleNodes: highlightText(doc.title, terms.title || []),
187181
sectionTitleNodes: highlightSectionTitle(sectionTitle, terms.title || []),
188-
pageContentNodes: highlightText(doc, terms.text || []),
182+
pageContentNodes: highlightText(
183+
sectionTitle?.title && sectionTitle.text ? sectionTitle.text : doc.text,
184+
terms.text || []
185+
),
189186
pageKeywordNodes: highlightKeyword(doc, terms.keyword || []),
190187
}
191188
}
@@ -199,12 +196,12 @@
199196
let sectionTitle;
200197
if (ids.length > 1) {
201198
const titleId = ids[1];
202-
sectionTitle = doc.titles.filter(function (item) {
199+
sectionTitle = doc.titles.find(function (item) {
203200
return String(item.id) === titleId
204-
})[0];
201+
});
205202
}
206203
const metadata = item.matchData.metadata;
207-
const highlightingResult = highlightHit(metadata, sectionTitle, doc);
204+
const highlightingResult = highlightHit(metadata, sectionTitle || doc, doc);
208205
const componentVersion = store.componentVersions[`${doc.component}/${doc.version}`];
209206
if (componentVersion !== undefined && currentComponent !== componentVersion) {
210207
const searchResultComponentHeader = document.createElement('div');

docs/cn/ivorysql-doc/master/1.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ <h3 class="title"><a href="welcome.html">文档中心</a></h3>
124124
<li class="nav-item" data-depth="3">
125125
<a class="nav-link" href="5.9.html">pgrouting</a>
126126
</li>
127+
<li class="nav-item" data-depth="3">
128+
<a class="nav-link" href="5.10.html">system_stats</a>
129+
</li>
127130
</ul>
128131
</li>
129132
<li class="nav-item" data-depth="2">

docs/cn/ivorysql-doc/master/10.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ <h3 class="title"><a href="welcome.html">文档中心</a></h3>
124124
<li class="nav-item" data-depth="3">
125125
<a class="nav-link" href="5.9.html">pgrouting</a>
126126
</li>
127+
<li class="nav-item" data-depth="3">
128+
<a class="nav-link" href="5.10.html">system_stats</a>
129+
</li>
127130
</ul>
128131
</li>
129132
<li class="nav-item" data-depth="2">

docs/cn/ivorysql-doc/master/100.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ <h3 class="title"><a href="welcome.html">文档中心</a></h3>
124124
<li class="nav-item" data-depth="3">
125125
<a class="nav-link" href="5.9.html">pgrouting</a>
126126
</li>
127+
<li class="nav-item" data-depth="3">
128+
<a class="nav-link" href="5.10.html">system_stats</a>
129+
</li>
127130
</ul>
128131
</li>
129132
<li class="nav-item" data-depth="2">

docs/cn/ivorysql-doc/master/110.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ <h3 class="title"><a href="welcome.html">文档中心</a></h3>
123123
<li class="nav-item" data-depth="3">
124124
<a class="nav-link" href="5.9.html">pgrouting</a>
125125
</li>
126+
<li class="nav-item" data-depth="3">
127+
<a class="nav-link" href="5.10.html">system_stats</a>
128+
</li>
126129
</ul>
127130
</li>
128131
<li class="nav-item" data-depth="2">

docs/cn/ivorysql-doc/master/2.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ <h3 class="title"><a href="welcome.html">文档中心</a></h3>
124124
<li class="nav-item" data-depth="3">
125125
<a class="nav-link" href="5.9.html">pgrouting</a>
126126
</li>
127+
<li class="nav-item" data-depth="3">
128+
<a class="nav-link" href="5.10.html">system_stats</a>
129+
</li>
127130
</ul>
128131
</li>
129132
<li class="nav-item" data-depth="2">

docs/cn/ivorysql-doc/master/23.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ <h3 class="title"><a href="welcome.html">文档中心</a></h3>
122122
<li class="nav-item" data-depth="3">
123123
<a class="nav-link" href="5.9.html">pgrouting</a>
124124
</li>
125+
<li class="nav-item" data-depth="3">
126+
<a class="nav-link" href="5.10.html">system_stats</a>
127+
</li>
125128
</ul>
126129
</li>
127130
<li class="nav-item" data-depth="2">

docs/cn/ivorysql-doc/master/3.1.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ <h3 class="title"><a href="welcome.html">文档中心</a></h3>
124124
<li class="nav-item" data-depth="3">
125125
<a class="nav-link" href="5.9.html">pgrouting</a>
126126
</li>
127+
<li class="nav-item" data-depth="3">
128+
<a class="nav-link" href="5.10.html">system_stats</a>
129+
</li>
127130
</ul>
128131
</li>
129132
<li class="nav-item" data-depth="2">

docs/cn/ivorysql-doc/master/3.2.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ <h3 class="title"><a href="welcome.html">文档中心</a></h3>
124124
<li class="nav-item" data-depth="3">
125125
<a class="nav-link" href="5.9.html">pgrouting</a>
126126
</li>
127+
<li class="nav-item" data-depth="3">
128+
<a class="nav-link" href="5.10.html">system_stats</a>
129+
</li>
127130
</ul>
128131
</li>
129132
<li class="nav-item" data-depth="2">

docs/cn/ivorysql-doc/master/3.3.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ <h3 class="title"><a href="welcome.html">文档中心</a></h3>
124124
<li class="nav-item" data-depth="3">
125125
<a class="nav-link" href="5.9.html">pgrouting</a>
126126
</li>
127+
<li class="nav-item" data-depth="3">
128+
<a class="nav-link" href="5.10.html">system_stats</a>
129+
</li>
127130
</ul>
128131
</li>
129132
<li class="nav-item" data-depth="2">

0 commit comments

Comments
 (0)