Commit Graph
84 Commits
Author SHA1 Message Date
Takeshi KOMIYA 5e48ac9b4f Role `numref uses %s as special character instead #` symbol 2015-03-08 08:30:16 +09:00
Takeshi KOMIYA 3d62e353a5 Update testcases for changing prefix of captions 2015-03-08 08:30:16 +09:00
Takeshi KOMIYA a434486dfb Use babel to change prefix of captions 2015-03-07 18:01:29 +09:00
Takeshi KOMIYA 9f06027836 #1719 Add prefix to linkname of :numref: on LaTeX mode 2015-03-03 01:16:06 +09:00
Takeshi KOMIYA 1ee7f5a163 #1719 Use numfig_format for prefix of captions in LaTeX builder 2015-03-03 01:16:02 +09:00
Takeshi KOMIYA b0e77e4c75 Use fully_normalize_name() instead of str.lower() 2015-02-22 23:20:00 +09:00
Takeshi KOMIYA 62e0490b81 Closes #1718. :numref: does not work with capital letters in the label 2015-02-22 11:28:21 +09:00
Takeshi KOMIYA 198731f154 Update CHANGES for b563fa4 2015-01-18 16:08:46 +09:00
Takeshi KOMIYA 9ca4bc7081 Merge branch '1620_change_VerbatimBorderColor' (Close #1620) 2015-01-18 15:53:52 +09:00
Takeshi KOMIYA b563fa44f2 Fix #1620: Use VerbatimBorderColor to add frame to code-block in LaTeX 2015-01-18 15:32:17 +09:00
tk0miya d3615d9c0b Merge heads 2014-11-27 16:34:44 +09:00
tk0miya dab10e885b Update CHANGES for PR#317 2014-11-27 16:32:35 +09:00
tk0miya 0f1d8433e7 Fix #1607: Sphinx crashes on building latexpdf with "howto" class 2014-11-24 12:13:17 +09:00
tk0miya 88103c112a Fix #1603 :numref: doesn't work correctly when label contain underscore
If label contains underscore, the underscores are replaced with hyphens on normalization.
:numref: confuses the normalization with explicit notation.
This fix uses `target` variable insted of labelid to check the role is explicit or not.
2014-10-27 11:02:54 +09:00
tk0miya 83e8bbf58b Add docs about :numref: role 2014-10-09 19:31:36 +09:00
tk0miya e32883433a Update docs by reviewing 2014-10-09 01:41:51 +09:00
tk0miya f51b945d89 Add frame to code-block in LaTeX 2014-10-08 21:52:33 +09:00
tk0miya 18051a5110 Add docs about confval for numfig 2014-10-08 11:03:14 +09:00
tk0miya cdc244428d Merge with default 2014-10-06 23:57:16 +09:00
tk0miya 69bcadee89 Fix it should not use starttag() to tags which are not related with node 2014-10-06 23:25:25 +09:00
tk0miya 568ac7e9a9 Fix position of \label tag for literal_block was invalid in LaTeX 2014-10-06 21:05:56 +09:00
tk0miya 71cf3e7a4f Fix position of \label tag for table was invalid in LaTeX 2014-10-06 20:24:57 +09:00
tk0miya e0fb54a7bb Catch KeyError resolving numref if target docs does not included in toctree 2014-10-06 18:50:01 +09:00
tk0miya a5606976b6 Fix flake8 violations 2014-10-06 13:56:51 +09:00
tk0miya 777218580a Surround fignum and caption with <span> tag 2014-10-05 20:55:46 +09:00
tk0miya 8ee53ddb06 Refactor creating permalinks on HTML writer 2014-10-05 20:54:50 +09:00
tk0miya a875e8f377 Set permanent links to every captions and titles 2014-10-05 16:27:38 +09:00
tk0miya 8270575a9c Update testcases for :numref: 2014-10-02 11:17:34 +09:00
tk0miya 0d28a95f85 Fix numfig got error if table without title exists 2014-10-01 22:15:29 +09:00
tk0miya 5046abbaee Support :numref: in other writers 2014-10-02 11:36:24 +09:00
tk0miya 002ba5e4de Support :numref: in LaTeX writer 2014-10-01 11:38:41 +09:00
tk0miya 6c798fd5f0 Merge with default 2014-10-02 11:38:49 +09:00
tk0miya 1e63f34d2e Fix Builder.imgpath has not been initialized correctly 2014-10-01 10:12:20 +09:00
tk0miya 4c82a16564 Add :numref: role to refer figures, tables and code-blocks by its fignum 2014-10-01 00:33:00 +09:00
tk0miya 8c38327f0e Refactored; Initialize imagedir at init() method 2014-09-29 00:17:24 +09:00
tk0miya 7e59c5385e Merge with default 2014-09-28 21:56:20 +09:00
tk0miya 0853176305 Merge with default 2014-09-28 21:28:45 +09:00
tk0miya f746a45dc9 Remove debug print 2014-09-28 21:25:46 +09:00
tk0miya 16529c5604 Add options argument to Sphinx.add_latex_package() 2014-09-28 21:10:26 +09:00
tk0miya 0c5b460dc6 Separate numfig testcase from toctree's 2014-09-27 16:49:28 +09:00
tk0miya c35886f6d0 Refactor has_child() function (by review) 2014-09-27 16:17:25 +09:00
tk0miya a557e0dd32 Make numfig_prefix translatable 2014-09-27 15:50:19 +09:00
tk0miya c04ad2908e Add new API: Sphinx.add_latex_package()
Sphinx.add_latex_package() allows sphinx extensions to add latex packages.
It helps creating extensions for latex (for example, latex-theming)
2014-09-27 12:47:27 +09:00
tk0miya cc5859fcbf Add imgpath property to all builders 2014-09-27 10:11:47 +09:00
tk0miya e3826ba2c4 Fix assign_figure_numbers() raises AttributeError with old environment 2014-09-27 00:56:50 +09:00
tk0miya 7cd470f59a Assign fignum to tables and code-blocks 2014-09-27 00:47:44 +09:00
tk0miya 7c7a563426 Fix by review comment 2014-09-26 20:15:17 +09:00
tk0miya cffec13355 Add testcases for numfig 2014-09-26 00:36:38 +09:00
tk0miya 07e52ff22d Fix @caption should be placed to inside of @float element in texinfo 2014-09-24 00:54:27 +09:00
tk0miya 3ad1f1c164 Merge with default 2014-09-24 00:43:47 +09:00
tk0miya 5f96826ffc Merge with default 2014-09-23 17:58:02 +09:00
tk0miya d076452199 do nested_parse() :caption: of code-block directive 2014-09-19 12:04:25 +09:00
tk0miya 447c8c1d37 Wrap float environment on writing literal_block to latex 2014-09-19 11:08:07 +09:00
tk0miya 873efc5358 Fix #1512 env.record_dependency crashes on multibyte directories 2014-09-15 22:10:13 +09:00
tk0miya 0780d8ca04 Fix tests has broken by changset:bb0211a65072 2014-08-24 19:40:32 +09:00
tk0miya b17320ee1e Fix cannot capture title of literal_block node by xref 2014-08-24 14:33:56 +09:00
tk0miya 08cf46cbc9 Fix #1509 TODO extension not compatible with websupport
websupport assigns UID to every node on reading phase and reads it
on writing phase.
but `todolist` directive generates new paragraph node on resolving phase.
This problem will occur any extensions that generate paragraph nodes
on resolving phase.

This fix changes websupport ignores paragraph node not having UIDs.
2014-08-24 12:28:37 +09:00
tk0miya 65be2792a8 Do not highlight function pointers if unexpected tokens found 2014-08-21 13:30:25 +09:00
tk0miya 2ccdebf5d9 Fix RuntimeError with numbered circular toctree 2014-08-21 09:54:57 +09:00
tk0miya ba5a42c504 Ignore "self" and URL in toctree 2014-08-21 09:54:57 +09:00
tk0miya 7f9b6b73ed Fix section entries were shown twice if toctree has been put under only directive 2014-08-21 09:51:15 +09:00
tk0miya 4e0053cceb Fix #1513 highlights for function pointers in argument list of c:function 2014-08-20 19:30:19 +09:00
tk0miya dd8a02d5e1 Fix #1381 :rfc: and :pep: roles support custom link text 2014-08-20 12:27:08 +09:00
tk0miya 95fc3ce888 Backed out changeset 177fce4ba59c 2014-08-20 12:21:18 +09:00
tk0miya 3c1067c038 Fix #1381 :rfc: and :pep: roles support custom link text 2014-08-20 12:19:12 +09:00
tk0miya 3c8bc8f5fd Merge upstream changes 2014-08-20 10:05:58 +09:00
tk0miya 876d593764 Optimize marking docnames as assigned 2014-08-20 01:23:36 +09:00
tk0miya 7db168416b Set its URL as a default title value if URL appears in toctree 2014-08-20 01:00:29 +09:00
tk0miya 137de0ddc8 Mark master_doc as assigned numbers 2014-08-19 11:02:24 +09:00
tk0miya 57cc7dfa05 Fix RuntimeError with numbered circular toctree 2014-08-19 10:44:09 +09:00
tk0miya 14107fd5de Fix numbering section at singlehtml mode does not work for nested toctree 2014-08-18 22:06:30 +09:00
tk0miya ba072ab903 Use config.master_doc insted of "index" 2014-08-18 21:51:49 +09:00
tk0miya 2f5ea82b37 Add config entries for numfig 2014-08-16 09:39:01 +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 0943375069 Fix #1476 replace <tt> tag by <code> 2014-08-12 12:12:10 +09:00
tk0miya 5725ee0e82 Fix numbering section does not work at singlehtml mode (adhoc) 2014-08-12 11:22:34 +09:00
tk0miya 3e1667290b Rename :filename: option of code-block directive to :caption: 2014-08-11 22:36:31 +09:00
tk0miya 13f37e9a3b Fix could not capture caption of graphviz node by xref
std domain and LaTeX writer expect figure node for capturing captions,
but graphviz directive returns graphviz node including caption attribute.
So sphinx cannot capture it on resolving xref.

This change makes graphviz directive returns figure and caption nodes in place.
2014-08-10 12:05:24 +09:00
tk0miya b3798ab32c Fix could not resolve xref for figure node with :name: option 2014-07-28 01:30:24 +09:00
Takeshi Komiya 024e8837cf Fix tx init command again. 2014-07-06 06:00:47 +00:00
Takeshi Komiya 65e83c6057 Do not enter password of transifex at command line by security reason
Any command line options could be accessed by other users.
`tx init` command has interaction interface.
It should be used by all users by default.
2014-07-06 05:09:16 +00:00
tk0miya 04cdfd83eb Fix SyntaxError when conf.py includes CR characters 2011-10-22 13:42:48 +09:00
tk0miya 8fb564b903 Fix SyntaxError when conf.py includes CR characters 2011-10-22 13:42:48 +09:00