Skip to content

Commit

Permalink
Merge pull request #4733 from nulano/refs-mod
Browse files Browse the repository at this point in the history
Fix documentation references: modules
  • Loading branch information
hugovk authored Jun 29, 2020
2 parents 8f91053 + 2761a02 commit 20282dd
Show file tree
Hide file tree
Showing 31 changed files with 194 additions and 194 deletions.
48 changes: 24 additions & 24 deletions docs/PIL.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,81 +12,81 @@ can be found here.
.. autoexception:: UnidentifiedImageError
:show-inheritance:

:mod:`BdfFontFile` Module
-------------------------
:mod:`~PIL.BdfFontFile` Module
------------------------------

.. automodule:: PIL.BdfFontFile
:members:
:undoc-members:
:show-inheritance:

:mod:`ContainerIO` Module
-------------------------
:mod:`~PIL.ContainerIO` Module
------------------------------

.. automodule:: PIL.ContainerIO
:members:
:undoc-members:
:show-inheritance:

:mod:`FontFile` Module
----------------------
:mod:`~PIL.FontFile` Module
---------------------------

.. automodule:: PIL.FontFile
:members:
:undoc-members:
:show-inheritance:

:mod:`GdImageFile` Module
-------------------------
:mod:`~PIL.GdImageFile` Module
------------------------------

.. automodule:: PIL.GdImageFile
:members:
:undoc-members:
:show-inheritance:

:mod:`GimpGradientFile` Module
------------------------------
:mod:`~PIL.GimpGradientFile` Module
-----------------------------------

.. automodule:: PIL.GimpGradientFile
:members:
:undoc-members:
:show-inheritance:

:mod:`GimpPaletteFile` Module
-----------------------------
:mod:`~PIL.GimpPaletteFile` Module
----------------------------------

.. automodule:: PIL.GimpPaletteFile
:members:
:undoc-members:
:show-inheritance:

:mod:`ImageDraw2` Module
------------------------
:mod:`~PIL.ImageDraw2` Module
-----------------------------

.. automodule:: PIL.ImageDraw2
:members:
:member-order: bysource
:undoc-members:
:show-inheritance:

:mod:`ImageTransform` Module
----------------------------
:mod:`~PIL.ImageTransform` Module
---------------------------------

.. automodule:: PIL.ImageTransform
:members:
:undoc-members:
:show-inheritance:

:mod:`PaletteFile` Module
-------------------------
:mod:`~PIL.PaletteFile` Module
------------------------------

.. automodule:: PIL.PaletteFile
:members:
:undoc-members:
:show-inheritance:

:mod:`PcfFontFile` Module
-------------------------
:mod:`~PIL.PcfFontFile` Module
------------------------------

.. automodule:: PIL.PcfFontFile
:members:
Expand Down Expand Up @@ -116,16 +116,16 @@ can be found here.
:show-inheritance:


:mod:`TarIO` Module
-------------------
:mod:`~PIL.TarIO` Module
------------------------

.. automodule:: PIL.TarIO
:members:
:undoc-members:
:show-inheritance:

:mod:`WalImageFile` Module
--------------------------
:mod:`~PIL.WalImageFile` Module
-------------------------------

.. automodule:: PIL.WalImageFile
:members:
Expand Down
2 changes: 1 addition & 1 deletion docs/porting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ to this::

from PIL import Image

The :py:mod:`_imaging` module has been moved. You can now import it like this::
The :py:mod:`~PIL._imaging` module has been moved. You can now import it like this::

from PIL.Image import core as _imaging

Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ExifTags.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ExifTags
.. py:currentmodule:: PIL.ExifTags
:py:mod:`ExifTags` Module
==========================
:py:mod:`~PIL.ExifTags` Module
==============================

The :py:mod:`ExifTags` module exposes two dictionaries which
The :py:mod:`~PIL.ExifTags` module exposes two dictionaries which
provide constants and clear-text names for various well-known EXIF tags.

