Merge "Use sphinx warning-is-error"

This commit is contained in:
Jenkins 2017-03-15 23:56:59 +00:00 committed by Gerrit Code Review
commit f1d53f2e31
8 changed files with 53 additions and 34 deletions

2
.gitignore vendored
View File

@ -19,3 +19,5 @@ build
AUTHORS
ChangeLog
bin/diskimage_builder
*.bak
*.orig

View File

@ -13,7 +13,6 @@ There are two ways to configure apt-sources:
* ``DIB_DISTRIBUTION_MIRROR``: the mirror to use (default:
`<http://ftp.us.debian.org/debian>`__)
* ``DIB_DEBIAN_COMPONENTS``: (default: ``main``) a comma
separated list of components. For Debian this can be
e.g. ``main,contrib,non-free``.

View File

@ -1,8 +1,9 @@
======
debian
======
Create an image based on Debian. We default to unstable but DIB_RELEASE
is mapped to any series of Debian.
Create an image based on Debian. We default to unstable but
``DIB_RELEASE`` is mapped to any series of Debian.
Note that the default Debian series is `unstable`, and the default
mirrors for Debian can be problematic for `unstable`. Because apt does

View File

@ -0,0 +1,7 @@
=============
dib-run-parts
=============
Install ``dib-run-parts`` into the chroot environment

View File

@ -0,0 +1,9 @@
=============
ubuntu-signed
=============
The ``ubuntu-signed`` element installs ``linux-signed-image-generic``
that provides signed kernel that can be used for deploy in UEFI secure
boot mode.
.. element_deps::

View File

@ -29,13 +29,14 @@ import os
all_elements = _find_all_elements(get_path("elements"))
def append_dependency_list(lines, title, element, deps):
if not deps:
return
def make_dep_list(title, deps):
lines = []
lines.append(title)
lines.append("+" * len(title))
for dep in deps:
lines.append("* :doc:`../%s/README`\n" % dep)
lines.append("* :doc:`../%s/README`" % dep)
lines.append('') # careful to end with a blank line
return lines
class ElementDepsDirective(Directive):
@ -56,11 +57,13 @@ class ElementDepsDirective(Directive):
# This should not fail -- sphinx would be finding an element
# that dib doesn't know about?
element = all_elements[element_name]
append_dependency_list(lines, "Uses", element, element.depends)
append_dependency_list(lines, "Used by", element, element.r_depends)
if element.depends:
lines.extend(make_dep_list("Uses", element.depends))
if element.r_depends:
lines.extend(make_dep_list("Used by", element.r_depends))
self.state_machine.insert_input(lines, source)
return []

View File

@ -238,27 +238,28 @@ size
Example:
::
- partitioning:
base: image0
label: mbr
partitions:
- name: part-01
flags: [ boot ]
size: 1GiB
- name: part-02
size: 100%
.. code-block:: yaml
- partitioning:
base: data_image
label: mbr
partitions:
- name: data0
size: 33%
- name: data1
size: 50%
- name: data2
size: 100%
- partitioning:
base: image0
label: mbr
partitions:
- name: part-01
flags: [ boot ]
size: 1GiB
- name: part-02
size: 100%
- partitioning:
base: data_image
label: mbr
partitions:
- name: data0
size: 33%
- name: data1
size: 50%
- name: data2
size: 100%
On the `image0` two partitions are created. The size of the first is
1GiB, the second uses the remaining free space. On the `data_image`

View File

@ -19,6 +19,7 @@ classifier =
all_files = 1
build-dir = doc/build
source-dir = doc/source
warning-is-error = 1
[files]
packages =
@ -36,10 +37,6 @@ keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = diskimage_builder/locale/diskimage_builder.pot
[pbr]
# TODO(jaegerandi): Set to True once pbr 1.11.0 is out.
warnerrors = False
[update_catalog]
domain = diskimage_builder
output_dir = diskimage_builder/locale