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
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
gerrit create-branch
|
||||
====================
|
||||
= gerrit create-branch
|
||||
|
||||
NAME
|
||||
----
|
||||
== NAME
|
||||
gerrit create-branch - Create a new branch
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
== SYNOPSIS
|
||||
--
|
||||
'ssh' -p <port> <host> 'gerrit create-branch'
|
||||
<PROJECT>
|
||||
@@ -14,24 +11,20 @@ SYNOPSIS
|
||||
<REVISION>
|
||||
--
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
== DESCRIPTION
|
||||
Creates a new branch for a project.
|
||||
|
||||
ACCESS
|
||||
------
|
||||
== ACCESS
|
||||
Caller should have link:access-control.html#category_create[Create Reference]
|
||||
permission on the project.
|
||||
|
||||
Administrators do not automatically have permission to create branches. It must
|
||||
be granted via the Create Reference permission.
|
||||
|
||||
SCRIPTING
|
||||
---------
|
||||
== SCRIPTING
|
||||
This command is intended to be used in scripts.
|
||||
|
||||
OPTIONS
|
||||
-------
|
||||
== OPTIONS
|
||||
<PROJECT>::
|
||||
Required; name of the project.
|
||||
|
||||
@@ -41,8 +34,7 @@ OPTIONS
|
||||
<REVISION>::
|
||||
Required; base revision of the new branch.
|
||||
|
||||
EXAMPLES
|
||||
--------
|
||||
== EXAMPLES
|
||||
Create a new branch called 'newbranch' from the 'master' branch of
|
||||
the project 'myproject'.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user