Commit Graph

11873 Commits

Author SHA1 Message Date
Takeshi KOMIYA
d4e22793ca Fix annotations for app.add_nodes() and related functions 2018-11-24 21:59:11 +09:00
Takeshi KOMIYA
8c3a066983
Merge pull request #5663 from tk0miya/fix_typehints
Fix annotations for registry, roles and util.nodes
2018-11-23 23:41:43 +09:00
Takeshi KOMIYA
d1aeedf67e Fix annotations for util.nodes 2018-11-23 22:14:20 +09:00
Takeshi KOMIYA
9f7b4ec353 Fix annotations for roles 2018-11-23 21:48:32 +09:00
Takeshi KOMIYA
02027a5495 Fix annotations for registry 2018-11-23 21:47:30 +09:00
Takeshi KOMIYA
0c17f0ca89
Merge pull request #5662 from tk0miya/fix_typehints_for_roles
Adjust type annotations for roles to docutils'
2018-11-23 21:24:01 +09:00
Takeshi KOMIYA
e326017f74
Merge pull request #5661 from tk0miya/fix_typehints_for_transforms
Adjust type annotations for transforms to docutils'
2018-11-23 21:23:36 +09:00
Takeshi KOMIYA
5131acb651 Adjust type annotations for roles to docutils' 2018-11-23 19:36:58 +09:00
Takeshi KOMIYA
2456489269 Adjust type annotations for transforms to docutils' 2018-11-23 19:23:41 +09:00
Takeshi KOMIYA
c0f0091e6e
Merge pull request #5656 from jdufresne/exec-2to3
Deprecate evaluating Python 2 configuration files
2018-11-23 12:33:23 +09:00
Jon Dufresne
d99e2cae19 Deprecate evaluating Python 2 syntax in configuration files 2018-11-22 19:05:14 -08:00
Takeshi KOMIYA
318cfadfe0
Merge pull request #5653 from jdufresne/string_types
Replace six.string_types with native str
2018-11-22 22:59:02 +09:00
Takeshi KOMIYA
aef14afef9 Merge branch 'master' of github.com:sphinx-doc/sphinx 2018-11-22 22:15:07 +09:00
Takeshi KOMIYA
4761e70c37 Merge branch '1.8' 2018-11-22 22:14:32 +09:00
jfbu
b67105b740 LaTeX: ignore global document class options in sphinxcyrillic.sty
And sort Cyrillic glyphs in ascending order in X2 code.

