This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch geoapi-4.0 in repository https://gitbox.apache.org/repos/asf/sis.git
commit 5fe5c7707097070a6619e643863d452033078633 Author: Martin Desruisseaux <martin.desruisse...@geomatys.com> AuthorDate: Fri Nov 17 12:11:33 2023 +0100 Do not generate anymore the French version of developer-guide. It has been deleted from the web site, because unmaintained. --- .../main/org/apache/sis/buildtools/book/Assembler.java | 14 +++++++++----- .../main/org/apache/sis/buildtools/book/package-info.java | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/buildSrc/src/org.apache.sis.buildtools/main/org/apache/sis/buildtools/book/Assembler.java b/buildSrc/src/org.apache.sis.buildtools/main/org/apache/sis/buildtools/book/Assembler.java index eeece15e3c..8287d72e75 100644 --- a/buildSrc/src/org.apache.sis.buildtools/main/org/apache/sis/buildtools/book/Assembler.java +++ b/buildSrc/src/org.apache.sis.buildtools/main/org/apache/sis/buildtools/book/Assembler.java @@ -84,6 +84,11 @@ public final class Assembler { "../../../../static/book/" // Localized versions }; + /** + * Whether to generate localized versions. + */ + private static final boolean LOCALIZE = false; + /** * The directory of all input files to process. */ @@ -554,10 +559,9 @@ public final class Assembler { } Assembler assembler = new Assembler(input); assembler.run(new File(target, "en/developer-guide.html")); - /* - * Localized versions. - */ - assembler = new Assembler(new File(source, "fr/developer-guide/index.html")); - assembler.run(new File(target, "fr/developer-guide.html")); + if (LOCALIZE) { + assembler = new Assembler(new File(source, "fr/developer-guide/index.html")); + assembler.run(new File(target, "fr/developer-guide.html")); + } } } diff --git a/buildSrc/src/org.apache.sis.buildtools/main/org/apache/sis/buildtools/book/package-info.java b/buildSrc/src/org.apache.sis.buildtools/main/org/apache/sis/buildtools/book/package-info.java index 9d5114d605..54275d0caf 100644 --- a/buildSrc/src/org.apache.sis.buildtools/main/org/apache/sis/buildtools/book/package-info.java +++ b/buildSrc/src/org.apache.sis.buildtools/main/org/apache/sis/buildtools/book/package-info.java @@ -34,7 +34,7 @@ * * Then the command can be used as below on Unix systems: * - * <pre>java -classpath main/build/classes/java/main org.apache.sis.buildtools.book.Assembler site</pre> + * <pre>java -classpath main/buildSrc/build/libs/buildSrc.jar org.apache.sis.buildtools.book.Assembler site</pre> * * <h2>Future evolution</h2> * We may replace (at least partially) this tools by some more advanced open-source alternatives.