Use the new section title style in Asciidoctor.
We previous use the section title style like:
Section level 1
===============
Section level 2
---------------
Which have a problem in Asciidoctor that the number of "="s or "-"s must match
the number of characters in the header exactly, as a result it's easy to make
mistakes while changing the titles. Asciidoctor provides a better style like:
= Section level 1
== Section level 2
So we switched to this style.
Also fixed a bug in replace_macros.py, which will not cause any problem in the
old style.
Change-Id: I811dd7238735d98f662767c17086152cd69aea02
diff --git a/Documentation/cmd-test-submit-rule.txt b/Documentation/cmd-test-submit-rule.txt
index d75b21a..a9a1bc4 100644
--- a/Documentation/cmd-test-submit-rule.txt
+++ b/Documentation/cmd-test-submit-rule.txt
@@ -1,12 +1,9 @@
-gerrit test-submit rule
-=======================
+= gerrit test-submit rule
-NAME
-----
+== NAME
gerrit test-submit rule - Test prolog submit rules with a chosen changeset.
-SYNOPSIS
---------
+== SYNOPSIS
--
'ssh' -p <port> <host> 'gerrit test-submit rule'
[-s]
@@ -14,24 +11,20 @@
CHANGE
--
-DESCRIPTION
------------
+== DESCRIPTION
Provides a way to test prolog link:prolog-cookbook.html[submit rules].
-OPTIONS
--------
+== OPTIONS
-s::
Reads a rules.pl file from stdin instead of rules.pl in refs/meta/config.
--no-filters::
Don't run the submit_filter/2 from the parent projects of the specified change.
-ACCESS
-------
+== ACCESS
Can be used by anyone that has permission to read the specified changeset.
-EXAMPLES
---------
+== EXAMPLES
Test submit_rule from stdin and return the results as JSON.
====
@@ -60,8 +53,7 @@
]
====
-SCRIPTING
----------
+== SCRIPTING
Can be used either interactively for testing new prolog submit rules, or from a script to check the submit status of a change.
GERRIT