Thanks to tex.sx user egreg (https://tex.stackexchange.com/a/460325/)
for providing the original code for X2 declarations using directly the
Unicode characters.
2018-11-22 13:22:17 +01:00
Jean-François B
8412bdf9d6
Merge pull request #5645 from jfbu/latex_greek_cyrillic_letters
LaTeX: support for Greek and Cyrillic
2018-11-21 23:11:15 +01:00
jfbu
5974c4010b new file: sphinx/texinputs/sphinxcyrillic.sty
Forgot to add it to previous commit :(
2018-11-21 22:51:14 +01:00
jfbu
1edf2a45b9 LaTeX: font choices for Greek and Cyrillic support, and (Xe|Lua)LaTeX 2018-11-21 22:21:02 +01:00
Takeshi KOMIYA
171020dca7
Merge pull request #5655 from tk0miya/update_doc
doc: Add deprecation info to script_files (template variable)
2018-11-22 00:30:03 +09:00
Jon Dufresne
b8631079bf Replace six.string_types with native str 2018-11-21 06:47:15 -08:00
Takeshi KOMIYA
c4df9b5de2
Merge pull request #5640 from jdufresne/makedirs
Simplify ensuredir() with Python3 stdlib features
2018-11-21 20:29:53 +09:00
Takeshi KOMIYA
45fadf7f77
Merge pull request #5654 from jdufresne/exec
Replace six.exec_() with Python 3 built-in exec()
2018-11-21 20:28:54 +09:00
Takeshi KOMIYA
68e0210746 doc: Add deprecation info to script_files (template variable) 2018-11-21 20:15:47 +09:00
Jon Dufresne
d7c781375f Replace six.exec_() with Python 3 built-in exec() 2018-11-20 21:31:51 -08:00
Jon Dufresne
77849f0ef6 Simplify ensuredir() with Python3 stdlib features
- Simplify ensuredir() to equivalent os.makedir(name, exist_ok=True)
- Do not check if a directory exists before calling
  ensuredir() (ensuredir() already handles it)
- Add exist_ok argument to path.makedirs() to follow same pattern
- Drop unnecessary .exists() check immediately before .isdir()
- Add tests for ensuredir
2018-11-20 18:37:05 -08:00
Takeshi KOMIYA
2cbc921946
Merge pull request #5650 from tk0miya/refactor_IndexEntry
Add IndexEntry class to represent an entry of indices
2018-11-21 11:09:54 +09:00
Takeshi KOMIYA
8491217553 Add IndexEntry class to represent an entry of indices 2018-11-21 10:02:45 +09:00
Takeshi KOMIYA
74f7689a70
Merge pull request #5651 from tk0miya/add_typehints_to_writers
Add better type annotations to writers
2018-11-21 10:00:24 +09:00
Takeshi KOMIYA
f128be573b Update type hints to text writer 2018-11-21 01:37:48 +09:00
Takeshi KOMIYA
42193dc581 Update type hints to texinfo writer 2018-11-21 01:37:48 +09:00
Takeshi KOMIYA
685dac96ca Update type hints to manpage writer 2018-11-21 01:37:48 +09:00
Takeshi KOMIYA
b3f085aa08 Update type hints to LaTeX writer 2018-11-21 01:37:48 +09:00
Takeshi KOMIYA
a608f7e725 Update type hints to HTML5 writer 2018-11-21 01:10:25 +09:00
Takeshi KOMIYA
c0f52fddd0 Update type hints to HTML4 writer 2018-11-21 01:10:12 +09:00
Takeshi KOMIYA
e46d14d506
Merge pull request #5649 from tk0miya/fix_annotations_latex_writer
Fix type annotations for LaTeX writer
2018-11-21 01:02:29 +09:00
Takeshi KOMIYA
d92fd2c787
Merge pull request #5638 from tk0miya/5385_master_doc_migrator
Add a handler to migrate master_doc from "contents" to "index" (refs: #5385)
2018-11-21 01:01:55 +09:00
Takeshi KOMIYA
1bd214b1a1
Merge pull request #5596 from cocoatomo/xrefrole-constructor
Simplify XRefRole constructor
2018-11-21 00:50:14 +09:00
Takeshi KOMIYA
1e700fa70c Add a handler to migrate master_doc from "contents" to "index" 2018-11-21 00:32:36 +09:00
Takeshi KOMIYA
5c6def439b
Merge pull request #5639 from stephenfin/text-writer-nits
Fix two nits with the TextBuilder class
2018-11-21 00:31:06 +09:00
Takeshi KOMIYA
34b690a577 Fix type annotations for LaTeX writer 2018-11-21 00:24:05 +09:00
Takeshi KOMIYA
5d2d4e0477
Merge pull request #5642 from jdufresne/typed
Drop explicit dependency: typed_ast
2018-11-20 23:14:37 +09:00
Takeshi KOMIYA
85dcb3d3e7
Merge pull request #5643 from stephenfin/doc-rework
Doc rework (user guide, part 5)
2018-11-20 23:03:48 +09:00
jfbu
f42d344e2c LaTeX: update sphinx.sty version and date 2018-11-18 10:16:30 +01:00
Jean-François B
9c8c2101d7
Merge pull request #5630 from jfbu/5520_latex_caption_package
LaTeX: compatibility with caption package
2018-11-18 10:11:04 +01:00
jfbu
cdb70a1dde LaTeX: add a comment 2018-11-18 10:00:23 +01:00
jfbu
15cf5ff09a LaTeX: compatibility with captions package, last part
Make sure vertiale spacing is the same for tabular(y)/longtable
also for multi-line captions
2018-11-18 09:47:01 +01:00
jfbu
4457038550 LaTeX: compatibility with caption package, 2nd part
Ensure same vertical spaces above caption for tabular(y) and longtable
rendered tables.

Fixes: #5520
2018-11-18 00:40:28 +01:00
jfbu
6283324b1a Load CMU by filename, not font name, for XeLaTeX 2018-11-17 01:46:18 +01:00
jfbu
f56431b687 Fix flake8 2018-11-17 00:41:53 +01:00
jfbu
2825e338c2 LaTeX: support for Greek and Cyrillic
0. do not escape Unicode Greek letters via LaTeX math mark-up: pass them
   through un-modified to LaTeX document,

1. if "fontenc" receives extra option LGR, then pdflatex will support
   Unicode Greek letters (not in math), and with extra option T2A it
   will support (most) Unicode Cyrillic letters.

2. for pdflatex with LGR, this will use "textalpha" LaTeX package and
   "substitutefont" package to set up some automatic font substitution
   to work around the unavailability of Greek with "times"
   package (which is default font package chosen by Sphinx for
   pdflatex), same with T2A and "substitutefont" for Cyrillic.

3. for xelatex/lualatex, set up Computer Modern Unicode as default font,
   as it supports Cyrillic and Greek scripts,

4. for platex, don't do anything special as the engine already has
   its default font supporting Cyrillic and Greek (even in math mode!)

Closes: #5251
Fixes:  #5248
Fixes:  #5247
2018-11-16 21:14:51 +01:00