Commit a6c723ee authored by Per Bothner's avatar Per Bothner

* repl.java (browseManual): Default to "javafx" rather than "browser".

* doc/kawa.texi (Options): --browse-manual now defaults to javafx.
* Makefile.am (kawa.zip): Include browse-kawa-manual script.
parent bedde9c8
Pipeline #109747389 passed with stage
in 11 minutes and 28 seconds
2020-01-15 Per Bothner <per@bothner.com>
* Makefile.am (kawa.zip): Include browse-kawa-manual script.
2019-12-31 Per Bothner <per@bothner.com>
* configure.in (AC_INIT): Set version to 3.1.
......
......@@ -141,6 +141,7 @@ kawa-$(ZIP_VERSION).zip: dist-kawa.jar doc/kawa-manual.epub bin/kawa.bat
cd kawa-$(VERSION)/doc; \
$(LN_S) ../../doc/kawa-manual.epub kawa-manual.epub; \
$(LN_S) $$docsrcdir/README-epub README-epub; \
$(LN_S) $$docsrcdir/browse-kawa-manual browse-kawa-manual; \
$(LN_S) $$docsrcdir/+default+ +default+
cd kawa-$(VERSION)/bin; \
$(LN_S) ../../bin/@KAWA_SCRIPT@ kawa; \
......
2020-01-15 Per Bothner <per@bothner.com>
* kawa.texi (Options): --browse-manual now defaults to javafx.
2020-01-13 Per Bothner <per@bothner.com>
* browse-kawa-manual: Rewrite to "raw" JavaFX without javafx-defs.
......
......@@ -3349,8 +3349,9 @@ This creates a mini web-server that reads
from @code{doc/kawa-manual.epub}, which is
included in the binary distributions, but not built by default from source.
If no @var{command} is specified, creates a new window or tab
in your default web browser.
If no @var{command} is specified, creates a
new mini-browser-window using JavaFX (if the JavaFX modules are available),
or creates a new window or tab in your default web browser (otherwise).
If @var{command} is a string containing @code{%U},
then Kawa replaces @code{%U} with a URL that references itself,
and then executes the resulting command.
......
2020-01-15 Per Bothner <per@bothner.com>
* repl.java (browseManual): Default to "javafx" rather than "browser".
2020-01-10 Per Bothner <per@bothner.com>
* standard/require.java (importDefinitions): Set type of alias.
......
......@@ -922,12 +922,12 @@ public class repl extends Procedure0or1 {
return manualFile+" does not exist";
if (browserCommand == null || browserCommand.length() == 0) {
try {
Class.forName("gnu.kawa.servlet.KawaHttpHandler");
browserCommand = "browser";
Class.forName("gnu.kawa.javafx.KawaJavafxApplication");
browserCommand = "javafx";
} catch (Throwable ex1) {
try {
Class.forName("gnu.kawa.javafx.KawaJavafxApplication");
browserCommand = "javafx";
Class.forName("gnu.kawa.servlet.KawaHttpHandler");
browserCommand = "browser";
} catch (Throwable ex2) {
return "don't know how to display manual (neither JavaFX or HttpServer classes found)";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment