Commit Graph

231 Commits

Author SHA1 Message Date
Matthias Geier
86615e1f09 Add option html_sourcelink_txt 2016-06-07 15:15:39 +02:00
Takeshi KOMIYA
f3ad0d508d Fix typo 2016-05-26 01:53:00 +09:00
Takeshi KOMIYA
698a715d0c Refactor code using `with` syntax 2016-05-26 00:50:57 +09:00
Takeshi KOMIYA
d35ccb9b4c The default format of today_fmt and html_last_updated_fmt is back to strftime format again
`html_last_updated_fmt` is commonly used for non date formatting. But
LDML is difficult to represent them from its characteristics.

Now we moved to strftime format again (ref: #2394).
2016-04-03 10:25:32 +09:00
Takeshi KOMIYA
8ab06530be Fix #2394: Sphinx crashes when html_last_updated_fmt is invalid 2016-04-01 11:20:30 +09:00
Takeshi KOMIYA
277c9e61c4 Merge branch 'stable' 2016-03-06 14:22:36 +09:00
Takeshi KOMIYA
f8c08c634f #2363: Fix `toctree()` in templates generates broken links in SingleHTMLBuilder. 2016-03-04 00:14:10 +09:00
Takeshi KOMIYA
4452cc3d2e Fix #794: Date formatting in latex output is not localized 2016-02-14 21:48:24 +09:00
shimizukawa
e6a5a3a92e classifier of glossary terms can be used for index entries grouping key. The classifier also be used for translation. See also :ref:glossary-directive. 2016-02-14 19:28:58 +09:00
Eric Holscher
c22f5beb75 Add suffix to HTML context. Fixes #1873 2016-02-09 18:01:12 +09:00
Takeshi KOMIYA
ae478f678e Fix #2022: html_extra_path also copies dotfiles and refers exclude_patterns 2016-01-24 19:17:50 +09:00
Georg Brandl
4f72bdb722 Merge branch 'stable' 2016-01-14 22:54:08 +01:00
Georg Brandl
46d7e8558e Obligatory copyright update. 2016-01-14 22:54:04 +01:00
Andrey Golovizin
d9080b3eef Omit empty URL targets in objects.inv 2015-09-28 19:56:54 +02:00
Takayuki SHIMIZUKAWA
a7723ff6f4 Merge pull request #2009 from ProgVal/determinism
Make files generation at install deterministic
2015-09-13 12:39:28 +09:00
shimizukawa
ef890a45d3 Merge branch 'stable' 2015-09-13 09:47:38 +09:00
Valentin Lorentz
aee7bd2952 Make inventory generation deterministic. 2015-08-19 20:36:53 +02:00
Takeshi KOMIYA
49b812b856 Fix #1540: Fix RuntimeError with circular referenced toctree 2015-08-09 21:08:33 +09:00
Georg Brandl
6352634728 Closes #1960: show relative file path in output when copying dlfiles 2015-07-24 15:45:05 +02:00
Georg Brandl
bfdbee0d04 merge with stable 2015-06-11 19:07:10 +02:00
shimizukawa
059a74c51e Fix #1784: Provide non-minified JS code in sphinx/search/*.py 2015-06-08 14:35:01 +08:00
Eric Holscher
5f6503c905 Add suffix to HTML context. Fixes #1873 2015-06-06 13:12:56 -07:00
shimizukawa
ea25342acc Support PEP-440 version spec for developers. 2015-03-14 16:46:24 +09:00
Georg Brandl
8bc5823724 builders: pep8 fixes 2015-03-08 16:24:24 +01:00
Georg Brandl
7b9f03e383 Fix flake8. 2015-03-08 16:02:03 +01:00
Georg Brandl
705f6a997b Merge branch 'apple-help' of git://github.com/al45tair/sphinx 2015-03-08 15:35:04 +01:00
shimizukawa
68021b0bd3 refs #1346. Add new default theme.
- Rename 'default' theme to 'classic'.
  - rename `themes/default` to `themes/classic`
  - add new `themes/default` theme that derives from 'classic' theme for compatibility.
- setup.py depends to 'alabaster' and 'rtd' theme.
- theming.py import and run `alabaster.get_path()` to append path for alabaster theme.
- theming.py also import and run `sphinx_rtd_theme.get_html_theme_path()` to append path.
- sphinx-quickstart will generate `html_theme = 'alabaster'`.
- If user use 'default', sphinx emit notice (WARNING) suggestion to use 'alabaster' or use 'classic'.
- add documentation for new alabaster and readthedoc theme and link to original pages:
  - https://pypi.python.org/pypi/alabaster
  - https://pypi.python.org/pypi/sphinx_rtd_theme
2015-02-24 01:01:54 +09:00
shimizukawa
27c76fcb89 Closes #1227: Add html_auto_image_link config option to conf.py, to control scaled image link. 2015-02-22 22:04:20 +09:00
Dmitry Shachnev
d24bd73d0c Remove non-determinism
To enable packages using Sphinx to build reproducibly, its output
needs to be the same from one build to another.

Its output now strips memory references such as:

  <__main__.A at 0x7f68cb685710>

In addition, various generated files (objects.inv, searchindex.js,
translations) are now written with their keys in a determinstic order.

Based on a patch by Chris Lamb <lamby@debian.org>.
2015-01-28 21:24:36 +03:00
Alastair Houghton
e490c2e12d Clean up the mechanism for disabling Javascript search. 2015-01-14 11:34:37 +00:00
Georg Brandl
dee3e60ee6 Closes #1669: make "language" available in HTML templates. 2015-01-10 19:40:59 +01:00
Georg Brandl
a23903d8d5 Merge branch 'stable' 2015-01-03 21:41:14 +01:00
Georg Brandl
567d52f199 all: update copyright 2015-01-03 21:36:32 +01:00
Georg Brandl
96ce3b1374 Closes #1597: Added possibility to return a new template name from html-page-context. 2014-10-23 07:58:23 +02:00
tk0miya
8c38327f0e Refactored; Initialize imagedir at init() method 2014-09-29 00:17:24 +09:00
tk0miya
0853176305 Merge with default 2014-09-28 21:28:45 +09:00
tk0miya
cc5859fcbf Add imgpath property to all builders 2014-09-27 10:11:47 +09:00
Georg Brandl
e3135cfc87 Make remaining builtin extensions parallel-read-proof. 2014-09-22 22:05:03 +02:00
Georg Brandl
46e8309c31 Add a possibility to later execute finishing-up tasks in parallel. 2014-09-22 18:16:53 +02:00
Georg Brandl
0c833c020e Refactor parallel process into a base class that executes any task, and a derived class that executes a batch of the same task. 2014-09-22 17:29:52 +02:00
Georg Brandl
905cbf853d Move status_iterator to application object. 2014-09-22 14:34:57 +02:00
tk0miya
ba072ab903 Use config.master_doc insted of "index" 2014-08-18 21:51:49 +09:00
tk0miya
f974aca356 Assign figure numbers automatically 2014-09-26 22:40:24 +09:00
tk0miya
b9aa71ec39 Update comment for adhoc changes 2014-08-12 19:47:59 +09:00
tk0miya
5725ee0e82 Fix numbering section does not work at singlehtml mode (adhoc) 2014-08-12 11:22:34 +09:00
Takayuki Shimizukawa
f7399a261a Add app.set_translator() API to register or override a Docutils translator class like :confval:html_translator_class. 2014-08-05 00:18:54 +09:00
Takayuki Shimizukawa
2ba3e561b2 * fix over 80 chars line and remove unused import. 2014-06-15 15:42:23 +09:00
Takayuki Shimizukawa
ba4dcaa8dd use b prefix for bytes instead of sphinx.pycompat.b function. 2014-05-01 22:54:09 +09:00
Takayuki Shimizukawa
1e58062692 remove 'six' name except importing line. 2014-04-30 21:30:46 +09:00
Takayuki Shimizukawa
00eff0b7f6 use six privided text_type() to replace with unicode() to support py2/py3 in one source. refs #1350. 2014-04-29 23:44:12 +09:00