Skip to content

Commit

Permalink
Auto-generated documentation-related fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ambv committed Mar 29, 2018
1 parent a9f50cd commit d01460d
Show file tree
Hide file tree
Showing 14 changed files with 172 additions and 46 deletions.
161 changes: 139 additions & 22 deletions black.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/authors.md
2 changes: 1 addition & 1 deletion docs/change_log.md
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def generate_sections_from_readme():
target_dir.mkdir(parents=True)

output = None
target_dir = target_dir.relative_to(CURRENT_DIR)
with open(str(readme), 'r', encoding='utf8') as f:
for line in f:
if line.startswith('## '):
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing_to_black.md
2 changes: 1 addition & 1 deletion docs/editor_integration.md
2 changes: 1 addition & 1 deletion docs/installation_and_usage.md
2 changes: 1 addition & 1 deletion docs/license.md
30 changes: 17 additions & 13 deletions docs/reference/reference_classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@

.. currentmodule:: black

:class:`EmptyLineTracker`
:class:`BracketTracker`
-------------------------

.. autoclass:: black.EmptyLineTracker
.. autoclass:: black.BracketTracker
:members:

:class:`FormatOn`
-----------------
:class:`EmptyLineTracker`
-------------------------

.. autoclass:: black.FormatOn
.. autoclass:: black.EmptyLineTracker
:members:

:class:`FormatOff`
------------------
:class:`Line`
-------------

.. autoclass:: black.FormatOff
.. autoclass:: black.Line
:members:

:class:`LineGenerator`
----------------------
:class:`LineGenerator` (:class:`Visitor` [:class:`Line`])
-------------------------------------------------------

.. autoclass:: black.LineGenerator
:members:
Expand All @@ -35,10 +35,14 @@
.. autoclass:: black.Report
:members:

:class:`Visitor`
----------------------
:class:`UnformattedLines` (:class:`Line`)
----------------------------------------

.. autoclass:: black.Visitor
.. autoclass:: black.UnformattedLines
:members:

:class:`Visitor` (Generic[T])
----------------------------

.. autoclass:: black.Visitor
:members:
4 changes: 4 additions & 0 deletions docs/reference/reference_exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@

.. autoexception:: black.FormatError

.. autoexception:: black.FormatOn

.. autoexception:: black.FormatOff

.. autoexception:: black.NothingChanged
4 changes: 2 additions & 2 deletions docs/reference/reference_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Split functions

.. autofunction:: black.split_line

.. autofunction:: black.split_succeeded_or_raise
.. autofunction:: black.bracket_split_succeeded_or_raise

Utilities
---------
Expand All @@ -71,4 +71,4 @@ Utilities

.. autofunction:: black.preceding_leaf

.. autofunction:: black.whitespace
.. autofunction:: black.whitespace
2 changes: 1 addition & 1 deletion docs/show_your_style.md
2 changes: 1 addition & 1 deletion docs/testimonials.md
2 changes: 1 addition & 1 deletion docs/the_black_code_style.md

0 comments on commit d01460d

Please sign in to comment.