Add Automation for generating the packstack man page

- packstack/installer/run_setup.py: Modified a little bit the printOptions()
  function to get a better rendering (more rst file friendly).
- docs/conf.py: The code added is largely inspired by the printOptions()
  function.
- This should definitely keep the man page synchronized with code !

Change-Id: I4b899d6b78be860da1ec05341e2f7a36a4c4f71c
This commit is contained in:
Gael Chamoulaud
2014-05-22 11:22:34 +02:00
parent 59eaa2c7e0
commit 8d1b31ee2d
5 changed files with 31 additions and 471 deletions

View File

@@ -747,7 +747,8 @@ def printOptions():
cmdOption = param.CONF_NAME
paramUsage = param.USAGE
optionsList = param.OPTION_LIST or ""
print "%s : %s %s"%(("**%s**"%str(cmdOption)).ljust(30), paramUsage, optionsList)
print "%s" % (("**%s**"%str(cmdOption)).ljust(30))
print " %s %s" % (paramUsage, optionsList)
print
def plugin_compare(x, y):