Commit Graph

10861 Commits

Author SHA1 Message Date
Takeshi KOMIYA
dad20201db refactor: Convert the form of html_css_files 2018-05-11 02:32:04 +09:00
Takeshi KOMIYA
d6db20781a Deprecate methods for pickling/unpickling on BuildEnvironment 2018-05-11 02:28:01 +09:00
Takeshi KOMIYA
48a1941591 Increment ENV_VERSION 2018-05-11 02:28:01 +09:00
Takeshi KOMIYA
8e2225b4fc Make BuildEnvironment picklable directly 2018-05-11 02:28:01 +09:00
Takeshi KOMIYA
0e2cb4793e Make Config picklable 2018-05-11 02:28:01 +09:00
Takeshi KOMIYA
a41db7d2d0 autodoc: Remove unused dummy class; testcls 2018-05-10 23:18:40 +09:00
Takeshi KOMIYA
ea2017294c refactor: Fill types column for default config_values 2018-05-10 22:59:30 +09:00
Takeshi KOMIYA
9f1fead9c5 Fix wrong argument for Domain.process_doc 2018-05-09 22:59:37 +09:00
Shengjing Zhu
ed871965e9 fix lang_COUNTRY not fallback correctly for IndexBuilder
In IndexBuilder, it will fallback to <lang> when the lang
is passed as <lang_COUNTRY>, and will fallback to en when
not found.

::
    lang_class = languages.get(lang)    # type: Type[SearchLanguage]
                                        # add language-specific SearchLanguage instance

    # fallback; try again with language-code
    if lang_class is None and '_' in lang:
        lang_class = languages.get(lang.split('_')[0])

    if lang_class is None:
        self.lang = SearchEnglish(options)  # type: SearchLanguage

So there's no need to check lang before creating the IndexBuilder
instance.

