Takeshi KOMIYA
1e50946364
Merge pull request #5671 from tk0miya/refactor_Reader
...
Fix SphinxBaseReader.get_transform() refers an attribute of subclasses
2018-11-28 01:54:01 +09:00
Takeshi KOMIYA
5007d3d68f
Fix SphinxBaseReader.get_transform() refers an attribute of subclasses
2018-11-25 12:29:54 +09:00
Takeshi KOMIYA
3c99d00605
Add sphinx.util.typing:unicode to help mypy-3 migration
2018-11-24 23:19:51 +09:00
Jon Dufresne
710ca3d7c3
Use super() to call parent class's method
2018-11-11 13:07:12 -08:00
Takeshi KOMIYA
545bb77b1e
Fix typehints: sphinx.io
2018-11-05 01:20:24 +09:00
Takeshi KOMIYA
8b687ac304
Merge branch '1.8'
2018-11-01 01:24:12 +09:00
Takeshi KOMIYA
257394a459
Fix #5471 : Show appropriate warning for deprecated APIs
2018-10-17 02:05:07 +09:00
Jon Dufresne
0d6be504ea
Remove use of six.iteritems()
...
In Python 3, dict.items() is always an iterator.
2018-09-11 06:03:34 -07:00
Takeshi KOMIYA
328ff6eeae
Fix i18n: warnings for translation catalogs have wrong line numbers
2018-08-22 21:01:50 +09:00
Takeshi KOMIYA
72e60ce165
Merge branch '1.7'
2018-06-09 20:53:01 +09:00
Takeshi KOMIYA
b9d06fd802
Fix #5016 : crashed when recommonmark.AutoStrictify is enabled
2018-06-07 21:54:28 +09:00
Takeshi KOMIYA
d388712f6e
Fix flake8 violation
2018-04-21 20:01:27 +09:00
Takeshi KOMIYA
0354b29459
Merge branch 'master' into 4827_remove_substitution_defs_from_doctree
2018-04-21 19:20:40 +09:00
Takeshi KOMIYA
6b14cd3bd6
Change priority of versioning doctrees
2018-04-21 11:28:23 +09:00
Takeshi KOMIYA
538c061e7c
Change priority of doctree-read event
2018-04-16 00:16:18 +09:00
Takeshi KOMIYA
af58d7faed
Remove substitution_definition nodes from doctree on reading phase (refs: #4827 )
2018-04-15 02:35:26 +09:00
Takeshi KOMIYA
5e4da90ffa
Change priority of sphinx-domains
2018-04-15 02:34:26 +09:00
Takeshi KOMIYA
9efaf18852
Merge branch '1.7'
2018-03-18 01:21:01 +09:00
Takeshi KOMIYA
40446f5949
Fix mypy violations
2018-03-14 01:03:02 +09:00
Takeshi KOMIYA
70a622b86c
Revert "Use typing.TYPE_CHECKING for typehints"
...
This reverts commit a073e17537
.
2018-03-13 23:23:15 +09:00
Takeshi KOMIYA
6faef28150
Make console and warning messages translatable
2018-03-03 23:18:38 +09:00
Takeshi KOMIYA
f8bb40ab30
Merge branch '1.7'
2018-02-18 12:39:07 +09:00
Takeshi KOMIYA
5d1b8ff55f
Fix mypy violations
2018-02-14 22:57:41 +09:00
Takeshi KOMIYA
a073e17537
Use typing.TYPE_CHECKING for typehints
2018-02-14 22:57:38 +09:00
Takeshi KOMIYA
e5adf8ce91
Merge branch '1.7-release'
2018-02-11 19:35:48 +09:00
Takeshi KOMIYA
2275c67966
io: Choose FileInput using `supported
` attribute (refs: #4564 )
2018-02-10 15:07:23 +09:00
Takeshi KOMIYA
dc2b153835
Update type annotations
2018-02-04 15:14:51 +09:00
Takeshi KOMIYA
4647fcee45
Merge branch '1.7-release'
2018-01-31 20:40:56 +09:00
Takeshi KOMIYA
9f5c676322
Use flake8-import-order
2018-01-28 01:52:16 +09:00
Takeshi KOMIYA
2be87e4851
Fix mypy violation
2018-01-25 10:51:04 +09:00
Takeshi KOMIYA
3047fdbbf4
Move get_filetype() to sphinx.io
2018-01-25 02:03:56 +09:00
Takeshi KOMIYA
6770c6ae67
doc: Use :event: role
2018-01-20 21:18:54 +09:00
Takeshi KOMIYA
fda7c88ec3
Drop unused method; LoggingReporter.set_source()
2018-01-20 16:09:15 +09:00
Takeshi KOMIYA
68e403a67b
Process smart_quotes for translated text too
2018-01-15 21:03:37 +09:00
Takeshi KOMIYA
2c06826ae8
Remove duplicated transform entry
2018-01-15 21:02:49 +09:00
Takeshi KOMIYA
fcc876f35c
Merge branch 'master' into refactor_smartquotes2
2018-01-15 01:14:23 +09:00
Takeshi KOMIYA
975cde44cc
Fix mypy violation
2018-01-15 01:11:58 +09:00
Antoine Beaupré
90f7c7ef3f
add link to manpages in HTML builder
...
It is useful to have the HTML documentation builder actually link to
real rendered versions of HTML manpages in its output. That way people
can click on manpages to get the full documentation. There are a few
services offering this online, so we do not explicitly enable one by
default, but the Debian manpages repository has a lot of the manpages
pre-rendered, so it is used as an example in the documentation.
The parsing work is done by a transformer class that parses manpage
objects and extract name/section elements. Those then can be used by
writers to cross-reference to actual sites. An implementation is done
in the two HTML writers, but could also apply to ePUB/PDF writers as
well in the future.
This is not enabled by default: the `manpages_url` configuration item
needs to be enabled to point to the chosen site. The `page`, `section`
and `path` parameters are expanded through Python string formatting in
the URL on output.
Unit tests are fairly limited, but should cover most common use-cases.
2018-01-11 13:20:34 -05:00
Takeshi KOMIYA
24a6578e09
Make SphinxSmartQuotes more inteligent
2018-01-10 21:09:14 +09:00
Takeshi KOMIYA
5ad20e6406
Allow SphinxTransform on read-phase
2018-01-10 21:09:08 +09:00
Takeshi KOMIYA
f366816968
Fix SphinxStandaloneReader.__init__() method has been duplicated
2018-01-08 20:31:57 +09:00
Takeshi KOMIYA
d9ae68b2ee
Merge branch 'stable'
2018-01-07 12:16:17 +09:00
jfbu
bd139453c9
Move SphinxSmartQuotes transform to SphinxStandaloneReader
...
closes #4142
closes #4357
closes #4359
refs: #3967
Adds ``smartquotes``, ``smartquotes_action``, ``smartquotes_excludes``
configuration variables.
- if ``smartquotes`` is set to False, then Smart Quotes transform is not
applied even if a Docutils configuration file activates it,
- the current default of ``smartquotes_excludes`` deactivates Smart
Quotes for Japanese language, and also for the ``man`` and ``text``
builders.
However, currently ``make text html`` deactivates Smart Quotes for
``html`` too, and ``make html text`` activates them for ``text`` too,
because the picked environment is shared and already transformed.
- now Smart Quotes get applied also when source documents are in
Markdown or other formats.
2018-01-05 15:06:10 +01:00
Takeshi KOMIYA
f1f6ca8cc9
Merge branch 'happy_new_year' into master
2018-01-01 01:09:17 +09:00
Takeshi KOMIYA
2426cedb8b
A happy new year!
2018-01-01 01:06:58 +09:00
Jakob Lykke Andersen
e5ba527dd5
Fix missing metainfo for sphinx.io
2017-12-28 17:16:53 +01:00
Takeshi KOMIYA
fe07365a8c
Fix mypy violations
2017-12-15 22:17:03 +09:00
Takeshi KOMIYA
27ea988f6e
Move Transform manager to registry
2017-12-14 23:55:39 +09:00
Takeshi KOMIYA
51580fabb4
Update docstrings
2017-12-14 21:15:55 +09:00
Takeshi KOMIYA
6dae5db9af
Fix SphinxRSTFileInput should expand tabs
2017-12-13 20:49:50 +09:00
Takeshi KOMIYA
07c5348a56
Add test_io.py
2017-12-12 18:24:53 +09:00
Takeshi KOMIYA
16c244cd6a
Add LoggingReporter.from_reporter() constructor
2017-12-12 18:24:52 +09:00
Takeshi KOMIYA
0e86ff2f11
Refactor sphinx.io; separate FileInput class for each file type
2017-12-12 18:24:52 +09:00
Takeshi KOMIYA
aa4fd0e1b7
refactor sphinx.io; SphinxFileInput can expect that app argument is always available
2017-12-12 18:24:52 +09:00
Takeshi KOMIYA
a0200ad499
Refactor sphinx.io; dependent parser detection from SphinxFileInput
2017-12-12 18:24:52 +09:00
Takeshi KOMIYA
a12399dbe4
Refactor sphinx.io; independ parser generation from reader class
2017-12-12 18:24:52 +09:00
Takeshi KOMIYA
3d8ce5a7c4
Fix mypy violations
2017-11-11 20:56:07 +09:00
Takeshi KOMIYA
e2be2ca77f
Move env.warn_and_replace() to SphinxInput class
2017-10-31 23:05:16 +09:00
Takeshi KOMIYA
1200ab48e1
Refactor parsing by docutils
2017-10-31 23:05:10 +09:00
Takeshi KOMIYA
d23f29f301
Refactor publishment
2017-10-31 23:05:07 +09:00
Srinivas Reddy Thatiparthy
04ff790139
remove unnecessary else clauses in for loop
2017-08-19 20:04:47 +05:30
Takeshi KOMIYA
69cf328b8b
Add Sphinx own parser (refs: #3816 )
2017-05-28 22:34:53 +09:00
Takeshi KOMIYA
72f267c6ae
Rename SphinxFactory class to SphinxComponentRegistry
2017-04-23 16:29:38 +09:00
Takeshi KOMIYA
f346e7dc1d
Move source_parsers manager to SphinxFactory
2017-04-22 20:04:45 +09:00
Takeshi KOMIYA
f6d9c7d1d1
Merge branch 'master' into 3558_emit_warnings_for_unreferenced_footnotes
2017-04-18 01:08:50 +09:00
Takeshi KOMIYA
8f9dd64992
Merge branch 'stable'
2017-03-26 11:52:15 +09:00
Takeshi KOMIYA
c57e47e042
Year++
2017-03-26 11:49:34 +09:00
Takeshi KOMIYA
01cb3a75c7
Fix #3558 : Emit warnings if footnotes and citations are not referenced
2017-03-18 21:03:16 +09:00
Takeshi KOMIYA
554199d30e
Upgrade to mypy-0.5
2017-03-03 23:17:34 +09:00
Takeshi KOMIYA
6fa0262802
Fix mypy violations
2017-02-08 18:38:42 +09:00
Takeshi KOMIYA
fb227f24cb
docutils bridge
2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
ceec82451b
Add type-check annotations to sphinx.*
2016-11-16 12:06:22 +09:00
Takeshi KOMIYA
f8c1c65c21
Refactor sphinx.environment: Reimplemnt process_refonly_bullet_lists() as a transform
2016-09-15 02:29:50 +09:00
Takeshi KOMIYA
7c99bd5d18
Separate sphinx.transforms to multiple files
2016-09-15 02:29:50 +09:00
Takeshi KOMIYA
d281a32b3b
Refactor sphinx.environment: Reimplement filter_messages() as a transform
2016-09-15 02:29:50 +09:00
Takeshi KOMIYA
9b00c31ee2
Fix #1734 : Could not translate the caption of toctree directive
2016-09-01 17:58:24 +09:00
Takeshi KOMIYA
715969a6c3
Refactor sphinx.io.SphinxFileInput
2016-06-12 21:44:25 +09:00
Takeshi KOMIYA
76b9992384
Fix #2633 : Sphinx crashes with old styled indices
2016-06-07 11:02:07 +09:00
Takeshi KOMIYA
9cd5ba994c
Fix #2445 : rst_prolog
and rst_epilog
affect to non reST sources
2016-05-25 21:25:04 +09:00
shimizukawa
03f061f898
fix for make style-check
2016-02-14 22:06:41 +09:00
shimizukawa
980653f277
Merge with stable
...
Conflicts:
sphinx/environment.py
sphinx/ext/autodoc.py
sphinx/writers/latex.py
2016-02-09 23:19:49 +09:00
shimizukawa
aefab514e2
Fix #2287 : sphinx.transforms.Locale
always uses rst parser. Sphinx i18n feature should support parsers that specified source_parsers.
2016-02-09 00:16:46 +09:00