Skip to content

Commit 2f64c0f

Browse files
committed
为评论增加链接
1 parent 85a46aa commit 2f64c0f

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
run: |
3838
mvn clean package
3939
40+
- name: Add links for comments 🔗
41+
run: |
42+
cd target/docs/multipage
43+
sed -i 's/\(D瓜哥 · https:\/\/www.diguage.com\)/<a href="https:\/\/www.diguage.com" class="cmt-link" target="_blank">\1<\/a>/g' *.html
44+
4045
- name: Deploy 🚀
4146
uses: JamesIves/github-pages-deploy-action@v4
4247
with:

docs/docinfo.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<style>.cmt-link {text-decoration: none;color: #6e7781;}</style>

pom.xml

+9-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<asciidoctorj-epub3.version>2.1.3</asciidoctorj-epub3.version>
2929
<asciidoctorj-diagram.version>2.3.0</asciidoctorj-diagram.version>
3030
<asciidoctor-multipage.version>0.0.19</asciidoctor-multipage.version>
31+
<rouge.version>4.3.0</rouge.version>
3132
<asciidoctor-comment-links.version>0.0.2</asciidoctor-comment-links.version>
3233
<asciidoclet.version>2.0.0</asciidoclet.version>
3334
<asciidoctor-maven-plugin.version>3.0.0</asciidoctor-maven-plugin.version>
@@ -42,6 +43,12 @@
4243
</properties>
4344

4445
<dependencies>
46+
<!--<dependency>-->
47+
<!-- <groupId>rubygems</groupId>-->
48+
<!-- <artifactId>rouge</artifactId>-->
49+
<!-- <version>${rouge.version}</version>-->
50+
<!-- <type>gem</type>-->
51+
<!--</dependency>-->
4552
<dependency>
4653
<groupId>rubygems</groupId>
4754
<artifactId>asciidoctor-multipage</artifactId>
@@ -409,8 +416,6 @@
409416
<source-highlighter>rouge</source-highlighter>
410417
<rouge-style>github</rouge-style>
411418
<imagesdir>.</imagesdir>
412-
<docinfo>true</docinfo>
413-
<docinfodir>assets/tags</docinfodir>
414419
<icons>font</icons>
415420
<linkcss>true</linkcss>
416421
<stylesdir>assets/styles</stylesdir>
@@ -448,6 +453,7 @@
448453
<outputDirectory>${project.build.directory}/docs/multipage</outputDirectory>
449454
<attributes>
450455
<toc>left</toc>
456+
<docinfo1>true</docinfo1>
451457
</attributes>
452458
</configuration>
453459
</execution>
@@ -464,6 +470,7 @@
464470
<!-- <outputDirectory>${project.build.directory}/docs/html</outputDirectory>-->
465471
<!-- <attributes>-->
466472
<!-- <toc>left</toc>-->
473+
<!-- <docinfo1>true</docinfo1>-->
467474
<!-- </attributes>-->
468475
<!-- <gemPath>${gem.path}</gemPath>-->
469476
<!-- <requires>-->

0 commit comments

Comments
 (0)