Skip to content

Commit

Permalink
Fix vale warnings in End-user Guide (#2078)
Browse files Browse the repository at this point in the history
* Fix vale warnings in end user guide

* Fix a typo

* Implement review suggestions

* Small fixes

* Link Vale fix

Signed-off-by: Michal Maléř <mmaler@redhat.com>

* Fix hyphenation

Co-authored-by: Michal Maléř <mmaler@redhat.com>
  • Loading branch information
tstastna and MichalMaler committed Aug 10, 2021
1 parent 4ae23d0 commit 61ae4f3
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

:context: che-theia-troubleshooting

This section describes some of the most frequent issues with the Che-Theia IDE.
This section describes the most frequent issues with the Che-Theia IDE.

Che-Theia shows a notification with the following message: `Plugin runtime crashed unexpectedly, all plugins are not working, please reload the page. Probably there is not enough memory for the plugins.`::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

:context: using-artifact-repositories-in-a-restricted-environment

This section describes how to manually configure various technology stacks to work with artifacts from in-house repositories using self-signed certificates.
By configuring technology stacks, you can work with artifacts from in-house repositories using self-signed certificates.

* xref:using-maven-artifact-repositories.adoc[]
* xref:using-gradle-artifact-repositories.adoc[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

:context: using-gradle-artifact-repositories

This section describes how to download and configure Gradle.

include::partial$proc_downloading-different-versions-of-gradle.adoc[leveloffset=+1]

include::partial$proc_configuring-global-gradle-repositories.adoc[leveloffset=+1]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The same Che-Theia plug-in API is exposed to plug-ins running on the client side
[id="che-theia-plug-in-apis_{context}"]
== Che-Theia plug-in APIs

For the purpose of providing tool isolation and easy extensibility in {prod}, the Che-Theia IDE has a set of plug-in APIs. The APIs are compatible with Visual Studio Code extension APIs. In most cases, Che-Theia can run VS Code extensions as its own plug-ins.
To provide tool isolation and easy extensibility in {prod}, the Che-Theia IDE has a set of plug-in APIs. The APIs are compatible with Visual Studio Code extension APIs. Usually, Che-Theia can run VS Code extensions as its own plug-ins.

When developing a plug-in that depends on or interacts with components of {prod-short} workspaces (containers, preferences, factories), use the {prod-short} APIs embedded in Che-Theia.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

== Generating an SSH key using the {prod-short} command palette

The following section describes a generation of an SSH key using the {prod-short} command palette and its further use in Git provider communication. This SSH key restricts permissions for the specific Git provider, therefore, the user has to create a unique SSH key for each Git provider in use.
You can generate an SSH key by using the {prod-short} command palette. You have to create a unique SSH key for each Git provider in use because each SSH key restricts permissions for one specific Git provider.

A common SSH key pair that works with all the Git providers is available by default. To start using it, add the public key to the Git provider.

.Prerequisites
* A running instance of {prod-short}. To install an instance of {prod}, see xref:installation-guide:installing-che.adoc[].
Expand All @@ -18,8 +20,6 @@ The following section describes a generation of an SSH key using the {prod-short

.Procedure

A common SSH key pair that works with all the Git providers is present by default. To start using it, add the public key to the Git provider.

. Generate an SSH key pair that only works with a particular Git provider:

** In the {prod-short} IDE, press kbd:[F1] to open the Command Palette, or navigate to *View -> Find Command* in the top menu.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ This article describes the steps needed to build the plug-ins registry with a cu
<18> The path of the mount
<19> (OPTIONAL) Any endpoint information for the sidecar container
<20> Endpoint name
<21> Whether or not the endpoint is exposed publicly or not
<21> A Boolean value determining whether the endpoint is exposed publicly
<22> The port number
<23> Attributes relating to the endpoint
<24> Direct link(s) to the `vsix` files included with this plugin. The `vsix` built by the repository specified, such as the main extension, must be listed first
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
= Defining repositories in `settings.xml`

To specify your own artifact repositories at `example.server.org`, use the `settings.xml` file.
To do that, ensure, that `settings.xml` is present in all the containers that use Maven tools, in particular the Maven container and the Java plug-in container.
Ensure that `settings.xml` is in all the containers that use Maven tools. In particular, ensure that it is in the Maven container and the Java plug-in container.

By default, `settings.xml` is located at the `__<home dir>__/.m2` directory which is already on persistent volume in Maven and Java plug-in containers and you don't need to re-create the file each time you restart the workspace if it isn't in ephemeral mode.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The recommended way to download any version of Gradle is by using the Gradle Wra

.Prerequisites

* The Gradle Wrapper is present in your project.
* The Gradle Wrapper is available in your project.

.Procedure

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ image::git/git-config-identity.png[Configuring Git identity,link="../_images/git

* To configure Git identity using the command line, open the terminal of the Che-Theia container.
+
. Navigate to the *My Workspace* view, and open *Plugins > theia-ide... > New terminal*:
. Navigate to the *My Workspace* view, and open *Plugins > theia-ide > New terminal*:
+
image::git/terminal-git-command.png[]
+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@
[id="overriding-devfile-values-using-factory-parameters_{context}"]
= Overriding devfile values using factory parameters

Values in the following sections of a remote devfile can be overridden using specially constructed additional factory parameters:
You can override values in the following sections of a remote devfile:

* `apiVersion`
* `metadata`
* `projects`
* `attributes`

You can override the values by using additional factory parameters.

.Prerequisites

* A running instance of {prod}. To install an instance of {prod}, see xref:installation-guide:installing-che.adoc[].
* A publicly accessible standalone `devfile.yaml` file. See xref:authoring-devfiles-version-2.adoc[] for detailed information about creating and using devfiles.
* A running instance of {prod}. See xref:installation-guide:installing-che.adoc[].
* A publicly accessible stand-alone `devfile.yaml` file. See xref:authoring-devfiles-version-2.adoc[] for information about creating and using devfiles.

.Procedure

Expand Down Expand Up @@ -72,7 +74,7 @@ projects:
...
----
To add or override source `branch` value, use the following factory URL:
To add or override the source `branch` value, use the following factory URL:
[subs="+quotes"]
----
Expand Down Expand Up @@ -113,7 +115,7 @@ projects:
...
----
To add or override `persistVolumes` attribute value, use the following factory URL:
To add or override the `persistVolumes` attribute value, use the following factory URL:
[subs="+quotes"]
----
Expand All @@ -135,7 +137,7 @@ projects:
...
----
When overriding attributes, everything that follows the `attributes` keyword is interpreted as an attribute name, so a user can use dot-separated names:
When overriding attributes, everything that follows the `attributes` keyword is interpreted as an attribute name. You can use dot-separated names:
[subs="+quotes"]
----
Expand All @@ -158,4 +160,4 @@ projects:

.Verification steps

. Using {prod-short} Dashboard, move to the *Devfile* tab of the newly created workspace and check its content.
. In {prod-short} Dashboard, navigate to the *Devfile* tab of the newly created workspace and inspect the content.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Installing offline::
+
_Role: Administrator_
+
Components of {prod-short} are OCI images. Setup {prod} in offline mode (air-gap scenario) to allow for reducing any extra download at runtime as everything needs to be present from the beginning. See xref:installation-guide:installing-che-in-a-restricted-environment.adoc[].
Components of {prod-short} are OCI images. Set up {prod} in offline mode (air-gap scenario) to reduce any extra download at runtime because everything needs to be available from the beginning. See xref:installation-guide:installing-che-in-a-restricted-environment.adoc[].

Optimizing workspace plug-ins::
+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

The npm (Node Package Manager) package manager for the JavaScript programming language is configured using the `npm config` command, by writing values to the `.npmrc` files. However, configuration values can also be set using the environment variables beginning with `NPM_CONFIG_`.

The Javascript/Typescript plug-in used in {prod} does not download any artifacts. It is enough to configure npm in the dev-machine component.
The Typescript plug-in used in {prod} does not download any artifacts. It is enough to configure npm in the dev-machine component.

Use the following environment variables for configuration:

Expand Down
20 changes: 10 additions & 10 deletions modules/end-user-guide/partials/ref_che-theia-plug-in-metadata.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Che-Theia plug-in metadata is information about individual plug-ins for the plug

The Che-Theia plug-in metadata, for each specific plug-in, is defined in a `meta.yaml` file. These files can be referenced in a devfile to include Che-Theia plug-ins in a workspace.

Here is an overview of all fields that can be available in plugin meta YAML files. This document represents the link:https://github.com/eclipse-che/che-plugin-registry#user-content-plugin-meta-yaml-structure[plugin meta YAML structure (version 3)].
Here is an overview of all fields that can be available in plug-in meta YAML files. This document represents the link:https://github.com/eclipse-che/che-plugin-registry#user-content-plugin-meta-yaml-structure[plugin meta YAML structure (version 3)].

ifeval::["{project-context}" == "che"]
In the link:https://github.com/eclipse-che/che-plugin-registry/tree/{prod-ver-patch}[{prod-short} plug-ins registry repository], the `che-theia-plugins.yaml` contains a list of all Che-Theia plug-ins in the registry. Build the registry container image to generate the `meta.yaml` file.
Expand All @@ -29,29 +29,29 @@ endif::[]
|===
|`apiVersion`| Version 2 and higher where version is 1 supported for backwards compatibility
|`category`| Available: Category must be set to one of the followings: `Editor`, `Debugger`, `Formatter`, `Language`, `Linter`, `Snippet`, `Theme`, `Other`
|`description`| Short description of plugin's purpose
|`description`| Short description of the plug-in purpose
|`displayName`| Name shown in user dashboard
|`deprecate` | Optional; section for deprecating plugins in favor of others
|`deprecate` | Optional; section for deprecating plug-ins in favor of others

* autoMigrate - boolean

* migrateTo - new `org/plugin-id/version`, for example `redhat/vscode-apache-camel/latest`
|`firstPublicationDate`| Not required to be present in YAML, as if not present, it will be generated during Plugin Registry dockerimage build
|`latestUpdateDate`| Not required to be present in YAML, as if not present, it will be generated during Plugin Registry dockerimage build
|`firstPublicationDate`| Not required to be in YAML; if it is not included, the plug-in registry dockerimage build generates it
|`latestUpdateDate`| Not required to be in YAML; if it is not included, the plug-in registry dockerimage build generates it
|`icon`| URL of an SVG or PNG icon
|`name`| Name (no spaces allowed), must match [-a-z0-9]
|`publisher`| Name of the publisher, must match [-a-z0-9]
|`repository`| URL for plugin repository, for example, GitHub
|`title`| Plugin title (long)
|`repository`| URL for plug-in repository, for example, GitHub
|`title`| Plug-in title (long)
|`type`| `Che Plugin`, `VS Code extension`
|`version`| Version information, for example: 7.5.1, [-.a-z0-9]
|`spec`| Specifications (see below)
|===

.`spec` attributes
|===
|`endpoints` | Optional; plugin endpoint.
|`containers`| Optional; sidecar containers for the plug-in. Che Plugin and VS Code extension supports only one container
|`endpoints` | Optional; plug-in endpoint
|`containers`| Optional; sidecar containers for the plug-in. Che Plug-in and VS Code extension supports only one container
|`initContainers`| Optional; sidecar init containers for the plug-in
|`workspaceEnv`| Optional; environment variables for the workspace
|`extensions`| Optional; Attribute that is required for VS Code and Che-Theia plug-ins in a form list of URLs to plug-in artefacts, such as .vsix or .theia files
Expand All @@ -72,7 +72,7 @@ endif::[]
|`ports` | Ports exposed by the plug-in (on the container)
|`commands` | Development commands available to the plug-in container
|`mountSources` | Boolean flag to bound volume with source code `/projects` to the plug-in container
|`initContainers` | Optional; init containers for sidecar plugin
|`initContainers` | Optional; init containers for sidecar plug-in
|`Lifecycle` | Container lifecycle hooks. See link:https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/[`lifecycle` description]
|===

Expand Down
8 changes: 4 additions & 4 deletions modules/end-user-guide/partials/ref_devfile-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ components:

The sources is mounted on a location stored in the `CHE_PROJECTS_ROOT` environment variable that is made available in the running container of the image. This location defaults to `/projects`.

=== Container Entrypoint
=== Container entrypoint

The `command` attribute of the `dockerimage` along with other arguments, is used to modify the `entrypoint` command of the container created from the image. In {prod} the container is needed to run indefinitely so that you can connect to it and execute arbitrary commands in it at any time. Because the availability of the `sleep` command and the support for the `infinity` argument for it is different and depends on the base image used in the particular images, {prod-short} cannot insert this behavior automatically on its own. However, you can take advantage of this feature to, for example, start necessary servers with modified configurations, and so on.

Expand Down Expand Up @@ -639,7 +639,7 @@ the {platforms-namespace} to which the workspace is deployed.
* `CHE_MACHINE_AUTH_SIGNATURE__ALGORITHM`: The encryption algorithm used in the secured communication with the {prod-short} server.


A devfiles may only need the `CHE_PROJECTS_ROOT` environment variable to locate the cloned projects in the component's container. More advanced devfiles might use the `CHE_WORKSPACE_LOGS_ROOT__DIR` environment variable to read the logs (for example as part of a devfile command). The environment variables used to securely access the {prod-short} server are out of scope for devfiles and are present only for advanced use cases, which are handled by the {prod-short} plug-ins.
A devfile might need the `CHE_PROJECTS_ROOT` environment variable to locate the cloned projects in the component's container. More advanced devfiles might use the `CHE_WORKSPACE_LOGS_ROOT__DIR` environment variable to read the logs. The environment variables for securely accessing the {prod-short} server are out of scope for devfiles. These variables are available only to {prod-short} plug-ins, which use them for advanced use cases.

[id="endpoints_{context}"]
=== Endpoints
Expand Down Expand Up @@ -901,7 +901,7 @@ components:
app: postgres
----

Additionally, it is also possible to modify the entrypoints (command and arguments) of the containers present in the resource list.
Additionally, you can modify the entrypoints (command and arguments) of the containers in the resource list.

//For details of the advanced use case, see xref:configuring-a-workspace-with-dashboard.adoc#defining-specific-container-images_configuring-a-workspace-with-dashboard[Defining specific container images].

Expand Down Expand Up @@ -979,7 +979,7 @@ commands:

=== Editor-specific commands

If the editor in the workspace supports it, the devfile can specify additional configuration in the editor-specific format. This is dependent on the integration code present in the workspace editor itself and so is not a generic mechanism. However, the default Che-Theia editor within {prod} is equipped to understand the `tasks.json` and `launch.json` files provided in the devfile.
If the editor in the workspace supports it, the devfile can specify additional configuration in the editor-specific format. This is dependent on the integration code in the workspace editor itself and so is not a generic mechanism. However, the default Che-Theia editor within {prod} is equipped to understand the `tasks.json` and `launch.json` files provided in the devfile.

[source,yaml]
----
Expand Down
2 changes: 1 addition & 1 deletion modules/hosted-che/partials/ref_about-hosted-che.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
= About Eclipse Che hosted by Red Hat

Eclipse Che hosted by Red Hat is an open-source product based on link:https://www.eclipse.org/che/[Eclipse {prod-short}] that is running on link:https://www.openshift.com/products/dedicated/[OpenShift Dedicated].
The new service is part of the link:https://developers.redhat.com/developer-sandbox[Developer Sandbox for Red Hat OpenShift] offering, and is using link:https://developers.redhat.com/products/codeready-workspaces[CodeReady Workspaces], which is built upon Eclipse Che and is optimized for Red Hat OpenShift and Red Hat Linux.
The new service is part of the link:https://developers.redhat.com/developer-sandbox[Developer Sandbox for Red Hat OpenShift] offering, and is using link:https://developers.redhat.com/products/codeready-workspaces/overview[CodeReady Workspaces], which is built upon Eclipse Che and is optimized for Red Hat OpenShift and Red Hat Linux.

== Differences between Eclipse Che and CodeReady Workspaces

Expand Down

0 comments on commit 61ae4f3

Please sign in to comment.