Commit Graph

15686 Commits

Author SHA1 Message Date
Matt from Documatt
2b091c32e5
Add Tech writer at work blog
Adding my blog about tech writing with Sphinx. Built with Sphinx and custom theme.
2020-07-17 10:34:38 +02:00
Victor "multun" Collod
602105826a i18n: process math_block as a literal node 2020-07-16 20:08:49 -07:00
Jakob Lykke Andersen
c2df631178
Merge pull request #7967 from jakobandersen/c_optimization
Speed up the C domain a bit
2020-07-16 20:27:41 +02:00
Jakob Lykke Andersen
b58affe91b C, remove redundant code in clear_doc 2020-07-16 20:01:32 +02:00
Jakob Lykke Andersen
79cd37d81c C, speed up identifier comparison 2020-07-16 20:01:32 +02:00
Takeshi KOMIYA
68c732e97c autosummary: Add testcase for module constants (refs: #7469) 2020-07-17 01:15:28 +09:00
Takeshi KOMIYA
61e23abec6
Merge pull request #7943 from tk0miya/7469_translatable
Fix autosummary: "Module attributes" header is not translatable
2020-07-17 01:02:05 +09:00
Takeshi KOMIYA
8c8943f6c0
Merge pull request #7946 from tk0miya/904_autofunction_ivar_support
Fix #904: autodoc: An instance attribute cause a crash of autofunction
2020-07-17 00:52:20 +09:00
Takeshi KOMIYA
2098e6b260 Fix autosummary: "Module attributes" header is not translatable
refs: #7469
2020-07-17 00:47:07 +09:00
Takeshi KOMIYA
d7d14f20cd
Merge pull request #7955 from peterbell10/alias-deprecation-message
Improve warning message from deprecated_alias
2020-07-17 00:22:32 +09:00
Takeshi KOMIYA
610ab926a4 fix 2020-07-16 23:59:26 +09:00
Peter Bell
0000239776 Preserve backwards compatibility 2020-07-16 15:48:51 +01:00
Takeshi KOMIYA
aadb14beff
Merge pull request #7965 from sphinx-doc/dependabot/npm_and_yarn/lodash-4.17.19
Bump lodash from 4.17.14 to 4.17.19
2020-07-16 19:55:48 +09:00
dependabot[bot]
cccad541a5
Bump lodash from 4.17.14 to 4.17.19
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.14 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.14...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-16 07:39:49 +00:00
Keewis
274d9fe4f9 don't try to generate test cases in code 2020-07-16 00:27:00 +02:00
Keewis
cc8baf60ec only transform the types if napoleon_use_param is true 2020-07-16 00:27:00 +02:00
Keewis
660b818636 add type hints and location information 2020-07-16 00:27:00 +02:00
Keewis
922054ed6f replace .format with %-style string interpolation 2020-07-16 00:27:00 +02:00
Keewis
2b981b6abd make sure singletons actually use :obj: 2020-07-16 00:27:00 +02:00
Keewis
fc43f494ac add back the trailing whitespace 2020-07-16 00:27:00 +02:00
Keewis
4fc22cd0c4 use the dedent function imported at module-level 2020-07-16 00:27:00 +02:00
Keewis
f30c0cb9f6 rewrite the invalid token_type test to check the warnings 2020-07-16 00:27:00 +02:00
Keewis
804df88e8d use :class: as default role and only fall back to :obj: for singletons 2020-07-16 00:27:00 +02:00
Keewis
f4817be7a9 use the format method instead of f-strings 2020-07-16 00:26:59 +02:00
Keewis
7d8aaf2c03 remove a debug print 2020-07-16 00:26:59 +02:00
Keewis
fedceb25ff move the binary operator "or" to before the newline 2020-07-16 00:26:59 +02:00
Keewis
4d0b4f2931 add back the trailing whitespace 2020-07-16 00:26:11 +02:00
Keewis
26855f92d8 also test invalid string tokens 2020-07-16 00:26:10 +02:00
Keewis
1140f7b26d also check type specs without actual types 2020-07-16 00:26:10 +02:00
Keewis
d177e58999 reimplement the value set combination function using collections.deque 2020-07-16 00:26:10 +02:00
Keewis
866c822e11 move the warnings to token_type 2020-07-16 00:26:10 +02:00
Keewis
37e02512fc make invalid value sets a literal to avoid further warnings 2020-07-16 00:26:10 +02:00
Keewis
b0da0e5aef remove the default for the default translation 2020-07-16 00:26:10 +02:00
Keewis
af6071e571 expect a warning instead of an error 2020-07-16 00:26:10 +02:00
Keewis
dc8c7ac9f8 update the integration test 2020-07-16 00:26:10 +02:00
Keewis
20e36007fe treat value sets as literals 2020-07-16 00:26:10 +02:00
Keewis
e3b7e16b0a move the regexes to top-level 2020-07-16 00:26:10 +02:00
Keewis
9bfbe252f1 set a default so translations don't to be specified 2020-07-16 00:26:09 +02:00
Keewis
9835f1fff8 test that braces and quotes in strings work 2020-07-16 00:26:09 +02:00
Keewis
eab49125e9 update the splitting regexp to handle braces in strings and escaped quotes 2020-07-16 00:26:09 +02:00
Keewis
ce60b555ee properly use sphinx's logger 2020-07-16 00:26:08 +02:00
Keewis
b846db7e53 emit a warning instead of raising an error 2020-07-16 00:25:19 +02:00
Keewis
27733d6f61 replace the custom role with markup 2020-07-16 00:24:27 +02:00
Keewis
e1d7edac25 rename the configuration option 2020-07-16 00:24:27 +02:00
Keewis
ad89b1f76a replace the hard-coded mapping of translations with a config option 2020-07-16 00:22:56 +02:00
Keewis
2882c3465a fix the expected parameters section to match the current status 2020-07-16 00:22:56 +02:00
Keewis
fc70205fb4 get the type converter function to work, verified by new tests 2020-07-16 00:22:56 +02:00
Keewis
25937f745a move tokenize_type_spec to its own function and add tests for it 2020-07-16 00:22:56 +02:00
Keewis
8ab210f1b0 don't use the obj role if it is not necessary 2020-07-16 00:22:56 +02:00
Keewis
ace933107a move the numpy type spec parsing function out of NumpyDocstring 2020-07-16 00:22:55 +02:00