From 43779f44e253a3e2d19a1c8d40323158e918b694 Mon Sep 17 00:00:00 2001 From: Roman Nikitenko Date: Mon, 25 Nov 2019 23:03:00 +0200 Subject: [PATCH 1/2] Add Preview URL preferences documentation Signed-off-by: Roman Nikitenko --- .../che-7/end-user-guide/ref_devfile-reference.adoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/pages/che-7/end-user-guide/ref_devfile-reference.adoc b/src/main/pages/che-7/end-user-guide/ref_devfile-reference.adoc index 548fe56d04..e5c52dc658 100644 --- a/src/main/pages/che-7/end-user-guide/ref_devfile-reference.adoc +++ b/src/main/pages/che-7/end-user-guide/ref_devfile-reference.adoc @@ -758,6 +758,18 @@ commands: The example above opens `++http://____/myweb++`, where `__` is the URL to the dynamically created Kubernetes Ingress or OpenShift Route. +By default the notification is displayed to ask a user how a URL should be opened. +You can specify the preferred way of previewing a service URL by using preferences. +To set your choice open {prod-short} preferences from *File* -> *Settings* -> *Open Preferences* and find `che.task.preview.notifications` in the `Che` section. + +Here is the list of possible values: + +* `on` value enables a notification to ask a user how a URL should be opened +* `alwaysPreview` value tells IDE to open a preview URL automatically in the Preview panel as soon as a task is running +* `alwaysGoTo` value tells IDE to open a preview URL automatically in a separate browser's tab as soon as a task is running +* `off` value disables opening a preview URL (automatically and with a notification) + + == Devfile attributes Devfile attributes can be used to configure various features. From 19b45e10b86b1f68338cc0c5faac7cdc15acea85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Kr=C3=A1tk=C3=BD?= Date: Tue, 26 Nov 2019 17:39:54 +0100 Subject: [PATCH 2/2] Minor formatting fixes --- .../end-user-guide/ref_devfile-reference.adoc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/pages/che-7/end-user-guide/ref_devfile-reference.adoc b/src/main/pages/che-7/end-user-guide/ref_devfile-reference.adoc index e5c52dc658..ad956d0fdb 100644 --- a/src/main/pages/che-7/end-user-guide/ref_devfile-reference.adoc +++ b/src/main/pages/che-7/end-user-guide/ref_devfile-reference.adoc @@ -758,16 +758,18 @@ commands: The example above opens `++http://____/myweb++`, where `__` is the URL to the dynamically created Kubernetes Ingress or OpenShift Route. -By default the notification is displayed to ask a user how a URL should be opened. -You can specify the preferred way of previewing a service URL by using preferences. -To set your choice open {prod-short} preferences from *File* -> *Settings* -> *Open Preferences* and find `che.task.preview.notifications` in the `Che` section. +==== Setting the default way of opening preview URLs -Here is the list of possible values: +By default, a notification is displayed to ask the user how the URL should be opened. To specify the preferred way of previewing a service URL, use preferences. -* `on` value enables a notification to ask a user how a URL should be opened -* `alwaysPreview` value tells IDE to open a preview URL automatically in the Preview panel as soon as a task is running -* `alwaysGoTo` value tells IDE to open a preview URL automatically in a separate browser's tab as soon as a task is running -* `off` value disables opening a preview URL (automatically and with a notification) +. Open {prod-short} preferences in *File -> Settings -> Open Preferences* and find `che.task.preview.notifications` in the *Che* section. + +. Choose from the list of possible values: ++ +* `on` -- enables a notification to ask the user how the URL should be opened +* `alwaysPreview` -- the preview URL opens automatically in the *Preview* panel as soon as a task is running +* `alwaysGoTo` -- the preview URL opens automatically in a separate browser tab as soon as a task is running +* `off` -- disables opening the preview URL (automatically and with a notification) == Devfile attributes