Skip to content

Commit f3b3148

Browse files
fix overflow style
1 parent 419ff2b commit f3b3148

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

source/en/dialects-and-native-sql.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ Now, let's talk about Ktorm's built-in dialects' features.
9797
- Support locking clause via [locking](https://www.ktorm.org/api-docs/ktorm-support-postgresql/org.ktorm.support.postgresql/locking.html) function, eg. `select ... for update`.
9898
- Support [hstore](https://www.ktorm.org/api-docs/ktorm-support-postgresql/org.ktorm.support.postgresql/hstore.html) data type and a series of operators for it.
9999
- Support [cube](https://www.ktorm.org/api-docs/ktorm-support-postgresql/org.ktorm.support.postgresql/cube.html) & [earth](https://www.ktorm.org/api-docs/ktorm-support-postgresql/org.ktorm.support.postgresql/earth.html) data type and their utility functions.
100-
- For more functionality, please refer to the API docs https://www.ktorm.org/api-docs/ktorm-support-postgresql/org.ktorm.support.postgresql/index.html
100+
- For more functionality, please refer to the API docs https://www.ktorm.org/api-docs/ktorm-support-postgresql/org.ktorm.support.postgresql/index.html
101101

102102
**ktorm-support-sqlite**:
103103

104104
- Support standard pagination functions of Ktorm, translating to SQLite's `limit ?, ?` statement.
105105
- Support extended syntax for insert statements, like [insertOrUpdate](https://www.ktorm.org/api-docs/ktorm-support-sqlite/org.ktorm.support.sqlite/insert-or-update.html), [bulkInsert](https://www.ktorm.org/api-docs/ktorm-support-sqlite/org.ktorm.support.sqlite/bulk-insert.html), [bulkInsertOrUpdate](https://www.ktorm.org/api-docs/ktorm-support-sqlite/org.ktorm.support.sqlite/bulk-insert-or-update.html), etc.
106106
- Support some common-used JSON operating functions, like [jsonExtract](https://www.ktorm.org/api-docs/ktorm-support-sqlite/org.ktorm.support.sqlite/json-extract.html), [jsonPatch](https://www.ktorm.org/api-docs/ktorm-support-sqlite/org.ktorm.support.sqlite/json-patch.html).
107107
- Support some common-used functions like [iif](https://www.ktorm.org/api-docs/ktorm-support-sqlite/org.ktorm.support.sqlite/iif.html), [ifNull](https://www.ktorm.org/api-docs/ktorm-support-sqlite/org.ktorm.support.sqlite/if-null.html), [instr](https://www.ktorm.org/api-docs/ktorm-support-sqlite/org.ktorm.support.sqlite/instr.html), [replace](https://www.ktorm.org/api-docs/ktorm-support-sqlite/org.ktorm.support.sqlite/replace.html), etc.
108-
- For more functionality, please refer to the API docs https://www.ktorm.org/api-docs/ktorm-support-sqlite/org.ktorm.support.sqlite/index.html
108+
- For more functionality, please refer to the API docs https://www.ktorm.org/api-docs/ktorm-support-sqlite/org.ktorm.support.sqlite/index.html
109109

110110
**ktorm-support-sqlserver**:
111111

@@ -116,7 +116,7 @@ Now, let's talk about Ktorm's built-in dialects' features.
116116
**ktorm-support-oracle**:
117117

118118
- Support standard pagination functions of Ktorm, translating to Oracle's paging SQL using `rownum`.
119-
- For more functionality, please refer to the API docs https://www.ktorm.org/api-docs/ktorm-support-oracle/org.ktorm.support.oracle/index.html
119+
- For more functionality, please refer to the API docs https://www.ktorm.org/api-docs/ktorm-support-oracle/org.ktorm.support.oracle/index.html
120120

121121
To be honest, Ktorm's support for special syntax of many database dialects is really not enough. This is because my time and energy are really limited, so I have to lower the precedence of some infrequently used dialect features.
122122

source/zh-cn/dialects-and-native-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ on duplicate key update salary = salary + ?
117117
**ktorm-support-oracle**
118118

119119
- 支持 Ktorm 的标准分页函数,自动翻译为 Oracle 中使用 `rownum` 筛选分页的写法
120-
- 更多功能请参考详细的 API 文档https://www.ktorm.org/api-docs/ktorm-support-oracle/org.ktorm.support.oracle/index.html
120+
- 更多功能请参考详细的 API 文档 https://www.ktorm.org/api-docs/ktorm-support-oracle/org.ktorm.support.oracle/index.html
121121

122122
老实说,Ktorm 对许多数据库方言的特殊语法的支持确实存在不足,这是因为作者本人的精力有限,只能做到支持工作中常用的功能,对于其他纷繁复杂的特殊语法只能暂时把优先级降低。
123123

themes/doc/layout/layout.ejs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,5 @@
7575
<!-- js scripts -->
7676
<script src="<%- url_for('vendors/[email protected]/jquery.min.js') %>"></script>
7777
<script src="<%- url_for('script/doc.js') %>"></script>
78-
79-
<!-- fix code highlight -->
80-
<script>
81-
(function() {
82-
$(".kotlin .code .keyword").each(function() {
83-
var node = $(this);
84-
if (node.text() === "where" || node.text() === "set") {
85-
node.removeClass("keyword");
86-
}
87-
});
88-
})();
89-
</script>
9078
</body>
9179
</html>

themes/doc/lib/browser/index.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,22 @@ props.url_for = function(path) {
1414
return url.replace(/\/{2,}/g, '/');
1515
};
1616

17+
// React client rendering.
1718
const container = document.getElementById('navigation-container');
1819
ReactDOM.hydrateRoot(container, React.createElement(Navigation, props));
20+
21+
// Fix code highlight.
22+
$(".kotlin .code .keyword").each(function() {
23+
const node = $(this);
24+
if (node.text() === "where" || node.text() === "set") {
25+
node.removeClass("keyword");
26+
}
27+
});
28+
29+
// Fix style for pure links.
30+
$(".doc-formatting a").each(function() {
31+
const text = $(this).text();
32+
if (text.startsWith("http://") || text.startsWith("https://")) {
33+
$(this).css("line-break", "anywhere");
34+
}
35+
});

themes/doc/source/style/_doc/formatting.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124

125125
.table-wrapper {
126126
margin: 10px 0;
127+
overflow: auto;
127128
background-color: white;
128129
}
129130

0 commit comments

Comments
 (0)