Skip to content

Commit

Permalink
docs: Add description for attributes of Builder (refs: sphinx-doc#4402)
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Jan 29, 2018
1 parent b924e06 commit 0010179
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doc/extdev/builderapi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ Builder API
.. autoattribute:: format
.. autoattribute:: epilog
.. autoattribute:: supported_image_types
.. autoattribute:: supported_remote_images
.. autoattribute:: supported_data_uri_images
.. autoattribute:: default_translator_class

These methods are predefined and will be called from the application:

Expand Down
6 changes: 4 additions & 2 deletions sphinx/builders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class Builder(object):
#: ``project``
epilog = '' # type: unicode

# default translator class for the builder. This will be overrided by
# ``app.set_translator()``.
#: default translator class for the builder. This can be overrided by
#: :py:meth:`app.set_translator()`.
default_translator_class = None # type: nodes.NodeVisitor
# doctree versioning method
versioning_method = 'none' # type: unicode
Expand All @@ -73,7 +73,9 @@ class Builder(object):
#: The list of MIME types of image formats supported by the builder.
#: Image files are searched in the order in which they appear here.
supported_image_types = [] # type: List[unicode]
#: The builder supports remote images or not.
supported_remote_images = False
#: The builder supports data URIs or not.
supported_data_uri_images = False

def __init__(self, app):
Expand Down

0 comments on commit 0010179

Please sign in to comment.