Skip to content

Commit

Permalink
Changing text for updating/replacing files (#165)
Browse files Browse the repository at this point in the history
* Fix for multiple line split

* Update testing-file.md

* Changing text layout for replace and create

* Delete guide-getting-started.md

* Update Functions.java

* Fixing weird \

* Update Functions.java
  • Loading branch information
jakub-pomykala authored Jul 26, 2021
1 parent 4072dc6 commit 1b70b9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/main/java/Functions.java
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ public static String replace(ArrayList<String> listOfLines, String guideName, St

listOfLines.set(i, listOfLines.get(i).replaceAll("#", ""));
listOfLines.set(i, listOfLines.get(i).replaceAll("`", "**"));
listOfLines.set(i, "\n> From the menu of the IDE, select \n **File** > **Open** > " + guideName + "/start/" + listOfLines.get(i).replaceAll("\\*\\*", "") + "\n\n\n");
listOfLines.set(i, "\n> From the menu of the IDE, select \n" + "> **File** > **Open** > " + guideName + "/start/" + listOfLines.get(i).replaceAll("\\*\\*", "") + "\n\n\n");
listOfLines.set(i, listOfLines.get(i).replaceAll("touch ", ""));
codeSnippet(listOfLines, guideName, branch, i + 2, str, hideList);
position = "main";
Expand All @@ -660,7 +660,7 @@ public static String update(ArrayList<String> listOfLines, String guideName, Str
}
listOfLines.set(i, listOfLines.get(i).replaceAll("#", ""));
listOfLines.set(i, listOfLines.get(i).replaceAll("`", "**"));
listOfLines.set(i, "\n> From the menu of the IDE, select \n **File** > **Open** > " + guideName + "/start/" + listOfLines.get(i).replaceAll("\\*\\*", "") + "\n\n\n");
listOfLines.set(i, "\n> From the menu of the IDE, select \n" + "> **File** > **Open** > " + guideName + "/start/" + listOfLines.get(i).replaceAll("\\*\\*", "") + "\n\n\n");
listOfLines.set(i, listOfLines.get(i).replaceAll("touch ", ""));
codeSnippet(listOfLines, guideName, branch, i + 2, str, hideList);
position = "main";
Expand All @@ -686,7 +686,7 @@ public static String updateFinish(ArrayList<String> listOfLines, String guideNam
}
listOfLines.set(i, listOfLines.get(i).replaceAll("#", ""));
listOfLines.set(i, listOfLines.get(i).replaceAll("`", "**"));
listOfLines.set(i, "\n> From the menu of the IDE, select \n **File** > **Open** > " + guideName + "/finish/" + listOfLines.get(i).replaceAll("\\*\\*", "") + "\n\n\n");
listOfLines.set(i, "\n> From the menu of the IDE, select \n" + "> **File** > **Open** > " + guideName + "/finish/" + listOfLines.get(i).replaceAll("\\*\\*", "") + "\n\n\n");
listOfLines.set(i, listOfLines.get(i).replaceAll("touch ", ""));
codeSnippet(listOfLines, guideName, branch, i + 2, str, hideList);
position = "main";
Expand Down
10 changes: 5 additions & 5 deletions testing-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ To add the MicroProfile Health feature to the server, include the **mpHealth** f
Replace the server configuration file.

> From the menu of the IDE, select
**File** > **Open** > guide-getting-started/start/src/main/liberty/config/server.xml
> **File** > **Open** > guide-getting-started/start/src/main/liberty/config/server.xml


Expand Down Expand Up @@ -514,7 +514,7 @@ Try enabling detailed logging of the MicroProfile Health feature by adding the
Replace the server configuration file.

> From the menu of the IDE, select
**File** > **Open** > guide-getting-started/start/src/main/liberty/config/server.xml
> **File** > **Open** > guide-getting-started/start/src/main/liberty/config/server.xml


Expand Down Expand Up @@ -691,7 +691,7 @@ mvn liberty:devc -DserverStartTimeout=300
When you see the following message, Open Liberty is ready to run in dev mode:

```
************************************************************************
**************************************************************
* Liberty is running in dev mode.
```

Expand Down Expand Up @@ -731,7 +731,7 @@ Update the **server.xml** file to change the context root from **/** to **/dev**
Replace the server configuration file.

> From the menu of the IDE, select
**File** > **Open** > guide-getting-started/start/src/main/liberty/config/server.xml
> **File** > **Open** > guide-getting-started/start/src/main/liberty/config/server.xml


Expand Down Expand Up @@ -898,4 +898,4 @@ You can also provide feedback or contribute to this guide from GitHub.
<br/>
## **Log out of the session**

Log out of the cloud-hosted guides by selecting **Account** > **Logout** from the Skills Network menu.
Log out of the cloud-hosted guides by selecting **Account** > **Logout** from the Skills Network menu.

0 comments on commit 1b70b9c

Please # to comment.