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:
Yuxuan 'fishy' Wang
2013-12-20 12:55:51 -08:00
parent 9dc9639d30
commit 61698b14e0
131 changed files with 1330 additions and 2659 deletions

View File

@@ -1,12 +1,9 @@
gerrit create-project
=====================
= gerrit create-project
NAME
----
== NAME
gerrit create-project - Create a new hosted project
SYNOPSIS
--------
== SYNOPSIS
--
'ssh' -p <port> <host> 'gerrit create-project'
[--owner <GROUP> ... | -o <GROUP> ...]
@@ -25,8 +22,7 @@ SYNOPSIS
{ <NAME> | --name <NAME> }
--
DESCRIPTION
-----------
== DESCRIPTION
Creates a new bare Git repository under `gerrit.basePath`, using
the project name supplied. The newly created repository is empty
(has no commits), but is registered in the Gerrit database so that
@@ -38,18 +34,15 @@ the configured remote systems over SSH and uses command line git
on the remote system to create the empty repository.
ACCESS
------
== ACCESS
Caller must be a member of the privileged 'Administrators' group,
or have been granted
link:access-control.html#capability_createProject[the 'Create Project' global capability].
SCRIPTING
---------
== SCRIPTING
This command is intended to be used in scripts.
OPTIONS
-------
== OPTIONS
<NAME>::
Required; name of the new project to create. If name ends
with `.git` the suffix will be automatically removed.
@@ -160,8 +153,7 @@ Change Submit Actions].
Common unit suffixes of 'k', 'm', or 'g' are supported.
EXAMPLES
--------
== EXAMPLES
Create a new project called `tools/gerrit`:
====
@@ -179,8 +171,7 @@ shell needs double quotes around the value to ensure the single quotes
are passed through SSH as-is to the remote Gerrit server, which uses
the single quotes to delimit the value.
REPLICATION
-----------
== REPLICATION
If the replication plugin is installed, the plugin will attempt to
perform remote repository creation by a Bourne shell script:
@@ -197,8 +188,7 @@ A custom extension or plugin may also be developed to implement the
NewProjectCreatedListener extension point and handle custom logic
for remote repository creation.
SEE ALSO
--------
== SEE ALSO
* link:project-setup.html[Project Setup]