Skip to content

Commit 6acfb9e

Browse files
committed
为注释中的网址增加链接
1 parent 9e5bbec commit 6acfb9e

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

_attributes.adoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
:doctype: book
33
:icons: font
44
:source-highlighter: rouge
5-
:rouge-style: monokai
5+
:rouge-style: github
6+
// :rouge-style: monokai
7+
// :source-highlighter: coderay
8+
// :coderay-style: monokai
9+
// :coderay-linenums-mode: table
610
:source-language: sql // 后面还可以覆盖
711
:stylesdir: assets/styles/
812
:linkcss:
@@ -22,7 +26,8 @@
2226
:last-update-label: 最后更新时间
2327
:homepage: http://www.diguage.com/
2428

25-
:sql_source_attr: source,sql,linenums,subs="attributes,verbatim"
29+
// 加 linenums 属性,则评论中的 URL 不会转化成链接
30+
:sql_source_attr: source,sql,subs="attributes,verbatim"
2631

2732
ifdef::env-github[]
2833
:tip-caption: :bulb:

build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ if [ ! -n `which html-minifier` ]; then
5353
fi
5454

5555
# 删除以前的编译结果
56-
rm -rf *.html *.pdf
57-
ehco -e "\nremove the last processing result"
56+
echo -e "\nremove the last processing result"
57+
rm -rf *.html *.pdf $base_dir/assets/styles/*.css
5858
# $style_dir
5959

6060
## Web ###########
@@ -63,6 +63,7 @@ ehco -e "\nremove the last processing result"
6363
$asciidoctor -a toc=left \
6464
-a stylesdir=$style_dir \
6565
-a linkcss \
66+
-r asciidoctor-comment-links \
6667
-r asciidoctor-multipage \
6768
-b multipage_html5 \
6869
-D . \

schema-data-type.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ MySQL 5.0 和更高版本中的 `DECIMAL` 类型运行最多 65 个数字。
3636
.测试 `DECIMAL` 类型的最大数字数
3737
[{sql_source_attr}]
3838
----
39+
-- D瓜哥 · https://www.diguage.com
3940
DROP TABLE IF EXISTS decimal_test;
4041
CREATE TABLE decimal_test (
4142
col1 DECIMAL(65, 10),

0 commit comments

Comments
 (0)