Skip to content

Commit e6acafb

Browse files
committed
Fix broken links in MTV 7.1 Rules development guide
1 parent 5c9bfbf commit e6acafb

7 files changed

+39
-42
lines changed

docs/topics/create-first-yaml-rule.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// * docs/rules-development-guide/master.adoc
44

5-
:_content-type: PROCEDURE
5+
:_mod-docs-content-type: PROCEDURE
66
[id="create-first-yaml-rule_{context}"]
77
= Creating your first YAML rule
88

@@ -13,7 +13,7 @@ In this example, you will create a rule to discover instances where an applicati
1313
[id="creating-yaml-file-for-the-rule_{context}"]
1414
== Creating a YAML file for the rule
1515

16-
Create a YAML file for your first rule.
16+
* Create a YAML file for your first rule.
1717

1818
[options="nowrap",subs="attributes+"]
1919
----
@@ -82,7 +82,7 @@ when(condition)
8282

8383
.Procedure
8484

85-
. In the `rule.yaml` file you created, paste the following contents:
85+
* In the `rule.yaml` file you created, paste the following contents:
8686
+
8787
[options="nowrap",subs="attributes+"]
8888
----
@@ -97,10 +97,10 @@ when(condition)
9797
- <LINKS> <7>
9898
----
9999
+
100-
<1> Unique ID for your rule, for instance, `jboss5-web-class-loading`.
100+
<1> Unique ID for your rule. For example, `jboss5-web-class-loading`.
101101
<2> Text description of the rule.
102102
<3> Complete the `when` block specifying one or more conditions:
103-
.. Use the `builtin` providers XML capability because this rule checks for a match in an XML file.
103+
.. Use the `builtin` provider's XML capability because this rule checks for a match in an XML file.
104104
.. To match on the `class-loading` element that is a child of `jboss-web`, use the XPath expression `jboss-web/web-loading` as an XML query. In this case, you need just one condition:
105105
+
106106
[options="nowrap",subs="attributes+"]
@@ -146,7 +146,7 @@ The rule is now complete and looks similar to the following:
146146
== Installing the rule
147147

148148
.Procedure
149-
. Point the CLI to the rule file you created :
149+
* Point the CLI to the rule file you created :
150150
+
151151
[options="nowrap",subs="attributes+"]
152152
----

docs/topics/create-yaml-rule.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// * docs/rules-development-guide/master.adoc
44

5-
:_content-type: PROCEDURE
5+
:_mod-docs-content-type: PROCEDURE
66
[id="create-yaml-rule_{context}"]
77
= Creating a YAML rule
88

@@ -125,7 +125,7 @@ The table below lists all available providers, their capabilities, and their fie
125125
|Yes
126126
|Finds files with names matching this pattern
127127
|`hasTags`
128-
3+>|This is an inline list of string tags. See _Tag Action_ for details on tag format.
128+
3+^| This is an inline list of string tags. See *Tag Actions* in xref:yaml-rule-actions_{context}[Rule Actions] for details on tag format.
129129

130130
.5+.^|`go`
131131
|`referenced`

docs/topics/review-existing-rules.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// * docs/rules-development-guide/master.adoc
44

5-
:_content-type: PROCEDURE
5+
:_mod-docs-content-type: PROCEDURE
66
[id="review-existing-rules_{context}"]
77
= Reviewing existing {ProductShortName} XML rules
88

docs/topics/rules-important-links.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
//
33
// * docs/rules-development-guide/master.adoc
44

5-
:_content-type: REFERENCE
5+
:_mod-docs-content-type: REFERENCE
66
[id="rules-important-links_{context}"]
77
= Additional resources
88

9-
* {ProductShortName} Javadoc: http://windup.github.io/windup/docs/latest/javadoc
9+
// * {ProductShortName} Javadocs: {LinkAPI}reporting/api/src/main/java
1010
* {ProductShortName} Jira issue tracker: {JiraWindupURL}
1111
* {ProductShortName} mailing list: [email protected]

docs/topics/templates/document-attributes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ endif::[]
105105
:ProductDocVscGuideURL: https://access.redhat.com/documentation/en-us/{DocInfoProductNameURL}/{DocInfoProductNumber}/html-single/visual_studio_code_extension_guide
106106
:ProductDocIntelliJGuideURL: https://access.redhat.com/documentation/en-us/{DocInfoProductNameURL}/{DocInfoProductNumber}/html-single/intellij_idea_plugin_guide
107107
:OpenShiftDocsURL: https://docs.openshift.com/container-platform/{OpenShiftProductNumber}
108-
:LinkAPI: http://windup.github.io/windup/docs/latest/javadoc/
108+
:LinkAPI: https://github.com/windup/windup/blob/master/
109109

110110
//Links to MTA and MTR Jira project pages:
111111
:JiraMTRURL: https://issues.redhat.com/projects/WINDUP

docs/topics/testing-rules.adoc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// * docs/rules-development-guide/master.adoc
44

5-
:_content-type: REFERENCE
5+
:_mod-docs-content-type: REFERENCE
66
[id="testing-rules_{context}"]
77
= Testing XML rules
88

