Skip to content

Commit 1b70b9c

Browse files
Changing text for updating/replacing files (#165)
* 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
1 parent 4072dc6 commit 1b70b9c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/main/java/Functions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ public static String replace(ArrayList<String> listOfLines, String guideName, St
633633

634634
listOfLines.set(i, listOfLines.get(i).replaceAll("#", ""));
635635
listOfLines.set(i, listOfLines.get(i).replaceAll("`", "**"));
636-
listOfLines.set(i, "\n> From the menu of the IDE, select \n **File** > **Open** > " + guideName + "/start/" + listOfLines.get(i).replaceAll("\\*\\*", "") + "\n\n\n");
636+
listOfLines.set(i, "\n> From the menu of the IDE, select \n" + "> **File** > **Open** > " + guideName + "/start/" + listOfLines.get(i).replaceAll("\\*\\*", "") + "\n\n\n");
637637
listOfLines.set(i, listOfLines.get(i).replaceAll("touch ", ""));
638638
codeSnippet(listOfLines, guideName, branch, i + 2, str, hideList);
639639
position = "main";
@@ -660,7 +660,7 @@ public static String update(ArrayList<String> listOfLines, String guideName, Str
660660
}
661661
listOfLines.set(i, listOfLines.get(i).replaceAll("#", ""));
662662
listOfLines.set(i, listOfLines.get(i).replaceAll("`", "**"));
663-
listOfLines.set(i, "\n> From the menu of the IDE, select \n **File** > **Open** > " + guideName + "/start/" + listOfLines.get(i).replaceAll("\\*\\*", "") + "\n\n\n");
663+
listOfLines.set(i, "\n> From the menu of the IDE, select \n" + "> **File** > **Open** > " + guideName + "/start/" + listOfLines.get(i).replaceAll("\\*\\*", "") + "\n\n\n");
664664
listOfLines.set(i, listOfLines.get(i).replaceAll("touch ", ""));
665665
codeSnippet(listOfLines, guideName, branch, i + 2, str, hideList);
666666
position = "main";
@@ -686,7 +686,7 @@ public static String updateFinish(ArrayList<String> listOfLines, String guideNam
686686
}
687687
listOfLines.set(i, listOfLines.get(i).replaceAll("#", ""));
688688
listOfLines.set(i, listOfLines.get(i).replaceAll("`", "**"));
689-
listOfLines.set(i, "\n> From the menu of the IDE, select \n **File** > **Open** > " + guideName + "/finish/" + listOfLines.get(i).replaceAll("\\*\\*", "") + "\n\n\n");
689+
listOfLines.set(i, "\n> From the menu of the IDE, select \n" + "> **File** > **Open** > " + guideName + "/finish/" + listOfLines.get(i).replaceAll("\\*\\*", "") + "\n\n\n");
690690
listOfLines.set(i, listOfLines.get(i).replaceAll("touch ", ""));
691691
codeSnippet(listOfLines, guideName, branch, i + 2, str, hideList);
692692
position = "main";

testing-file.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ To add the MicroProfile Health feature to the server, include the **mpHealth** f
213213
Replace the server configuration file.
214214

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

219219

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

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

520520

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

693693
```
694-
************************************************************************
694+
**************************************************************
695695
* Liberty is running in dev mode.
696696
```
697697

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

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

737737

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

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

0 commit comments

Comments
 (0)