Takeshi KOMIYA
f30284ef92
Merge pull request #7966 from tk0miya/7469_additional_testcase
...
autosummary: Add testcase for module constants (refs: #7469 )
2020-07-19 16:43:01 +09:00
Takeshi KOMIYA
b3b7cbbd38
Fix #7983 : autodoc: Generator type annotation is wrongly rendered in py36
...
This adds a special handler (if-branch) for Generator type to stringify
them correctly. So far, they have been considered as a kind of Callable.
2020-07-19 15:48:07 +09:00
Takeshi KOMIYA
f65ef0e623
Merge pull request #7975 from tk0miya/2050_2nd_symbol_section
...
Fix #2050 : Symbols sections are appeared twice in the index page
2020-07-19 15:10:50 +09:00
Takeshi KOMIYA
a111b9aba9
Merge pull request #7957 from tk0miya/4888_keep_refexplicit
...
Fix #4888 : i18n: Failed to add an explicit title to ``:ref:`` role
2020-07-19 15:08:51 +09:00
Takeshi KOMIYA
35e1623338
Fix #4888 : i18n: Failed to add an explicit title to `:ref:` role
...
To allow to give (or not to give) an explicit title to the
pending_xref nodes on translation, this skips to override the
attribute on merge original and translated documents.
2020-07-19 15:00:38 +09:00
Takeshi KOMIYA
80c981e2c0
Merge pull request #7980 from tkoyama010/patch-1
...
fix typo
2020-07-19 14:15:16 +09:00
Takeshi KOMIYA
897be0ebae
Close #7784 : i18n: The alt text for image is translated by default
...
Make alt text for image translatable by default without settings of
gettext_additional_targets.
2020-07-19 12:58:28 +09:00
Tetsuo Koyama
ae7c4cc3b8
fix typo
2020-07-19 00:43:11 +00:00
Takeshi KOMIYA
081dcd23c1
test: Remove search link from test-root
...
To make EPUB output valid, remove a search link from test-root.
2020-07-18 16:57:51 +09:00
Takeshi KOMIYA
00e4a9e5b5
Merge pull request #7977 from tk0miya/refactor_testcase_for_toctree_self
...
Move "self" toctree testcase to test-toctree
2020-07-18 16:56:50 +09:00
Takeshi KOMIYA
4bfdd804c2
Move "self" toctree testcase to test-toctree
...
To be epubcheck clean, remove "self" toctree from root case.
2020-07-18 16:42:23 +09:00
Takeshi KOMIYA
000328f7fd
test: Decode stdout and stderr of epubcheck
2020-07-18 16:38:22 +09:00
Takeshi KOMIYA
66da266441
Fix #2050 : Symbols sections are appeared twice in the index page
...
Multibyte symbols are categorized to independent symbols section
different to single byte symbols. This integrate them to a single
section.
2020-07-18 15:52:57 +09:00
Takeshi KOMIYA
488a173904
Fix #1362 : autodoc: Support private class attributes
...
So far, autodoc treats a "private" class attribute as a mere attribute.
But its name is mangled by python interpreter. This make it unmangled
name to be documented expectedly.
2020-07-18 03:39:38 +09:00
Takeshi KOMIYA
68c732e97c
autosummary: Add testcase for module constants (refs: #7469 )
2020-07-17 01:15:28 +09:00
Takeshi KOMIYA
610ab926a4
fix
2020-07-16 23:59:26 +09:00
Keewis
274d9fe4f9
don't try to generate test cases in code
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
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
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
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
9835f1fff8
test that braces and quotes in strings work
2020-07-16 00:26:09 +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
b1f43d2fff
use textwrap for a normal indentation depth
2020-07-16 00:19:58 +02:00
Keewis
a7bbedfbb7
add a test for the parameter type conversions
2020-07-16 00:19:22 +02:00
Hameer Abbasi
436519743b
Move to MathJax 3.
2020-07-15 13:09:08 +02:00
Joel Nothman
aae8ce8efa
Fix toctree generation
2020-07-15 18:46:51 +10:00
Keewis
467533ffe8
add tests to make sure the warning is raised
2020-07-13 15:49:03 +02:00
Takeshi KOMIYA
d45d02ffda
Merge pull request #7940 from AleksaC/fix_double_trailing_newline_apidoc
...
Fix double trailing newline apidoc
2020-07-12 22:15:55 +09:00
Takeshi KOMIYA
5d8b94cd9e
Merge branch '3.x' into 7901_resolve_types_for_overloaded_funcs
2020-07-12 14:15:36 +09:00
Takeshi KOMIYA
17a5a29f1e
Fix #7935 : autodoc: A default value inspect._empty conseals signatures
...
A function signature is not shown when the function has a parameter
having ``inspect._empty`` as its default value because Signature class
validates function signatures on instantiation.
2020-07-12 14:03:28 +09:00
Takeshi KOMIYA
d0416e7f71
Merge pull request #7930 from tk0miya/7928_resolve_typehints_for_attrs
...
Fix #7928 : py domain: failed to resolve a type annotation for the attribute
2020-07-11 22:38:20 +09:00
Takeshi KOMIYA
70d521ad9c
Merge branch '3.x'
2020-07-11 21:59:58 +09:00
Takeshi KOMIYA
6dfbc5108e
Close #7849 : html: Add html_codeblock_linenos_style
2020-07-11 20:59:38 +09:00
AleksaC
73bbe90ee0
Cleaner fix for double trailing whitespace apidoc
2020-07-11 12:32:37 +02:00
Takeshi KOMIYA
916cd4c844
Fix #7901 : autodoc: annotations for overloaded functions are not resolved
...
So far, type annotations for overloaded functions are not resolved
because they are obtained from AST directly. This tries to evaluate
them using a context of its function or method.
2020-07-11 12:49:24 +09:00
AleksaC
72abb19740
Remove double trailing newlines from apidoc tests
2020-07-10 23:19:07 +02:00
Joel Nothman
71d1b37f8a
Simplify dummy module
2020-07-10 11:31:27 +10:00
Joel Nothman
52c173bdb9
Responding to comments
2020-07-10 11:30:06 +10:00
Takeshi KOMIYA
4410668776
Fix #7928 : py domain: failed to resolve a type annotation for the attribute
2020-07-09 01:49:34 +09:00