Fix module formatter indexing

This commit is contained in:
Michael DeHaan 2012-10-03 23:31:50 -04:00
parent e170d7304b
commit 761330b125
43 changed files with 45 additions and 43 deletions

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.APT 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.APT 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/apt ." generated from library/apt
.SH NAME .SH NAME
apt \- Manages apt-packages apt \- Manages apt-packages

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.APT_REPOSITORY 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.APT_REPOSITORY 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/apt_repository ." generated from library/apt_repository
.SH NAME .SH NAME
apt_repository \- Manages apt repositores apt_repository \- Manages apt repositores

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.ASSEMBLE 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.ASSEMBLE 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/assemble ." generated from library/assemble
.SH NAME .SH NAME
assemble \- Assembles a configuration file from fragments assemble \- Assembles a configuration file from fragments

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.ASYNC_STATUS 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.ASYNC_STATUS 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/async_status ." generated from library/async_status
.SH NAME .SH NAME
async_status \- Obtain status of asynchronous task async_status \- Obtain status of asynchronous task

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.AUTHORIZED_KEY 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.AUTHORIZED_KEY 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/authorized_key ." generated from library/authorized_key
.SH NAME .SH NAME
authorized_key \- Adds or removes an SSH authorized key authorized_key \- Adds or removes an SSH authorized key

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.COMMAND 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.COMMAND 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/command ." generated from library/command
.SH NAME .SH NAME
command \- Executes a command on a remote node command \- Executes a command on a remote node

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.COPY 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.COPY 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/copy ." generated from library/copy
.SH NAME .SH NAME
copy \- Copies files to remote locations. copy \- Copies files to remote locations.

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.EASY_INSTALL 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.EASY_INSTALL 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/easy_install ." generated from library/easy_install
.SH NAME .SH NAME
easy_install \- Installs Python libraries easy_install \- Installs Python libraries

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.FACTER 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.FACTER 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/facter ." generated from library/facter
.SH NAME .SH NAME
facter \- Runs the discovery program I(facter) on the remote system facter \- Runs the discovery program I(facter) on the remote system

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.FAIL 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.FAIL 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/fail ." generated from library/fail
.SH NAME .SH NAME
fail \- Fail with custom message fail \- Fail with custom message

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.FETCH 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.FETCH 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/fetch ." generated from library/fetch
.SH NAME .SH NAME
fetch \- Fetches a file from remote nodes fetch \- Fetches a file from remote nodes

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.FILE 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.FILE 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/file ." generated from library/file
.SH NAME .SH NAME
file \- Sets attributes of files file \- Sets attributes of files
@ -35,6 +35,8 @@ accepts only \fCdefault\fR as value. This will restore a file's SELinux context
default. default.
.IP owner .IP owner
name of the user that should own the file/directory, as would be fed to \fIchown\fR name of the user that should own the file/directory, as would be fed to \fIchown\fR
.IP force
force is required when changing an existing file to a directory, or a link to a directory, and so on. Use this with caution.
.IP setype .IP setype
type part of SELinux file context, \fC_default\fR feature works as for \fIseuser\fR.." type part of SELinux file context, \fC_default\fR feature works as for \fIseuser\fR.."
." ."

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.FIREBALL 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.FIREBALL 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/fireball ." generated from library/fireball
.SH NAME .SH NAME
fireball \- Enable fireball mode on remote node fireball \- Enable fireball mode on remote node

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.GET_URL 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.GET_URL 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/get_url ." generated from library/get_url
.SH NAME .SH NAME
get_url \- Downloads files from HTTP, HTTPS, or FTP to node get_url \- Downloads files from HTTP, HTTPS, or FTP to node

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.GIT 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.GIT 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/git ." generated from library/git
.SH NAME .SH NAME
git \- Deploy software (or files) from git checkouts git \- Deploy software (or files) from git checkouts

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.GROUP 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.GROUP 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/group ." generated from library/group
.SH NAME .SH NAME
group \- Add or remove groups group \- Add or remove groups

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.INI_FILE 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.INI_FILE 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/ini_file ." generated from library/ini_file
.SH NAME .SH NAME
ini_file \- Tweak settings in INI files ini_file \- Tweak settings in INI files

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.LINEINFILE 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.LINEINFILE 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/lineinfile ." generated from library/lineinfile
.SH NAME .SH NAME
lineinfile \- Ensure a particular line is in a file lineinfile \- Ensure a particular line is in a file

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.MOUNT 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.MOUNT 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/mount ." generated from library/mount
.SH NAME .SH NAME
mount \- Control active and configured mount points mount \- Control active and configured mount points

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.MYSQL_DB 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.MYSQL_DB 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/mysql_db ." generated from library/mysql_db
.SH NAME .SH NAME
mysql_db \- Add or remove MySQL databases from a remote host. mysql_db \- Add or remove MySQL databases from a remote host.

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.MYSQL_USER 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.MYSQL_USER 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/mysql_user ." generated from library/mysql_user
.SH NAME .SH NAME
mysql_user \- Adds or removes a user from a MySQL database. mysql_user \- Adds or removes a user from a MySQL database.

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.NAGIOS 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.NAGIOS 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/nagios ." generated from library/nagios
.SH NAME .SH NAME
nagios \- Perform common tasks in Nagios related to downtime and notifications. nagios \- Perform common tasks in Nagios related to downtime and notifications.

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.OHAI 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.OHAI 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/ohai ." generated from library/ohai
.SH NAME .SH NAME
ohai \- Returns inventory data from I(ohai) ohai \- Returns inventory data from I(ohai)

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.PAUSE 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.PAUSE 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/pause ." generated from library/pause
.SH NAME .SH NAME
pause \- Pause playbook execution pause \- Pause playbook execution

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.PING 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.PING 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/ping ." generated from library/ping
.SH NAME .SH NAME
ping \- Try to connect to host and return pong on success. ping \- Try to connect to host and return pong on success.

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.PIP 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.PIP 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/pip ." generated from library/pip
.SH NAME .SH NAME
pip \- Manages Python library dependencies. pip \- Manages Python library dependencies.

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.POSTGRESQL_DB 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.POSTGRESQL_DB 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/postgresql_db ." generated from library/postgresql_db
.SH NAME .SH NAME
postgresql_db \- Add or remove PostgreSQL databases from a remote host. postgresql_db \- Add or remove PostgreSQL databases from a remote host.

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.POSTGRESQL_USER 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.POSTGRESQL_USER 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/postgresql_user ." generated from library/postgresql_user
.SH NAME .SH NAME
postgresql_user \- Adds or removes a users (roles) from a PostgreSQL database. postgresql_user \- Adds or removes a users (roles) from a PostgreSQL database.

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.RAW 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.RAW 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/raw ." generated from library/raw
.SH NAME .SH NAME
raw \- Executes a low-down and dirty SSH command raw \- Executes a low-down and dirty SSH command

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.SEBOOLEAN 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.SEBOOLEAN 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/seboolean ." generated from library/seboolean
.SH NAME .SH NAME
seboolean \- Toggles SELinux booleans. seboolean \- Toggles SELinux booleans.

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.SELINUX 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.SELINUX 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/selinux ." generated from library/selinux
.SH NAME .SH NAME
selinux \- Change policy and state of SELinux selinux \- Change policy and state of SELinux

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.SERVICE 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.SERVICE 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/service ." generated from library/service
.SH NAME .SH NAME
service \- Manage services. service \- Manage services.

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.SETUP 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.SETUP 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/setup ." generated from library/setup
.SH NAME .SH NAME
setup \- Gathers facts about remote hosts setup \- Gathers facts about remote hosts

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.SHELL 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.SHELL 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/shell ." generated from library/shell
.SH NAME .SH NAME
shell \- Execute commands in nodes. shell \- Execute commands in nodes.

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.SLURP 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.SLURP 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/slurp ." generated from library/slurp
.SH NAME .SH NAME
slurp \- Slurps a file from remote nodes slurp \- Slurps a file from remote nodes

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.SUBVERSION 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.SUBVERSION 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/subversion ." generated from library/subversion
.SH NAME .SH NAME
subversion \- Deploys a subversion repository. subversion \- Deploys a subversion repository.

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.SUPERVISORCTL 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.SUPERVISORCTL 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/supervisorctl ." generated from library/supervisorctl
.SH NAME .SH NAME
supervisorctl \- Manage the state of a program or group of programs running via Supervisord supervisorctl \- Manage the state of a program or group of programs running via Supervisord

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.TEMPLATE 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.TEMPLATE 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/template ." generated from library/template
.SH NAME .SH NAME
template \- Templates a file out to a remote server. template \- Templates a file out to a remote server.

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.USER 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.USER 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/user ." generated from library/user
.SH NAME .SH NAME
user \- Manage user accounts user \- Manage user accounts

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.VIRT 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.VIRT 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/virt ." generated from library/virt
.SH NAME .SH NAME
virt \- Manages virtual machines supported by libvirt virt \- Manages virtual machines supported by libvirt

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.WAIT_FOR 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.WAIT_FOR 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/wait_for ." generated from library/wait_for
.SH NAME .SH NAME
wait_for \- Waits for a given port to become accessible on a server. wait_for \- Waits for a given port to become accessible on a server.

View file

@ -1,4 +1,4 @@
.TH ANSIBLE.YUM 5 "2012-10-02" "0.8" "ANSIBLE MODULES" .TH ANSIBLE.YUM 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/yum ." generated from library/yum
.SH NAME .SH NAME
yum \- Manages packages with the I(yum) package manager yum \- Manages packages with the I(yum) package manager

View file

@ -262,7 +262,7 @@ def main():
template = env.get_template('rst.j2') template = env.get_template('rst.j2')
outputname = "%s.rst" outputname = "%s.rst"
includecmt = ".. Generated by module_formatter\n" includecmt = ".. Generated by module_formatter\n"
includefmt = ".. include:: %s.rst\n" includefmt = ".. include:: modules/%s.rst\n"
if args.type == 'json': if args.type == 'json':
env.filters['jpfunc'] = json_ify env.filters['jpfunc'] = json_ify
outputname = "%s.json" outputname = "%s.json"