summaryrefslogtreecommitdiff
path: root/sphinx/ext/extlinks.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix COM812Adam Turner2023-02-181-1/+1
|
* Use PEP 595 typesAdam Turner2023-01-011-4/+4
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Merge branch '5.x'Adam Turner2022-10-161-1/+5
|\ | | | | | | | | | | | | | | # Conflicts: # .github/workflows/main.yml # CHANGES # sphinx/__init__.py # sphinx/domains/c.py
| * Don't display 'replaceable hardcoded link' when link has a slash (#10137)Anthony Sottile2022-10-051-1/+5
| |
| * Replace deprecated logging.warn with logging.warning (#10592)Hugo van Kemenade2022-06-251-3/+3
| |
* | Remove deprecated items for Sphinx 6.0 (#10471)Adam Turner2022-06-161-16/+0
| |
* | Drop python 3.6 support (#10468)Takeshi KOMIYA2022-06-161-7/+1
|/
* Merge branch '4.x'Takeshi KOMIYA2022-03-281-1/+8
|\
| * Merge pull request #10263 from nicoa/escape_base_uri_in_extlinksTakeshi KOMIYA2022-03-281-1/+8
| |\ | | | | | | escape base_uri in extlinks
| | * Fix a flake8 warningTakeshi KOMIYA2022-03-271-1/+2
| | |
| | * extlink: Strip a leading backslash on compiling patternTakeshi KOMIYA2022-03-271-1/+7
| | |
| | * escape base_uri in extlinks to avoid regex issues with URIs containing ↵Nico Albers2022-03-131-1/+1
| | | | | | | | | | | | special characters
* | | Merge branch '4.x'Takeshi KOMIYA2022-03-271-0/+5
|\ \ \ | |/ /
| * | extlinks: Disable hardcoded links detector by default (refs: #10126)Takeshi KOMIYA2022-03-271-0/+5
| | | | | | | | | | | | | | | | | | The hardcoded links detector added since 4.4.0 causes troubles in many projects. Therefore, this disables it by default, and adds a new configuration `extlinks_detect_hardcoded_links` to enable it explicitly.
* | | Merge branch '4.x'Takeshi KOMIYA2022-03-191-19/+11
|\ \ \ | |/ /
| * | Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
| | |
| * | Conform to PEP 257 summary line conventionsAdam Turner2022-02-201-2/+1
| | |
| * | Fix module docstring indentationAdam Turner2022-02-201-13/+13
| | |
| * | Fix module docstring first lineAdam Turner2022-02-201-2/+1
| | |
| * | Remove module titles in docstringsAdam Turner2022-02-191-3/+0
| |/
* | Merge commit '07110b7557a552ecfe702bdd6a2d2f9685cb1af9'Takeshi KOMIYA2022-02-141-2/+7
|\ \ | |/
| * Close #10125: extlinks: Improve suggestion message for a reference having titleTakeshi KOMIYA2022-01-231-2/+7
| |
* | Merge branch '4.x'Takeshi KOMIYA2022-01-171-1/+1
|\ \ | |/
| * address some unused loop control variables (B007)Daniel Eades2022-01-121-1/+1
| |
* | Merge branch '4.x'Takeshi KOMIYA2022-01-031-1/+1
|\ \ | |/
| * Migrate to Node.findall() from Node.traverse()Takeshi KOMIYA2022-01-031-1/+1
| | | | | | | | | | | | | | | | Node.traverse() was marked as deprecated since docutils-0.18. Instead of it, Node.findall() has been added as successor of traverse(). This applies a patch to docutils-0.17 or older to be available Node.findall() and use it.
* | Merge branch '4.x'Takeshi KOMIYA2022-01-011-1/+1
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2022-01-011-1/+1
| |
* | Merge branch '4.x'Takeshi KOMIYA2021-12-101-0/+37
|\ \ | |/
| * extlinks: Adjust priority (refs: #9800)Takeshi KOMIYA2021-11-291-1/+1
| |
| * Fix flake8 and isort errors (refs: #9800)Takeshi KOMIYA2021-11-291-7/+4
| |
| * apply review suggestionsOleg Hoefling2021-11-121-7/+6
| | | | | | | | Signed-off-by: Oleg Hoefling <oleg.hoefling@gmail.com>
| * extlinks: replacement suggestions for hardcoded linksoleg.hoefling2021-11-121-0/+45
| | | | | | | | Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
* | extlinks: Emit a warning if extlnks config does not contain '%s'Takeshi KOMIYA2021-05-031-8/+10
|/ | | | | | To let users know the deprecation surely, use logger.warning instead of RemovedInSphinxXXWarning since 5.0. It will cause a crash if users use `-W` option on their CI.
* fixup! sphinx.ext.extlinks: Allow ``%s`` in link caption stringMerry Bass2021-04-111-18/+29
| | | | | The old syntax will be deprecated in 4.x and 5.x and removed in Sphinx 6.0.
* sphinx.ext.extlinks: Allow ``%s`` in link caption stringMerry Bass2021-04-111-9/+16
| | | | | | | | | | | | | | | | Tweak syntax of extlinks to also allow ``%s`` in the link caption part. Like for the base URL ``%s`` will be substituted with the content of the role. This allows configurations like extlinks = {'quarter': ('https://example.org/quaters/%s', '%s. quarter')} with ``:quarter:`2``` getting replaced by a link titled `2. quarter`. The requirement for the caption string is to be either None or contain exactly one ``%s``. If neither is the case, then we emit a warning and fall back to the old behaviour which is concatenating the caption string with the role content.
* A happy new year!Takeshi KOMIYA2021-01-011-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
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* Migrate to py3 style type annotation: sphinx.ext.extlinksTakeshi KOMIYA2019-07-011-15/+12
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-4/+3
| |
* | Fix annotations for minor methods and functionsTakeshi KOMIYA2018-11-301-1/+1
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Remove use of six.iteritems()Jon Dufresne2018-09-111-2/+1
|/ | | | In Python 3, dict.items() is always an iterator.
* Drop typing.TYPE_CHECKINGTakeshi KOMIYA2018-03-261-3/+2
|
* Use typing.TYPE_CHECKINGTakeshi KOMIYA2018-02-191-2/+3
|
* Update type annotationsTakeshi KOMIYA2018-02-041-0/+11
|