From 054e8995775deae7f562b612984a4d03d9aaf103 Mon Sep 17 00:00:00 2001 From: Chris White Date: Sat, 11 Nov 2023 16:09:05 -0500 Subject: [PATCH 1/2] Add spelling_language property To specify the natural language for which spelling should be checked. --- conf.py | 4 ++-- index.rst | 13 ++++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/conf.py b/conf.py index 0f91056..037a465 100644 --- a/conf.py +++ b/conf.py @@ -21,8 +21,8 @@ copyright = '2019--2020, EditorConfig Team' author = 'EditorConfig Team' -version = '0.15.1' -release = '0.15.1' +version = '0.16.0' +release = '0.16.0' # -- General configuration --------------------------------------------------- diff --git a/index.rst b/index.rst index 4ab2bed..74f1120 100644 --- a/index.rst +++ b/index.rst @@ -186,7 +186,7 @@ files take precedence. Supported Pairs =============== -.. versionchanged:: 0.15.1 +.. versionchanged:: 0.16 EditorConfig file sections contain key-value pairs separated by an equal sign (``=``). With the exception of the ``root`` key, all pairs MUST be @@ -224,6 +224,15 @@ and the supported values associated with them: * - ``charset`` - Set to ``latin1``, ``utf-8``, ``utf-8-bom``, ``utf-16be`` or ``utf-16le`` to control the character set. Use of ``utf-8-bom`` is discouraged. + * - ``spelling_language`` + - Sets the natural language that should be used for spell checking. + Only one language can be specified. There is no default value. + + The format is ``ss`` or ``ss-TT``, where ``ss`` is an `ISO 639`_ + language code and ``TT`` is an `ISO 3166`_ territory identifier. + + **Note:** This property does **not** specify the charset to be used. + The charset is in separate property ``charset``. * - ``trim_trailing_whitespace`` - Set to ``true`` to remove all whitespace characters preceding newline characters in the file and ``false`` to ensure it doesn't. @@ -277,6 +286,8 @@ numbers. Those version numbers are independent of the version number of this specification. .. _core-tests repository: https://github.com/editorconfig/editorconfig-core-test +.. _ISO 639: https://en.wikipedia.org/wiki/ISO_639 +.. _ISO 3166: https://en.wikipedia.org/wiki/ISO_3166 .. _Python configparser Library: https://docs.python.org/3/library/configparser.html .. _Plugin Guidelines: https://github.com/editorconfig/editorconfig/wiki/Plugin-Guidelines .. _plugin-tests repository: https://github.com/editorconfig/editorconfig-plugin-tests From 2a30623d57d1881c4302d1995edaf6a3e00a42b8 Mon Sep 17 00:00:00 2001 From: Chris White Date: Sat, 11 Nov 2023 16:14:34 -0500 Subject: [PATCH 2/2] Add .readthedocs.yaml Now required per https://github.com/readthedocs/readthedocs.org/issues/4668 --- .editorconfig | 6 +++++- .readthedocs.yaml | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .readthedocs.yaml diff --git a/.editorconfig b/.editorconfig index e76bc47..667dbcf 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,4 +10,8 @@ max_line_length = 78 indent_size = 4 indent_style = space end_of_line = lf -max_line_length = 78 \ No newline at end of file +max_line_length = 78 + +[*.{yaml,yml}] +indent_size = 2 +indent_style = space diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..ac57d36 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,9 @@ +version: 2 + +build: + os: ubuntu-22.04 + tools: + python: "3.12" + +sphinx: + configuration: conf.py