@@ -17,7 +17,7 @@ Test rules are created using a process similar to the process for creating an XM
1717
* Test rules should use the `.windup.test.xml` extension.
1818
* These rules use the structure defined in the Test XML Rule Structure.
1919

20-
In addition, it is recommended to create a test rule that follows the name of the rule it tests. For instance, if a rule were created with a filename of `proprietary-rule.{LC_PSN}.xml`, the test rule should be called `proprietary-rule.windup.test.xml`.
20+
In addition, it is recommended to create a test rule that follows the name of the rule it tests. For example, if a rule were created with a filename of `proprietary-rule.{LC_PSN}.xml`, the test rule should be called `proprietary-rule.windup.test.xml`.
2121

2222
[id="test-xml-rule-structure_{context}"]
2323
=== Test XML rule structure
@@ -99,7 +99,7 @@ The `<not>` element has no unique attributes or child elements.
9999
[discrete]
100100
===== Summary
101101

102-
The `<iterable-filter>` element counts the number of times a condition is verified. For additional information, see the link:{LinkAPI}org/jboss/windup/rules/general/IterableFilter.html[IterableFilter] class.
102+
The `<iterable-filter>` element counts the number of times a condition is verified. For additional information, see the link:{LinkAPI}rules-base/api/src/main/java/org/jboss/windup/rules/general/IterableFilter.java[IterableFilter] class.
103103

104104
The following is an example that looks for four instances of the specified message.
105105

@@ -158,7 +158,7 @@ The `<iterable-filter>` element has no unique child elements.
158158
[id="classification_exists_syntax_{context}"]
159159
==== <classification-exists> syntax
160160

161-
The `<classification-exists>` element determines if a specific classification title has been included in the analysis. For additional information, see the link:{LinkAPI}org/jboss/windup/reporting/config/ClassificationExists.html[ClassificationExists] class.
161+
The `<classification-exists>` element determines if a specific classification title has been included in the analysis. For additional information, see the link:{LinkAPI}reporting/api/src/main/java/org/jboss/windup/reporting/config/ClassificationExists.java[ClassificationExists] class.
162162

163163
[IMPORTANT]
164164
====
@@ -226,7 +226,8 @@ The `<classification-exists>` has no unique child elements.
226226
[id="hint-exists-syntax_{context}"]
227227
==== <hint-exists> syntax
228228

229-
The `<hint-exists>` element determines if a specific hint has been included in the analysis. It searches for any instances of the defined message, and is typically used to search for the beginning or a specific class inside of a `<message>` element. For additional information, see the link:{LinkAPI}org/jboss/windup/reporting/config/HintExists.html[HintExists] class.
229+
The `<hint-exists>` element determines if a specific hint has been included in the analysis. It searches for any instances of the defined message, and is typically used to search for the beginning or a specific class inside of a `<message>` element. For additional information, see the link:{LinkAPI}reporting/api/src/main/java/org/jboss/windup/reporting/config/HintExists.java[HintExists] class.
230+
230231

231232
[IMPORTANT]
232233
====

docs/topics/yaml-rule-structure-syntax.adoc

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// * docs/rules-development-guide/master.adoc
44

5-
:_content-type: REFERENCE
5+
:_mod-docs-content-type: REFERENCE
66
[id="yaml-rule-structure-syntax_{context}"]
77
= YAML rule structure and syntax
88

@@ -31,11 +31,8 @@ effort: 1 <3>
3131
category: mandatory <4>
3232
----
3333
<1> The ID must be unique within the ruleset to which the rule belongs.
34-
3534
<2> See below for a description of the label format.
36-
3735
<3> `effort` is an integer value that indicates the level of effort needed to fix this issue.
38-
3936
<4> `category` describes the severity of the issue for migration. The value can be either `mandatory`, `optional` or `potential`. For a description of these categories, see xref:yaml-rule-categories_{context}[Rule categories].
4037

4138
[id="yaml-rule-labels_{context}"]
@@ -118,7 +115,7 @@ _Examples:_
118115

119116
.Dependency labels
120117

121-
The analyzer engine adds labels to dependencies. These labels provide additional information about a dependency, such as its programming language and whether the dependency is open-source or internal.
118+
The analyzer engine adds labels to dependencies. These labels provide additional information about a dependency, such as its programming language and whether the dependency is open source or internal.
122119

123120
Currently, the analyzer adds the following labels to dependencies:
124121

@@ -133,9 +130,9 @@ labels:
133130

134131
The analyzer CLI accepts the `--dep-label-selector` option, which allows filtering-in or filtering-out incidents generated from a dependency by their labels.
135132

136-
For example, the analyzer adds a `konveyor.io/dep-source` label to dependencies with a value that indicates whether the dependency is a known open-source dependency.
133+
For example, the analyzer adds a `konveyor.io/dep-source` label to dependencies with a value that indicates whether the dependency is a known open source dependency.
137134

