|
816 | 816 | </dependency>
|
817 | 817 | </dependencies>
|
818 | 818 | </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> |
819 | 837 | <plugin>
|
820 | 838 | <!-- 3.2.0 依赖 jruby 9.4.8.0/9.4.12.0 -->
|
821 | 839 | <groupId>org.asciidoctor</groupId>
|
|
825 | 843 | <sourceDirectory>docs</sourceDirectory>
|
826 | 844 | <sourceDocumentName>index.adoc</sourceDocumentName>
|
827 | 845 | <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> |
830 | 849 | <doctype>book</doctype>
|
831 | 850 | <stem>latexmath</stem>
|
832 | 851 | <source-highlighter>rouge</source-highlighter>
|
|
838 | 857 | <linkcss>true</linkcss>
|
839 | 858 | <stylesdir>assets/styles</stylesdir>
|
840 | 859 | <toc/>
|
841 |
| - <toclevels>3</toclevels> |
842 |
| - <sectnums>true</sectnums> |
| 860 | + <toclevels>1</toclevels> |
| 861 | + <!-- <sectnums>false</sectnums>--> |
843 | 862 | <sectnumlevels>3</sectnumlevels>
|
844 | 863 | <sectanchors>true</sectanchors>
|
845 | 864 | <graphvizdot>/usr/local/bin/dot</graphvizdot>
|
| 865 | + <project_basedir>${project.basedir}</project_basedir> |
846 | 866 | <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> |
848 | 868 | <html_src_attr>source%nowrap,html,{source_attr}</html_src_attr>
|
849 | 869 | <image_attr>align="center",width=95%</image_attr>
|
850 | 870 | <diagram_attr>format=svg,align="center",width=95%</diagram_attr>
|
851 | 871 | <plantumlconfig>${project.basedir}/cfg/plantuml.cfg</plantumlconfig>
|
| 872 | + <toc-title>目录</toc-title> |
852 | 873 | <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> |
853 | 877 | </attributes>
|
854 | 878 | </configuration>
|
855 | 879 | <executions>
|
|
876 | 900 | </configuration>
|
877 | 901 | </execution>
|
878 | 902 |
|
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>--> |
900 | 924 |
|
901 | 925 | <!-- <execution>-->
|
902 | 926 | <!-- <id>generate-epub</id>-->
|
|
973 | 997 | <artifactId>asciidoctorj-diagram</artifactId>
|
974 | 998 | <version>${asciidoctorj-diagram.version}</version>
|
975 | 999 | </dependency>
|
976 |
| - <dependency> |
977 |
| - <groupId>org.asciidoctor</groupId> |
978 |
| - <artifactId>asciidoctorj-diagram-plantuml</artifactId> |
979 |
| - <version>1.2025.2</version> |
980 |
| - </dependency> |
981 | 1000 | <dependency>
|
982 | 1001 | <groupId>org.jruby</groupId>
|
983 | 1002 | <artifactId>jruby</artifactId>
|
|
0 commit comments