You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,9 +95,29 @@ The `newdoc` tool generates pre-populated module and assembly files formatted wi
95
95
Alternatively, you can use the `--include-in` option when creating the assembly to generate modules and include them automatically, in a single step. See the description in the *Options* section.
96
96
97
97
98
+
## Validating a file for Red Hat requirements
98
99
99
-
## Options
100
+
You can use the `--validate` (`-l`) option to check an existing file for Red Hat publishing requirements. For example:
101
+
102
+
```
103
+
$ newdoc --validate modules/empty-file.adoc
100
104
105
+
💾 File: empty-file.adoc
106
+
🔴 Error: The file has no title or headings.
107
+
🔴 Error: The file is missing an ID.
108
+
🔶 Warning: The file is missing the _abstract flag. The flag is recommended but not required.
0 commit comments