Signed-off-by: Shengjing Zhu <i@zhsj.me>
2018-05-09 13:14:21 +08:00
shimizukawa
ab101744f2 Use twine instead of 'setup.py upload'. There are security reason ( https://packaging.python.org/tutorials/distributing-packages/#uploading-your-project-to-pypi ) and metadata reason (refs #4936 ). 2018-05-09 11:31:41 +09:00
Takeshi KOMIYA
169297d0b7
Merge pull request #4942 from tk0miya/reduce_DeprecationWarnings
refactor: Reduce DeprecationWarnings
2018-05-09 01:06:52 +09:00
Julien Palard
6dcdce685d i18n: Ignore dot-directories like .git/ in LC_MESSAGES/.
This avoids warnings when find_catalog_source_files returns files
found in .git/ like:

WARNING: Start of line didn't match any expected keyword./refs/heads/freezed-library/colorsys.mo
WARNING: Problem on line 1: 0000000000000000000000000000000000000000 032a00a7391ec8a155bbc54d66ba72fb1b7bdbf1 Julien Palard <julien@palard.fr> 1521582790 +0100 branch: Created from freezed/library/colorsys.po

`.po` files can typically reside in .git/refs/heads/ if some branches
name end with .po, in which case they contain a SHA1, not
translations, leading to warnings.
2018-05-08 11:02:14 +02:00
Takeshi KOMIYA
5c56c99dfd Fix #4913: i18n: literal blocks in bullet list are not translated 2018-05-07 22:25:42 +09:00
Takeshi KOMIYA
4c3e757ad7 refactor: Reduce DeprecationWarnings 2018-05-07 21:37:54 +09:00
Takeshi KOMIYA
fad03ea050 Rename viewcode_import to viewcode_follow_imported_members (refs: #4035) 2018-05-07 21:22:13 +09:00
Takeshi KOMIYA
d17f3955a5 Fix #4877: latex: Don't use Babel.get_language() 2018-05-07 21:18:57 +09:00
Takeshi KOMIYA
2d42753acd
Merge pull request #4935 from tk0miya/4932_ignored_subpackages
Fix #4932: apidoc: some subpackages is ignored if sibling subpackage contains underscored module
2018-05-07 01:11:44 +09:00
Takeshi KOMIYA
3fdef7ec62
Merge pull request #4816 from AWhetter/fix_4035_2
Plugins can find source code for viewcode
2018-05-07 00:32:52 +09:00
Takeshi KOMIYA
f2af9ff97c
Merge branch 'master' into fix_4035_2 2018-05-06 23:27:51 +09:00
Takeshi KOMIYA
8c430197cc
Merge pull request #4934 from tk0miya/update_docs
Update docs (refs: #4875)
2018-05-06 16:37:41 +09:00
Takeshi KOMIYA
3e8653b885
Merge pull request #4904 from tk0miya/refactor_latex_thebibliography
latex: use \cite for citation references
2018-05-06 16:36:55 +09:00
Takeshi KOMIYA
1793e5c8e8 Fix flake8 violation 2018-05-06 02:08:00 +09:00
shimizukawa
5fbc6d378d move `get_full_module_name and repr_domxml` functions from logging to nodes. by review on https://github.com/sphinx-doc/sphinx/pull/4918#discussion_r185838236. 2018-05-04 07:34:42 +09:00
Takeshi KOMIYA
f6259c696b Adjust MAX_CITATION_LABEL_LENGTH 2018-05-03 23:46:25 +09:00
Takeshi KOMIYA
996bcb561e Avoid ImportError 2018-05-03 23:38:09 +09:00
Takeshi KOMIYA
8bc136a9cb Use \sphinxcite instead of \cite 2018-05-03 20:58:30 +09:00
Takeshi KOMIYA
34b6bea6a8 Fix longest_label should be escaped 2018-05-03 20:57:29 +09:00
Takeshi KOMIYA
c1b87ff0d3 Suppress braces surround bibitem 2018-05-03 20:57:29 +09:00
Takeshi KOMIYA
627ca87059 Fix the layout of thebibliography environment 2018-05-03 20:57:29 +09:00
Takeshi KOMIYA
92d8935df0 latex: Use `\cite for citation references instead \hyperref` 2018-05-03 20:57:29 +09:00
Takeshi KOMIYA
304c208d32 Add BibliographyTransform to restruct doctree for LaTeX 2018-05-03 20:54:42 +09:00
Takeshi KOMIYA
82a123f1d4 Add testcase for thebibliography 2018-05-03 20:50:24 +09:00
Takeshi KOMIYA
49385d944b Fix #4932: apidoc: some subpackages is ignored if sibling subpackage contains underscored module 2018-05-03 18:43:52 +09:00
Takeshi KOMIYA
5a90e0bc85 Update docs (refs: #4875) 2018-05-03 17:40:32 +09:00
Takeshi KOMIYA
6ece10c29f
Merge pull request #4870 from tk0miya/refactor_latex_footnotes
Refactor LaTeX footnotes
2018-05-03 12:55:44 +09:00
Takeshi KOMIYA
8febb09373
Merge branch 'master' into refactor_latex_footnotes 2018-05-03 11:40:44 +09:00
Takeshi KOMIYA
3beb7b8da4
Merge pull request #4908 from tk0miya/4811_ignore_files_on_html_static_path
Fix #4811: The files under html_static_path are excluded from source
2018-05-03 11:39:42 +09:00
Takeshi KOMIYA
cbf4ee24f9 Fix #4811: The files under html_static_path are excluded from source 2018-05-03 11:07:14 +09:00
Takeshi KOMIYA
ec76f9cd47 Merge branch '1.7' 2018-05-03 11:06:16 +09:00
Takeshi KOMIYA
cb8c659320
Merge pull request #4933 from tk0miya/mypy-0.600
Mypy 0.600
2018-05-03 11:04:31 +09:00
Takeshi KOMIYA
b1d79a4175 Fix mypy violations 2018-05-03 10:31:18 +09:00
Takeshi KOMIYA
656f80cca9 mypy: add --no-strict-optional
Since mypy-0.600, validations for Optional becomes very strict. It
interfere our development. So this disables it temporarily.
2018-05-03 10:26:59 +09:00
Takeshi KOMIYA
d55b17d091 Update CHANGES for PR #4924 2018-05-03 09:34:02 +09:00
Takeshi KOMIYA
6d37d29ce8
Merge pull request #4924 from derdennis/1.7
Fixed the HTML search for uppercase words in all languages
2018-05-03 09:33:08 +09:00
Takeshi KOMIYA
c8a4b16e56
Merge pull request #4909 from tk0miya/789_escape_braces_on_samp_role
Fix #789: ``:samp:`` role supports to escape curly braces with backslash
2018-05-03 09:31:30 +09:00
Tommy Nguyen
a7c6cb0180
Fix blank URL_ROOT
pathto doesn't expand in non-HTML templates so the workaround involves
expanding it in the HTML file and passing it as a data attribute to
the script.
2018-05-02 13:44:51 -04:00
Takeshi KOMIYA
0ea06e40ca
Merge branch 'master' into 789_escape_braces_on_samp_role 2018-05-03 01:32:35 +09:00
Takeshi KOMIYA
f1221cc9fd
Merge pull request #4923 from tk0miya/fix_urls_for_css
Fix URLs for css in Windows
2018-05-03 01:31:27 +09:00
Takeshi KOMIYA
baca035fa2
Merge pull request #4926 from tk0miya/optimize_copy_asset
Optimize copy_asset()
2018-05-03 01:30:07 +09:00
Takayuki SHIMIZUKAWA
fce6d0d7d7
add debug log for patching/extracting i18n nodes (#4918)
After fixing #4919, sphinx/util/logging.py:L120 must be commented-in and next L121 line will be removed.
2018-05-02 10:55:11 +09:00