Skip to content

Commit 7899635

Browse files
committed
修复“抽取出AsciiDoc文档处理”时引入的错误
1 parent a1b0257 commit 7899635

File tree

1 file changed

+50
-31
lines changed

1 file changed

+50
-31
lines changed

pom.xml

Lines changed: 50 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,24 @@
816816
</dependency>
817817
</dependencies>
818818
</plugin>
819+
<plugin>
820+
<groupId>org.codehaus.mojo</groupId>
821+
<artifactId>exec-maven-plugin</artifactId>
822+
<version>${exec-maven-plugin.version}</version>
823+
<executions>
824+
<execution>
825+
<id>install-fonts-and-generate-config-file</id>
826+
<phase>generate-sources</phase>
827+
<goals>
828+
<goal>exec</goal>
829+
</goals>
830+
<configuration>
831+
<executable>${project.basedir}/cfg/scripts/install-fonts.sh</executable>
832+
<!-- <commandlineArgs>Args</commandlineArgs> -->
833+
</configuration>
834+
</execution>
835+
</executions>
836+
</plugin>
819837
<plugin>
820838
<!-- 3.2.0 依赖 jruby 9.4.8.0/9.4.12.0 -->
821839
<groupId>org.asciidoctor</groupId>
@@ -825,8 +843,9 @@
825843
<sourceDirectory>docs</sourceDirectory>
826844
<sourceDocumentName>index.adoc</sourceDocumentName>
827845
<attributes>
828-
<project_basedir>${maven.multiModuleProjectDirectory}</project_basedir>
829-
<sourcedir>${project.build.sourceDirectory}/com/diguage/yongle</sourcedir>
846+
<sourcedir>${project.build.sourceDirectory}/com/diguage/algo/leetcode</sourcedir>
847+
<labdir>${project.build.testSourceDirectory}/com/diguage/labs</labdir>
848+
<basedir>${project.basedir}</basedir>
830849
<doctype>book</doctype>
831850
<stem>latexmath</stem>
832851
<source-highlighter>rouge</source-highlighter>
@@ -838,18 +857,23 @@
838857
<linkcss>true</linkcss>
839858
<stylesdir>assets/styles</stylesdir>
840859
<toc/>
841-
<toclevels>3</toclevels>
842-
<sectnums>true</sectnums>
860+
<toclevels>1</toclevels>
861+
<!-- <sectnums>false</sectnums>-->
843862
<sectnumlevels>3</sectnumlevels>
844863
<sectanchors>true</sectanchors>
845864
<graphvizdot>/usr/local/bin/dot</graphvizdot>
865+
<project_basedir>${project.basedir}</project_basedir>
846866
<source_attr>linenums,indent=0,subs="attributes,verbatim,quotes"</source_attr>
847-
<java_src_attr>source%nowrap,java,{source_attr}</java_src_attr>
867+
<java_src_attr>source%nowrap,java,linenums,indent=0,subs="attributes,verbatim"</java_src_attr>
848868
<html_src_attr>source%nowrap,html,{source_attr}</html_src_attr>
849869
<image_attr>align="center",width=95%</image_attr>
850870
<diagram_attr>format=svg,align="center",width=95%</diagram_attr>
851871
<plantumlconfig>${project.basedir}/cfg/plantuml.cfg</plantumlconfig>
872+
<toc-title>目录</toc-title>
852873
<iconfont-cdn>//cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css</iconfont-cdn>
874+
<doc_base_url>xref:.</doc_base_url>
875+
<leetcode>https://leetcode.cn</leetcode>
876+
<leetcode_base_url>https://leetcode.cn/problems</leetcode_base_url>
853877
</attributes>
854878
</configuration>
855879
<executions>
@@ -876,27 +900,27 @@
876900
</configuration>
877901
</execution>
878902

879-
<execution>
880-
<id>generate-html</id>
881-
<phase>package</phase>
882-
<goals>
883-
<goal>process-asciidoc</goal>
884-
</goals>
885-
<configuration>
886-
<backend>html5</backend>
887-
<doctype>book</doctype>
888-
<outputDirectory>${project.build.directory}/docs/html</outputDirectory>
889-
<attributes>
890-
<toc>left</toc>
891-
</attributes>
892-
<gemPath>${gem.path}</gemPath>
893-
<requires>
894-
<require>asciidoctor-tabs</require>
895-
<require>asciidoctor-diagram</require>
896-
<require>asciidoctor-comment-links</require>
897-
</requires>
898-
</configuration>
899-
</execution>
903+
<!-- <execution>-->
904+
<!-- <id>generate-html</id>-->
905+
<!-- <phase>package</phase>-->
906+
<!-- <goals>-->
907+
<!-- <goal>process-asciidoc</goal>-->
908+
<!-- </goals>-->
909+
<!-- <configuration>-->
910+
<!-- <backend>html5</backend>-->
911+
<!-- <doctype>book</doctype>-->
912+
<!-- <outputDirectory>${project.build.directory}/docs/html</outputDirectory>-->
913+
<!-- <attributes>-->
914+
<!-- <toc>left</toc>-->
915+
<!-- </attributes>-->
916+
<!-- <gemPath>${gem.path}</gemPath>-->
917+
<!-- <requires>-->
918+
<!-- <require>asciidoctor-tabs</require>-->
919+
<!-- <require>asciidoctor-diagram</require>-->
920+
<!-- <require>asciidoctor-comment-links</require>-->
921+
<!-- </requires>-->
922+
<!-- </configuration>-->
923+
<!-- </execution>-->
900924

901925
<!-- <execution>-->
902926
<!-- <id>generate-epub</id>-->
@@ -973,11 +997,6 @@
973997
<artifactId>asciidoctorj-diagram</artifactId>
974998
<version>${asciidoctorj-diagram.version}</version>
975999
</dependency>
976-
<dependency>
977-
<groupId>org.asciidoctor</groupId>
978-
<artifactId>asciidoctorj-diagram-plantuml</artifactId>
979-
<version>1.2025.2</version>
980-
</dependency>
9811000
<dependency>
9821001
<groupId>org.jruby</groupId>
9831002
<artifactId>jruby</artifactId>

0 commit comments

Comments
 (0)