138-
To exclude incidents for all such open-source dependencies, you can use `--dep-label-selector` as follows:
135+
To exclude incidents for all such open source dependencies, you can use `--dep-label-selector` as follows:
139136

140137
`konveyor-analyzer ... --dep-label-selector !konveyor.io/dep-source=open-source`
141138

@@ -233,7 +230,7 @@ when:
233230

234231
==== Provider conditions
235232

236-
{ProductShortName} supports multi-language source code analysis. Searching for a specific language in the source code is enabled using the `provider` condition. This condition defines a search query for a specific language provider. The `provider` condition also specifies which of the provider's "capabilities" to use for analyzing the code.
233+
{ProductShortName} supports multi-language source code analysis. Searching for a specific language in the source code is enabled using the `provider` condition. This condition defines a search query for a specific language provider. The `provider` condition also specifies which of the provider's "capabilities" to use for analyzing the code.
237234

238235
The `provider` condition has the form `<provider_name>.<capability>`:
239236

@@ -320,12 +317,12 @@ The `hasTags` capability enables the provider to query application tags. It quer
320317
[source,terminal]
321318
----
322319
when:
323-
# when more than one tags are given, a logical AND is implied
320+
# when more than one tag is given, a logical AND is implied
324321
hasTags: <1>
325322
- "tag1"
326323
- "tag2"
327324
----
328-
<1> When more than one tags is given, a logical AND is implied.
325+
<1> When more than one tag is given, a logical AND is implied.
329326

330327
===== `java` provider
331328

@@ -334,7 +331,7 @@ The `java` provider analyzes Java source code.
334331
This provider has the following capabilities:
335332

336333
* `referenced`
337-
* `dependency`.
334+
* `dependency`
338335

339336
.`referenced`
340337

@@ -347,8 +344,8 @@ when:
347344
pattern: "<pattern>" <1>
348345
location: "<location>" <2>
349346
----
350-
<1> A RegEx pattern to match, for example, `org.kubernetes.*`
351-
<2> Specifies the exact location where the pattern needs to be matched, for example, `IMPORT`
347+
<1> A regular expression pattern to match, for example, `org.kubernetes.*`.
348+
<2> Specifies the exact location where the pattern needs to be matched, for example, `IMPORT`.
352349

353350
The supported locations are the following:
354351

@@ -375,13 +372,13 @@ when:
375372
upperbound: "<version_string>" <2>
376373
lowerbound: "<version_string>" <3>
377374
----
378-
<1> Name of the dependency to search for
379-
<2> Upper bound on the version of the dependency
380-
<3> Lower bound on the version of the dependency
375+
<1> Name of the dependency to search for.
376+
<2> Upper bound on the version of the dependency.
377+
<3> Lower bound on the version of the dependency.
381378

382379
===== `go` provider
383380

384-
The `go` provider analyzes Go source code. This provider's capabilities are `referenced` and `dependency`.
381+
The `go` provider analyzes Go source code. This provider's capabilities are `referenced` and `dependency`.
385382

386383
.`referenced`
387384

@@ -405,13 +402,13 @@ when:
405402
upperbound: "<version_string>" <2>
406403
lowerbound: "<version_string>" <3>
407404
----
408-
<1> Name of the dependency to search for
409-
<2> Upper bound on the version of the dependency
410-
<3> Lower bound on the version of the dependency
405+
<1> Name of the dependency to search for.
406+
<2> Upper bound on the version of the dependency.
407+
<3> Lower bound on the version of the dependency.
411408

412409
==== Custom variables
413410

414-
Provider conditions can have associated custom variables. You can use custom variables to capture relevant information from the matched line in the source code. The values of these variables are interpolated with data matched in the source code. These values can be used to generate detailed templated messages in a rules action (see xref:yaml-rule-actions_{context}[Message actions]). They can be added to a rule in the `customVariables` field:
411+
Provider conditions can have associated custom variables. You can use custom variables to capture relevant information from the matched line in the source code. The values of these variables are interpolated with data matched in the source code. These values can be used to generate detailed templated messages in a rule's action (see xref:yaml-rule-actions_{context}[Message actions]). They can be added to a rule in the `customVariables` field:
415412

416413
[source,terminal]
417414
----
@@ -426,9 +423,9 @@ Provider conditions can have associated custom variables. You can use custom var
426423
pattern: com.example.apps.GenericClass.get
427424
428425
----
429-
<1> `pattern`: A RegEx pattern that is matched on the source code line when a match is found
430-
<2> `name`: The name of the variable that can be used in templates
431-
<3> `message`: A template for a message using a custom variable
426+
<1> `pattern`: A regular expression pattern that is matched on the source code line when a match is found.
427+
<2> `name`: The name of the variable that can be used in templates.
428+
<3> `message`: A template for a message using a custom variable.
432429

433430

434431
=== Logical conditions
@@ -521,5 +518,4 @@ labels: <2>
521518
- key=val
522519
----
523520
<1> The name must be unique within the provided rulesets.
524-
525521
<2> Ruleset labels are inherited by all rules that belong to the ruleset.

0 commit comments

Comments
 (0)