- Understanding Che Documentation ecosystem
- The documentation workflow
- Editing, submitting and reviewing new content
- Building and validating the documentation using Che
- Creating a new topic using Che
- Adding images
- Using special characters
- Building and validating Documentation on a local environment using the
che-docs
container - Getting support
-
See the Code of conduct.
-
Use the following editorial resources:
-
Minimalism in writing.
-
IBM Style Guide.
-
Guidelines from the Modular Documentation Initiative.
TipFor Antora, a module is a collection of content in a component version. This project is referring to Modular Documentation modules as topics. To understand the nature of topics, see the Appendix A: Modular Documentation Terms and Definitions.
-
-
Use the Git Forking Workflow.
-
Eclipse Che hosted by Red Hat is the recommended IDE to edit and builds the content.
-
The relevant tools for editing, validation, and publication workflows are built in the
che-docs
container.
-
Contributor submits a code pull request in one of the Che repositories with a
status/doc-impact
label. -
The author of the code pull request or the reviewer ensures the code pull request contains a reference to a documentation pull request for the
master
branch of theche-docs
repository:-
The author of the code pull request or the reviewer provides a complete documentation pull request that can then be merged by the members of the documentation team without further editing.
-
Or, the author of the code pull request or the reviewer provides at least an initial draft of the content and reaches out to the documentation-team members for assistance with editing, so that the documentation pull request can be finalized.
-
Or, the author of the code pull request or the reviewer reaches out to the members of the documentation team and work with them on submitting a documentation pull request.
-
-
Review the documentation pull request. See Editing, submitting and reviewing new content.
-
Merge the code pull request into the
che
repository, for next milestonex.y.z
. -
The documentation pull request, validated, stays in the queue in the
che-docs
repository. -
Release
che
milestonex.y.z
. -
Merge the documentation content for milestone
x.y.z
into themaster
branch of theche-docs
repository. -
Publish the
che-docs
master
branch to https://www.eclipse.org/che/docs.
-
A fork of the https://github.com/eclipse/che-docs/ project, accessible at the following URL, where
<organization>
is your GitHub organization or username:https://github.com/<organization/che-docs/
. See Fork a repository.
-
Open a che-docs workspace running on Eclipse Che hosted by Red Hat:
https://workspaces.openshift.com/f?url=https://github.com/<organization>/che-docs/
. -
Create a branch
<branch-name>
for your work. -
Edit the content.
-
Build and validate the new content. See: Building and validating the documentation using Che.
-
To merge the content, open a pull request. Submit the pull request against the default
master
branch. Specify as much information as possible in the pull request template. -
When you intend to review a pull request, click Assignees in the GitHub pull request view. This indicates you are the reviewer and avoids duplication of efforts.
-
To review the pull request:
-
See the code review checklist.
-
For documentation updates containing testable steps, the documentation pull request needs to have the
team/che-qe
label set and get reviewed by both the documentation team and the Che QA team. -
For documentation updates not containing testable steps, the documentation pull request needs to get reviewed by the documentation team.
-
For more information, see Building and validating the documentation using Che.
-
-
The continuous integration process is publishing content once merged in the
master
publication branch.
-
Navigate to the publication URL of Eclipse Che Documentation: https://www.eclipse.org/che/docs/ and search for your changes.
To build the Eclipse Che documentation from a Che workspace, follow the steps below.
-
Open a Che workspace containing a fork of the documentation. See Editing, submitting and reviewing new content.
-
To build the documentation and start the preview server: open My Workspace / User Runtimes / che-docs / Start preview server.
-
To navigate to the preview, open Preview.
-
To validate the links: open User Runtimes / che-docs / Validate links.
-
To validate the language changes: open My Workspace / User Runtimes / che-docs / Validate language changes.
-
To validate the language of the currently open files, look at the Problems tab in the Bottom Panel. To toggle the view of this tab use the View > Problems menu entry.
-
To validate the compliance of an AsciiDoc file with Modular Documentation guidelines:
-
In the Explorer, right-click on file to validate and select Copy Path.
-
Open My Workspace / User Runtimes / che-docs / Validate Modular Doc.
-
In the Validate Modular Doc panel in the Bottom Panel, paste the path of the file to validate.
-
The tool
test-adoc
tests the file and produces some output.
-
To create a new topic using a Che workspace:
-
Open My Workspace.
-
Open User Runtimes / tools / Create a new topic.
-
Choose the target guide among the available guides:
-
overview
: introductory section -
end-user-guide
: documentation for developers: navigating dashboard, working in Che-Theia, and so on -
installation-guide
: installation guides -
administration-guide
: documentation for administrators of the clusters: configuring Che on a cluster, managing users, monitoring resources, security and data recovery -
contributor-guide
: how to develop plug-ins for Che, add new debuggers, languages, and so on -
extensions
: documentation about extensions for Che, such as Eclipse Che4z, OpenShift Connector.
-
-
Choose the topic nature:
-
assembly
-
concept
-
procedure
-
reference
-
-
Enter the title for the new topic.
-
The file is generated in the
src/main/pages-che-7/<guide_name>/
directory and the script displays related information.
-
Add images to one of the subdirectories in the
src/main/che/docs/images/
directory. Create a new subdirectory if none of the existing ones fits the new image. -
To publish an image, use the following syntax:
image::directory/img.png[alt text]
Images are sized automatically. You can provide a URL to a full-size image, as well as a caption and alt text:
.Click to view a larger image [link=che/docs/images/devel/js_flow.png image::devel/js_flow.png[Alt text]
Do not post too many images unless it is absolutely necessary. Animated .gif
images are preferred, especially when explaining how to use complex UI features.
-
To prevent special characters from being interpreted as formatting mark-up, use pass-through macros.
Example 1. To escape underscores, asterisks, or backticks, use:pass:[VARIABLE_NAME__WITH__UNDERSCORES]
This section describes how to build and validate the documentation on a local environment.
Warning
|
This is not the preferred method. For the supported method, see: Building and validating the documentation using Che. |
-
Open a terminal into the project directory, and build the documentation using and instance of the
che-docs
container:$ ./tools/runnerpreview.sh
-
Navigate to
localhost:4000
in your browser. -
Open a second terminal, and attach to the running
che-docs
container. Run all following steps from this context.$ podman exec -ti che-docs bash
-
To validate links, run:
$ htmltest
-
To validate language on changed files, run:
$ ./tools/validate_language_changes.sh
-
To create a new topic using templates, run following command:
$ ./tools/newtopic.sh
-
To validate the compliance of an AsciiDoc file with Modular Documentation standards, run:
$ ./tools/test-adoc.sh <PATH_TO_THE_FILE>
-
Join the public eclipse-che Mattermost channel to talk to the community and contributors.