.. py:data:: TAGS
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/Image.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. py:module:: PIL.Image
.. py:currentmodule:: PIL.Image
:py:mod:`Image` Module
======================
:py:mod:`~PIL.Image` Module
===========================

The :py:mod:`~PIL.Image` module provides a class with the same name which is
used to represent a PIL image. The module also provides a number of factory
Expand Down
8 changes: 4 additions & 4 deletions docs/reference/ImageChops.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.. py:module:: PIL.ImageChops
.. py:currentmodule:: PIL.ImageChops
:py:mod:`ImageChops` ("Channel Operations") Module
==================================================
:py:mod:`~PIL.ImageChops` ("Channel Operations") Module
=======================================================

The :py:mod:`ImageChops` module contains a number of arithmetical image
The :py:mod:`~PIL.ImageChops` module contains a number of arithmetical image
operations, called channel operations (“chops”). These can be used for various
purposes, including special effects, image compositions, algorithmic painting,
and more.

For more pre-made operations, see :py:mod:`ImageOps`.
For more pre-made operations, see :py:mod:`~PIL.ImageOps`.

At this time, most channel operations are only implemented for 8-bit images
(e.g. “L” and “RGB”).
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ImageCms.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ImageCms
.. py:currentmodule:: PIL.ImageCms
:py:mod:`ImageCms` Module
=========================
:py:mod:`~PIL.ImageCms` Module
==============================

The :py:mod:`ImageCms` module provides color profile management
The :py:mod:`~PIL.ImageCms` module provides color profile management
support using the LittleCMS2 color management engine, based on Kevin
Cazabon's PyCMS library.

Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ImageColor.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ImageColor
.. py:currentmodule:: PIL.ImageColor
:py:mod:`ImageColor` Module
===========================
:py:mod:`~PIL.ImageColor` Module
================================

The :py:mod:`ImageColor` module contains color tables and converters from
The :py:mod:`~PIL.ImageColor` module contains color tables and converters from
CSS3-style color specifiers to RGB tuples. This module is used by
:py:meth:`PIL.Image.new` and the :py:mod:`~PIL.ImageDraw` module, among
others.
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ImageDraw.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ImageDraw
.. py:currentmodule:: PIL.ImageDraw
:py:mod:`ImageDraw` Module
==========================
:py:mod:`~PIL.ImageDraw` Module
===============================

The :py:mod:`ImageDraw` module provides simple 2D graphics for
The :py:mod:`~PIL.ImageDraw` module provides simple 2D graphics for
:py:class:`~PIL.Image.Image` objects. You can use this module to create new
images, annotate or retouch existing images, and to generate graphics on the
fly for web use.
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ImageEnhance.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ImageEnhance
.. py:currentmodule:: PIL.ImageEnhance
:py:mod:`ImageEnhance` Module
=============================
:py:mod:`~PIL.ImageEnhance` Module
==================================

The :py:mod:`ImageEnhance` module contains a number of classes that can be used
The :py:mod:`~PIL.ImageEnhance` module contains a number of classes that can be used
for image enhancement.

Example: Vary the sharpness of an image
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ImageFile.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ImageFile
.. py:currentmodule:: PIL.ImageFile
:py:mod:`ImageFile` Module
==========================
:py:mod:`~PIL.ImageFile` Module
===============================

The :py:mod:`ImageFile` module provides support functions for the image open
The :py:mod:`~PIL.ImageFile` module provides support functions for the image open
and save functions.

In addition, it provides a :py:class:`Parser` class which can be used to decode
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ImageFilter.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ImageFilter
.. py:currentmodule:: PIL.ImageFilter
:py:mod:`ImageFilter` Module
============================
:py:mod:`~PIL.ImageFilter` Module
=================================

The :py:mod:`ImageFilter` module contains definitions for a pre-defined set of
The :py:mod:`~PIL.ImageFilter` module contains definitions for a pre-defined set of
filters, which can be be used with the :py:meth:`Image.filter()
<PIL.Image.Image.filter>` method.

Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ImageFont.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ImageFont
.. py:currentmodule:: PIL.ImageFont
:py:mod:`ImageFont` Module
==========================
:py:mod:`~PIL.ImageFont` Module
===============================

