X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/9e3175428470403d01cdee9c710d5d38e8610860..3ef339b2e75468a09d617e6aa74bc920c317bce6:/docs/index.rst?ds=inline diff --git a/docs/index.rst b/docs/index.rst index 7a0995b..a7a7160 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -4,7 +4,7 @@ The uncompromising code formatter ================================= -By using *Black*, you agree to cease control over minutiae of +By using *Black*, you agree to cede control over minutiae of hand-formatting. In return, *Black* gives you speed, determinism, and freedom from `pycodestyle` nagging about formatting. You will save time and mental energy for more important matters. @@ -14,10 +14,27 @@ possible. Blackened code looks the same regardless of the project you're reading. Formatting becomes transparent after a while and you can focus on the content instead. -.. note:: +Try it out now using the `Black Playground `_. + +.. admonition:: Note - this is a beta product + + *Black* is already `successfully used `_ by + many projects, small and big. *Black* has a comprehensive test suite, with efficient + parallel tests, our own auto formatting and parallel Continuous Integration runner. + However, *Black* is still beta. Things will probably be wonky for a while. This is + made explicit by the "Beta" trove classifier, as well as by the "b" in the versio + number. What this means for you is that **until the formatter becomes stable, you + should expect some formatting to change in the future**. That being said, no drastic + stylistic changes are planned, mostly responses to bug reports. - `Black is an early pre-release `_. + Also, as a safety measure which slows down processing, *Black* will check that the + reformatted code still produces a valid AST that is effectively equivalent to the + original (see the + `Pragmatism <./the_black_code_style/current_style.html#pragmatism>`_ + section for details). If you're feeling confident, use ``--fast``. +.. note:: + :doc:`Black is licensed under the MIT license `. Testimonials ------------ @@ -26,7 +43,7 @@ Testimonials *Black is opinionated so you don't have to be.* -**Hynek Schlawack**, creator of `attrs `_, core +**Hynek Schlawack**, creator of `attrs `_, core developer of Twisted and CPython: *An auto-formatter that doesn't suck is all I want for Xmas!* @@ -40,21 +57,64 @@ and `pipenv `_: *This vastly improves the formatting of our code. Thanks a ton!* + +Show your style +--------------- + +Use the badge in your project's README.md: + +.. code-block:: md + + [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) + + +Using the badge in README.rst: + +.. code-block:: rst + + .. image:: https://img.shields.io/badge/code%20style-black-000000.svg + :target: https://github.com/psf/black + +Looks like this: + +.. image:: https://img.shields.io/badge/code%20style-black-000000.svg + :target: https://github.com/psf/black + Contents -------- .. toctree:: - :maxdepth: 2 + :maxdepth: 3 + :includehidden: + + the_black_code_style/index + +.. toctree:: + :maxdepth: 3 + :includehidden: - usage - technical_philosophy - contributing - changelog + getting_started + usage_and_configuration/index + integrations/index + guides/index + +.. toctree:: + :maxdepth: 3 + :includehidden: + + contributing/index + change_log + authors + +.. toctree:: + :hidden: + GitHub ↪ + PyPI ↪ + IRC ↪ Indices and tables ================== * :ref:`genindex` -* :ref:`modindex` * :ref:`search`