Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit a45ff2b

Browse files
committed
Fix asciidoc ref warnings by escaping
1 parent db64ef1 commit a45ff2b

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

docs/modules/ROOT/pages/ref/actionfile/action-guide.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ actions:
2828
text: Hello {{user-name}} on {{os-name}}.
2929
```
3030

31-
The `{{user-name}}` and `{{os-name}}` variables are replaced with actual values by the Handlebars template engine.
31+
The `{\{user-name}}` and `{\{os-name}}` variables are replaced with actual values by the Handlebars template engine.
3232
Command line options passed to user-defined command are exposed as variables to be used by the template engine.
3333

3434
For more information on predefined template engine variables, see the xref:ref/usercommand/user-command-guide.adoc#_template_engine[Template Engine] section.

docs/modules/ROOT/pages/ref/actionfile/roles-guide.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ The generated file contains:
126126
Hello Mondo on Linux. Italian
127127
----
128128

129-
The value of `{{greeting}}` comes from the role variable because it was not provided as a command-line option.
129+
The value of `{\{greeting}}` comes from the role variable because it was not provided as a command-line option.
130130

131-
The `{{language}}` variable was not a command line option, but it is available to use with Handlebars expressions.
131+
The `{\{language}}` variable was not a command line option, but it is available to use with Handlebars expressions.
132132

133133
Now we can remove the generated file. in the interactive shell, we run `. ! rm hello.txt` and pass in the `greeting` command line option:
134134

docs/modules/ROOT/pages/ref/usercommand/user-command-guide.adoc

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -192,27 +192,27 @@ In the previous example, the `{{capitalizeFirst feature}}` template variable is
192192

193193
By default, several system variables are exposed to the template engine:
194194

195-
* `System.getProperties()` is available as `{{system-properties}}`
196-
* `System.getenv()` is available as `{{system-environment}}`
197-
* The current time (defined by `new Date().toString()`) is available as `{{now}}`
198-
* The `java.io.tmpdir` system property is available as `{{tmp-dir}}`
199-
* The `file.separator` system property is available as `{{file-separator}}`* The `os.name` system property is available as `{{os-name}}`
200-
* The `user.name` system property is available as `{{user.name}}`
195+
* `System.getProperties()` is available as `{\{system-properties}}`
196+
* `System.getenv()` is available as `{\{system-environment}}`
197+
* The current time (defined by `new Date().toString()`) is available as `{\{now}}`
198+
* The `java.io.tmpdir` system property is available as `{\{tmp-dir}}`
199+
* The `file.separator` system property is available as `{\{file-separator}}`* The `os.name` system property is available as `{\{os-name}}`
200+
* The `user.name` system property is available as `{\{user.name}}`
201201

202-
The Java package name where the Spring Boot main application class resides is available as `{{root-package}}`.
202+
The Java package name where the Spring Boot main application class resides is available as `{\{root-package}}`.
203203

204-
The directory where the Spring Boot main application class resides is available as `{{root-package-dir}}`.
204+
The directory where the Spring Boot main application class resides is available as `{\{root-package-dir}}`.
205205

206206
The Maven model also exposes several variables:
207207

208-
* `{{artifact-id}}`
209-
* `{{artifact-version}}`
210-
* `{{artifact-path}}`
211-
* `{{project-name}}`
212-
* `{{project-descriptoin}}`
213-
* `{{maven-model}` - This is the https://maven.apache.org/ref/3.9.0/maven-model/apidocs/org/apache/maven/model/Model.html[org.apache.maven.model.Model] class.
214-
* `{{maven-properties}}` - This is a Java properties object that has, as keys, the values of each entry in the POM's `<properties>` section.
215-
* `{{java-version}}` - This looks for a Maven Property named `java.version` in the POM. If the value is `1.8`, it is converted to a value of `8`.
208+
* `{\{artifact-id}}`
209+
* `{\{artifact-version}}`
210+
* `{\{artifact-path}}`
211+
* `{\{project-name}}`
212+
* `{\{project-descriptoin}}`
213+
* `{\{maven-model}}` - This is the https://maven.apache.org/ref/3.9.0/maven-model/apidocs/org/apache/maven/model/Model.html[org.apache.maven.model.Model] class.
214+
* `{\{maven-properties}}` - This is a Java properties object that has, as keys, the values of each entry in the POM's `<properties>` section.
215+
* `{\{java-version}}` - This looks for a Maven Property named `java.version` in the POM. If the value is `1.8`, it is converted to a value of `8`.
216216

217217
== Creating a New User-defined Command
218218

0 commit comments

Comments
 (0)