-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #59: Enforce para as first child in step
This fix is needed to avoid non-para elements as a first child in step. Related issue for the styleguide: SUSE/doc-styleguide#84
- Loading branch information
Showing
6 changed files
with
119 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-model href="../../rng/geekodoc5-flat.rnc" type="application/relax-ng-compact-syntax"?> | ||
<article xmlns="http://docbook.org/ns/docbook" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"> | ||
<title>Procedure: para as first child of step</title> | ||
<procedure> | ||
<step> | ||
<screen/> | ||
</step> | ||
</procedure> | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-model href="../../rng/geekodoc5-flat.rnc" type="application/relax-ng-compact-syntax"?> | ||
<procedure xmlns="http://docbook.org/ns/docbook" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.1"> | ||
<title>A procedure with an invalid step</title> | ||
<step> | ||
<informalfigure> | ||
<mediaobject> | ||
<imageobject> | ||
<imagedata fileref="just-an-image.png"/> | ||
</imageobject> | ||
</mediaobject> | ||
</informalfigure> | ||
</step> | ||
</procedure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-model href="../../rng/geekodoc5-flat.rnc" type="application/relax-ng-compact-syntax"?> | ||
<procedure version="5.1" | ||
xmlns="http://docbook.org/ns/docbook" | ||
xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<title>A procedure with valid steps</title> | ||
<step> | ||
<remark>Just a remark before a para</remark> | ||
<para>A</para> | ||
</step> | ||
<step> | ||
<para>B</para> | ||
<remark>A remark after the para</remark> | ||
</step> | ||
<step> | ||
<para>C</para> | ||
<result> | ||
<para/> | ||
</result> | ||
</step> | ||
<step> | ||
<para>D</para> | ||
<screen/> | ||
<substeps> | ||
<step> | ||
<para/> | ||
</step> | ||
<step> | ||
<para/> | ||
</step> | ||
</substeps> | ||
<para></para> | ||
</step> | ||
<step> | ||
<para>E</para> | ||
<itemizedlist> | ||
<listitem> | ||
<para/> | ||
</listitem> | ||
</itemizedlist> | ||
</step> | ||
</procedure> |