summaryrefslogtreecommitdiff
path: root/sphinx/ext/viewcode.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | | 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-7/+6
| |
* | Fix annotations (minor fixes)Takeshi KOMIYA2018-12-031-6/+4
| |
* | Fix annotaions for extensionsTakeshi KOMIYA2018-11-281-1/+3
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Merge branch '1.8'Takeshi KOMIYA2018-11-011-1/+1
|\ \ | |/
| * Fix #5471: Show appropriate warning for deprecated APIsTakeshi KOMIYA2018-10-171-1/+1
| |
* | Remove use of six.iteritems()Jon Dufresne2018-09-111-3/+3
|/ | | | In Python 3, dict.items() is always an iterator.
* Plugins can resolve imported members for viewcodeAshley Whetter2018-08-131-1/+7
|
* Rename viewcode_import to viewcode_follow_imported_members (refs: #4035)Takeshi KOMIYA2018-05-071-2/+14
|
* Plugins can find source code for viewcodeAshley Whetter2018-04-241-11/+21
| | | | Fixes #4035
* Merge branch '1.7'Takeshi KOMIYA2018-03-181-2/+2
|\
| * Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-2/+2
| | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | Merge commit '6694981dd6939ab876b27d4e20a8128561c307ac'Takeshi KOMIYA2018-03-151-1/+1
|\ \ | |/
| * Fix #4701: viewcode: Misplaced ``<div>`` in viewcode html outputTakeshi KOMIYA2018-03-051-1/+1
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-02-181-2/+2
|\ \ | |/
| * Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+2
| |
* | Merge branch '1.7-release'Takeshi KOMIYA2018-01-311-2/+1
|\ \ | |/
| * Use flake8-import-orderTakeshi KOMIYA2018-01-281-2/+1
| |
* | Close #4460: extensions should return the version of data structure as metadataTakeshi KOMIYA2018-01-251-1/+5
|/
* Merge branch 'stable'Takeshi KOMIYA2018-01-081-3/+3
|\
| * Fixes bug when evaluating entry to boolGuillaume Gay2018-01-081-3/+3
| | | | | | | | | | | | | | | | | | | | As reported here: https://github.com/rtfd/readthedocs.org/issues/3411 sphinx sometimes fails with the error: ```python File "/home/docs/checkouts/readthedocs.org/user_builds/drf-yasg/envs/latest/lib/python3.5/site-packages/sphinx/ext/viewcode.py", line 74, in has_tag if entry is None or entry[0] != code: TypeError: 'bool' object is not subscriptable ``` This is not critical as whipping the build or even just running it again fixes it, but the error is confusing... I believe switching the two if statement above should prevent this from happening.
* | Merge branch 'happy_new_year' into masterTakeshi KOMIYA2018-01-011-1/+1
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2018-01-011-1/+1
| |
* | Reformat to avoid overly long line flake8 E501Peter Cock2017-09-201-4/+5
| |
* | Sort modules for highlightingPeter Cock2017-09-121-1/+1
|/ | | | | | | | | With this change the output will be in a predictable order on older versions of Python (where the dictionary is not sorted by default). This is helpful for debugging and interpreting the progress from the terminal.
* please see #3700Iacchus Mercurius2017-05-071-1/+1
|
* Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Upgrade to mypy-0.5Takeshi KOMIYA2017-03-031-1/+1
| |
* | Sphinx.status_iterator() is now deprecatedTakeshi KOMIYA2017-01-071-5/+5
| |
* | Update by reviewTakeshi KOMIYA2017-01-041-2/+1
| |
* | Use loggersTakeshi KOMIYA2017-01-021-1/+1
| |
* | Use sphinx.util.logging instead app.info(), verbose(), debug() and debug2()Takeshi KOMIYA2017-01-021-5/+7
| |
* | Add type-check annotations to sphinx.extTakeshi KOMIYA2016-11-161-13/+26
|/
* Turn off viewcode extension by defaultYoshiki Shibukawa2016-07-281-0/+5
|
* Fix #2479: `sphinx.ext.viewcode` uses python2 highlighter by defaultTakeshi KOMIYA2016-06-241-2/+2
|
* viewcode: default to python3 highlighting if highlight_language is python3Georg Brandl2016-02-141-1/+5
|
* Obligatory copyright update.Georg Brandl2016-01-141-1/+1
|
* Support PEP-440 version spec for developers.shimizukawa2015-03-141-1/+1
|
* ext: pep8 fixesGeorg Brandl2015-03-081-2/+2
|
* Merge branch 'stable'Georg Brandl2015-01-031-1/+1
|\
| * all: update copyrightGeorg Brandl2015-01-031-1/+1
| |
* | Make remaining builtin extensions parallel-read-proof.Georg Brandl2014-09-221-12/+25
| |
* | [WIP] parallel readGeorg Brandl2014-09-221-1/+1
| |
* | Change extension setup() return value to a dictionary of metadata.Georg Brandl2014-09-221-1/+1
| | | | | | | | This makes it possible to introduce more metadata values later.
* | Return version from setup() for all sphinx.ext extensions.Georg Brandl2014-09-031-0/+2
| |
* | :mod:`~sphinx.ext.viewcode` support imported function/class aliases. Closes #623Takayuki Shimizukawa2014-08-221-6/+33
| |
* | use six privided text_type() to replace with unicode() to support py2/py3 in ↵Takayuki Shimizukawa2014-04-291-2/+2
| | | | | | | | one source. refs #1350.
* | use six privided iteritems(),itervalues() to support py2/py3 in one source. ↵Takayuki Shimizukawa2014-04-291-2/+3
|/ | | | refs #1350.