Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | py nodes, Tuple | Jakob Lykke Andersen | 2021-10-02 | 1 | -7/+14 | |
| | | ||||||
| * | py nodes, List | Jakob Lykke Andersen | 2021-10-02 | 1 | -1/+3 | |
| | | ||||||
| * | py nodes, BitOr | Jakob Lykke Andersen | 2021-10-02 | 1 | -5/+5 | |
| | | ||||||
* | | Fix #9697: An index entry with parens was registered for py:method | Takeshi KOMIYA | 2021-10-03 | 1 | -1/+1 | |
|/ | ||||||
* | Fix #9576: py domain: Literal typehint was converted to a cross reference | Takeshi KOMIYA | 2021-09-03 | 1 | -0/+21 | |
| | | | | | The content of Literal typehint should not be converted to cross references. | |||||
* | Fix #9585: py:property directive does not create a hyperlink for types | Takeshi KOMIYA | 2021-08-31 | 1 | -2/+4 | |
| | ||||||
* | Cloase #9445: :py:property: directive now supports :classmethod: option | Takeshi KOMIYA | 2021-07-17 | 1 | -5/+19 | |
| | | | | | Since python 3.9, `classmethod` starts to support creating a "class property". This allows to describe it. | |||||
* | Merge branch '4.x' into 9427 | Takeshi KOMIYA | 2021-07-11 | 1 | -15/+68 | |
|\ | ||||||
| * | Close #9268: python_use_unqualified_type_names supports type field | Takeshi KOMIYA | 2021-06-03 | 1 | -0/+6 | |
| | | ||||||
| * | Fix #9280: py domain: "exceptions" module is not displayed | Takeshi KOMIYA | 2021-05-30 | 1 | -14/+2 | |
| | | | | | | | | | | | | | | | | | | | | Since v0.2, python domain gives a special treatment for the exceptions module to suppress its name on documenting exception classes. It had been worthy on python2 era. But the module has been removed since python3. Therefore, the special treatment becomes harmful for user libraries. This removes it to render module names correctly. Note: Now we've only supported python3. So this is not incompatible. | |||||
| * | Close #1874: py domain: Support union types using `|` in info-field-list | Takeshi KOMIYA | 2021-05-22 | 1 | -0/+34 | |
| | | ||||||
| * | Fix #9224: info-field-list does not support a type containing space | Takeshi KOMIYA | 2021-05-15 | 1 | -1/+26 | |
| | | | | | | | | | | | | | | | | | | So far, DocFieldTransformer has split the field name for `:type:` and `:param:` at the first whitespace. Therefore, it does not allow to use a type containing whitespace (ex. `Dict[str, str]`). This changes the splitting logic to divide the field name at the last whitespace (a.k.a `rstrip()`). It allows to use whitespaces on types. | |||||
* | | py domain: Add testcase for empty callable (refs: #9427) | Takeshi KOMIYA | 2021-07-11 | 1 | -0/+9 | |
|/ | ||||||
* | Fix #9205: py domain: canonical option causes xref resolution error | Takeshi KOMIYA | 2021-05-11 | 1 | -0/+11 | |
| | | | | | | The :canonical: option causes "more than one target for cross-reference" warning because the class having the same name is registered. | |||||
* | Fix #9121: py domain: duplicated warning for canonical and alias | Takeshi KOMIYA | 2021-04-23 | 1 | -0/+33 | |
| | | | | | | A duplicated warning is emitted when both canonical and its alias objects are defined on the same document. But it should not be emitted because they're the same object, not conflicted. | |||||
* | Fix #8127: py domain: Ellipsis in info-field-list causes nit-picky warning | Takeshi KOMIYA | 2021-04-17 | 1 | -1/+24 | |
| | | | | | | | | | | On parsing the types, the leading dot of the ellipsis (...) is considered as a reference name. And its first dot is considered as a notation for relative type reference (ex. ".ClassName"). As a result, it was converted double dots unexpectedly. This changes the parsing rule to treat the ellipsis as a symbol, not a name. | |||||
* | py domain: Add py:property directive to describe a property (refs: #7068) | Takeshi KOMIYA | 2021-03-11 | 1 | -0/+27 | |
| | ||||||
* | Fix #7199: py domain: Add a new confval: python_use_unqualified_type_names | Takeshi KOMIYA | 2021-03-06 | 1 | -0/+19 | |
| | | | | | | Add a new config variable: python_use_unqualified_type_names. If enabled, it goes to suppress the module name of the python reference if it can be resolved. | |||||
* | Merge branch '3.x' into master_with_merged_3.x | jfbu | 2021-02-02 | 1 | -0/+28 | |
|\ | ||||||
| * | py domain: Support type union operator (PEP-604) (refs: #8775) | Takeshi KOMIYA | 2021-02-01 | 1 | -0/+28 | |
| | | | | | | | | | | | | Upgrade annotation parser for python domain to support type union operator introduced in PEP-604. It's available on all python interpreters. | |||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2021-01-16 | 1 | -0/+24 | |
|\ \ | |/ | ||||||
| * | test: Add testcase for relative/short xref for py domain | Takeshi KOMIYA | 2021-01-11 | 1 | -0/+24 | |
| | | ||||||
* | | Close #5977: :var: field do not create a cross-reference | Takeshi KOMIYA | 2021-01-01 | 1 | -3/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | Since its beginning, `:var:` field has created a cross-reference to the attribute having the same name. It is meaningful only if the attribute is documented by `py:attribute` directive. It means the `:var:` field and `:attr:` role are almost the same and conflicted. Additionally, the cross-reference points incorrect variable if the target is not documented. Thus, the cross-reference feature of `:var:` field is disabled. | |||||
* | | test: py domain: Add a testcase for :var: field | Takeshi KOMIYA | 2021-01-01 | 1 | -0/+26 | |
| | | ||||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2021-01-01 | 1 | -1/+1 | |
|\ \ | |/ | ||||||
| * | A happy new year! | Takeshi KOMIYA | 2021-01-01 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype | |||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-12-20 | 1 | -0/+47 | |
|\ \ | |/ | ||||||
| * | Fix #8365: py domain: :type: and :rtype: gives false ambiguous warnings | Takeshi KOMIYA | 2020-12-19 | 1 | -0/+47 | |
| | | | | | | | | | | | | The searching context like py:module and py:class are missing in the pending_xref nodes generated from info-field-lists. This sets these searching context info to them. | |||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-11-12 | 1 | -8/+6 | |
|\ \ | |/ | ||||||
| * | Sort imports with isort | François Freitag | 2020-11-11 | 1 | -8/+6 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Keep imports alphabetically sorted and their order homogeneous across Python source files. The isort project has more feature and is more active than the flake8-import-order plugin. Most issues caught were simply import ordering from the same module. Where imports were purposefully placed out of order, tag with isort:skip. | |||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-11-05 | 1 | -0/+8 | |
|\ \ | |/ | ||||||
| * | Fix #6914: Emit a detailed warning when failed to resolve :ref: | Takeshi KOMIYA | 2020-11-03 | 1 | -0/+8 | |
| | | | | | | | | | | | | | | | | | | To be clear the ambiguous warning for missing-reference :ref:, this separates the warning to missing-label and missing-caption. To emit a warning dynamically, this also adds a new event: `warn-missing-reference` to customize warning messages via event handlers. | |||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-10-24 | 1 | -1/+22 | |
|\ \ | |/ | ||||||
| * | TST: Add test | Eric Larson | 2020-10-07 | 1 | -1/+9 | |
| | | ||||||
| * | Fix #8255: py domain: number in defarg is changed to decimal | Takeshi KOMIYA | 2020-10-05 | 1 | -0/+13 | |
| | | | | | | | | | | | | | | | | Number literals in default argument value is converted to decimal form unexpectedly by AST module. This fixes the signature parsing code to recosntruct it correctly. Note: This is only available in Python 3.8+. | |||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-08-01 | 1 | -0/+14 | |
|\ \ | |/ | ||||||
| * | Fix #8008: py domain: failed to parse a type annotation containing ellipsis | Takeshi KOMIYA | 2020-07-30 | 1 | -0/+14 | |
| | | | | | | | | Fix _parse_annotation() does not support a type annotation having ellipsis. | |||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-07-24 | 1 | -13/+22 | |
|\ \ | |/ | ||||||
| * | Fix #7928: py domain: failed to resolve a type annotation for the attribute | Takeshi KOMIYA | 2020-07-09 | 1 | -13/+22 | |
| | | ||||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-07-05 | 1 | -0/+16 | |
|\ \ | |/ | ||||||
| * | Add tests for noindexentry | Jakob Lykke Andersen | 2020-07-05 | 1 | -0/+16 | |
| | | ||||||
* | | Merge tag 'v3.1.1' | Takeshi KOMIYA | 2020-07-05 | 1 | -2/+5 | |
|\ \ | |/ | ||||||
| * | Fix #7808: autodoc: Warnings raised on variable and attribute type annotations | Takeshi KOMIYA | 2020-06-10 | 1 | -2/+5 | |
| | | ||||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-05-17 | 1 | -10/+12 | |
|\ \ | |/ | ||||||
| * | ... and don't break tests. | Jakob Lykke Andersen | 2020-05-14 | 1 | -8/+8 | |
| | | ||||||
| * | Close #7596: py domain: Change a type annotation for variables to a hyperlink | Takeshi KOMIYA | 2020-05-04 | 1 | -2/+4 | |
| | | ||||||
* | | py domain: Add :canonical: option | Takeshi KOMIYA | 2020-05-04 | 1 | -23/+40 | |
|/ | ||||||
* | Close #7143: py domain: Add :final: option to py:*: directives | Takeshi KOMIYA | 2020-04-28 | 1 | -1/+43 | |
| | ||||||
* | Fix #7510: py domain: keyword-only arguments are wrongly rendered | Takeshi KOMIYA | 2020-04-19 | 1 | -9/+3 | |
| | ||||||
* | Fix #7461: py domain: fails with IndexError for empty tuple in type annotation | Takeshi KOMIYA | 2020-04-12 | 1 | -0/+7 | |
| |