The :py:mod:`ImageFont` module defines a class with the same name. Instances of
The :py:mod:`~PIL.ImageFont` module defines a class with the same name. Instances of
this class store bitmap fonts, and are used with the
:py:meth:`PIL.ImageDraw.Draw.text` method.

Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ImageGrab.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ImageGrab
.. py:currentmodule:: PIL.ImageGrab
:py:mod:`ImageGrab` Module
==========================
:py:mod:`~PIL.ImageGrab` Module
===============================

The :py:mod:`ImageGrab` module can be used to copy the contents of the screen
The :py:mod:`~PIL.ImageGrab` module can be used to copy the contents of the screen
or the clipboard to a PIL image memory.

.. versionadded:: 1.1.3
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ImageMath.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ImageMath
.. py:currentmodule:: PIL.ImageMath
:py:mod:`ImageMath` Module
==========================
:py:mod:`~PIL.ImageMath` Module
===============================

The :py:mod:`ImageMath` module can be used to evaluate “image expressions”. The
The :py:mod:`~PIL.ImageMath` module can be used to evaluate “image expressions”. The
module provides a single :py:meth:`~PIL.ImageMath.eval` function, which takes
an expression string and one or more images.

Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ImageMorph.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ImageMorph
.. py:currentmodule:: PIL.ImageMorph
:py:mod:`ImageMorph` Module
===========================
:py:mod:`~PIL.ImageMorph` Module
================================

The :py:mod:`ImageMorph` module provides morphology operations on images.
The :py:mod:`~PIL.ImageMorph` module provides morphology operations on images.

.. automodule:: PIL.ImageMorph
:members:
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ImageOps.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ImageOps
.. py:currentmodule:: PIL.ImageOps
:py:mod:`ImageOps` Module
==========================
:py:mod:`~PIL.ImageOps` Module
==============================

The :py:mod:`ImageOps` module contains a number of ‘ready-made’ image
The :py:mod:`~PIL.ImageOps` module contains a number of ‘ready-made’ image
processing operations. This module is somewhat experimental, and most operators
only work on L and RGB images.

Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ImagePalette.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ImagePalette
.. py:currentmodule:: PIL.ImagePalette
:py:mod:`ImagePalette` Module
=============================
:py:mod:`~PIL.ImagePalette` Module
==================================

The :py:mod:`ImagePalette` module contains a class of the same name to
The :py:mod:`~PIL.ImagePalette` module contains a class of the same name to
represent the color palette of palette mapped images.

.. note::
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ImagePath.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ImagePath
.. py:currentmodule:: PIL.ImagePath
:py:mod:`ImagePath` Module
==========================
:py:mod:`~PIL.ImagePath` Module
===============================

The :py:mod:`ImagePath` module is used to store and manipulate 2-dimensional
The :py:mod:`~PIL.ImagePath` module is used to store and manipulate 2-dimensional
vector data. Path objects can be passed to the methods on the
:py:mod:`~PIL.ImageDraw` module.

Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ImageQt.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ImageQt
.. py:currentmodule:: PIL.ImageQt
:py:mod:`ImageQt` Module
========================
:py:mod:`~PIL.ImageQt` Module
=============================

The :py:mod:`ImageQt` module contains support for creating PyQt5 or PySide2 QImage
The :py:mod:`~PIL.ImageQt` module contains support for creating PyQt5 or PySide2 QImage
objects from PIL images.

.. versionadded:: 1.1.6
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/ImageSequence.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. py:module:: PIL.ImageSequence
.. py:currentmodule:: PIL.ImageSequence
:py:mod:`ImageSequence` Module
==============================
:py:mod:`~PIL.ImageSequence` Module
===================================

The :py:mod:`ImageSequence` module contains a wrapper class that lets you
The :py:mod:`~PIL.ImageSequence` module contains a wrapper class that lets you
iterate over the frames of an image sequence.

Extracting frames from an animation
Expand Down
Loading

0 comments on commit 20282dd

Please sign in to comment.