Update Sphinx documentation for composer.cli

This commit is contained in:
Brian C. Lane 2018-03-14 17:33:09 -07:00
parent 114f7f348e
commit 73011c6bb0
5 changed files with 9 additions and 9 deletions

View File

@ -7,8 +7,8 @@ SPHINXBUILD = sphinx-build
SPHINXAPIDOC = sphinx-apidoc SPHINXAPIDOC = sphinx-apidoc
PAPER = PAPER =
BUILDDIR = . BUILDDIR = .
SOURCEDIR = ../src/pylorax SOURCEDIR = ../src
MODULE_NAMES = pylorax.rst pylorax.api.rst modules.rst MODULE_NAMES = pylorax.rst pylorax.api.rst modules.rst composer.rst composer.cli.rst
# User-friendly check for sphinx-build # User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)

View File

@ -50,7 +50,7 @@ master_doc = 'index'
# General information about the project. # General information about the project.
project = u'Lorax' project = u'Lorax'
copyright = u'2017, Red Hat, Inc.' # pylint: disable=redefined-builtin copyright = u'2018, Red Hat, Inc.' # pylint: disable=redefined-builtin
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the # |version| and |release|, also used in various other places throughout the
@ -280,7 +280,7 @@ texinfo_documents = [
epub_title = u'Lorax' epub_title = u'Lorax'
epub_author = u'Anaconda Team' epub_author = u'Anaconda Team'
epub_publisher = u'Anaconda Team' epub_publisher = u'Anaconda Team'
epub_copyright = u'2017, Red Hat, Inc.' epub_copyright = u'2018, Red Hat, Inc.'
# The basename for the epub file. It defaults to the project name. # The basename for the epub file. It defaults to the project name.
#epub_basename = u'src' #epub_basename = u'src'

View File

@ -219,9 +219,9 @@ def start_build(cfg, yumlock, gitlock, branch, recipe_name, compose_type, test_m
# Supported output types # Supported output types
def compose_types(share_dir): def compose_types(share_dir):
""" Returns a list of the supported output types r""" Returns a list of the supported output types
The output types come from the kickstart names in /usr/share/lorax/composer/*ks The output types come from the kickstart names in /usr/share/lorax/composer/\*ks
""" """
return [os.path.basename(ks)[:-3] for ks in glob(joinpaths(share_dir, "composer/*.ks"))] return [os.path.basename(ks)[:-3] for ks in glob(joinpaths(share_dir, "composer/*.ks"))]

View File

@ -551,13 +551,13 @@ def commit_recipe_file(repo, branch, filename):
return commit_recipe(repo, branch, recipe) return commit_recipe(repo, branch, recipe)
def commit_recipe_directory(repo, branch, directory): def commit_recipe_directory(repo, branch, directory):
"""Commit all *.toml files from a directory, if they aren't already in git. r"""Commit all \*.toml files from a directory, if they aren't already in git.
:param repo: Open repository :param repo: Open repository
:type repo: Git.Repository :type repo: Git.Repository
:param branch: Branch name :param branch: Branch name
:type branch: str :type branch: str
:param directory: The directory of *.toml recipes to commit :param directory: The directory of \*.toml recipes to commit
:type directory: str :type directory: str
:returns: None :returns: None
:raises: Can raise errors from Ggit or RecipeFileError :raises: Can raise errors from Ggit or RecipeFileError

View File

@ -863,7 +863,7 @@ DELETE `/api/v0/compose/delete/<uuids>`
UUID-logs.tar UUID-logs.tar
`/api/v0/compose/image/<uuid>` `/api/v0/compose/image/<uuid>`
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Returns the output image from the build. The filename is set to the filename Returns the output image from the build. The filename is set to the filename
from the build with the UUID as a prefix. eg. UUID-root.tar.xz or UUID-boot.iso. from the build with the UUID as a prefix. eg. UUID-root.tar.xz or UUID-boot.iso.