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 @@
suexec
======
= suexec
NAME
----
== NAME
suexec - Execute a command as any registered user account
SYNOPSIS
--------
== SYNOPSIS
--
'ssh' -p <port>
-i SITE_PATH/etc/ssh_host_rsa_key
@@ -18,8 +15,7 @@ SYNOPSIS
[COMMAND]
--
DESCRIPTION
-----------
== DESCRIPTION
The suexec command permits executing any other command as any other
registered user account.
@@ -28,8 +24,7 @@ or any user granted granted the link:access-control.html#capability_runAs[Run As
capability. The run as capability is permitted to be used only if
link:config-gerrit.html[auth.enableRunAs] is true.
OPTIONS
-------
== OPTIONS
--as::
Email address of the user you want to impersonate.
@@ -41,18 +36,15 @@ OPTIONS
COMMAND::
Gerrit command you want to run.
ACCESS
------
== ACCESS
Caller must be the magic user Gerrit Code Review using the SSH
daemon's host key, or a key on this daemon's peer host key ring,
or a user granted the Run As capability.
SCRIPTING
---------
== SCRIPTING
This command is intended to be used in scripts.
EXAMPLES
--------
== EXAMPLES
Approve the change with commit c0ff33 as "Verified +1" as user bob@example.com
=====