Commit Graph

3749 Commits

Author SHA1 Message Date
Lucas Taylor
ade940d1f6 [intersphinx] [Fixes #622] env.warn called with incorrect number of arguments 2011-09-03 12:41:26 -07:00
aohta
f1ba8a4fcc fix japanese translation. 2011-08-27 17:53:19 +09:00
Georg Brandl
f048039f36 Merged in nkvoll/sphinx (pull request #17) 2011-08-23 09:27:17 +02:00
Njal Karevoll
04c5c5aab8 Array.concat does not exist in all browsers.
[].concat can be used instead of Array.concat, and this works in Firefox and Chrome (and reportedly on IE8/9).
2011-08-15 10:27:25 +02:00
Georg Brandl
400339a23b Merged in kou/sphinx (pull request #16) 2011-08-15 08:33:32 +02:00
Kouhei Sutou
773ba3b768 [i18n] fix reference line separator.
This commit fixes part of 5976facae92c commit:
  Refactor comment generating code for message catalogs.

The commit says "Refactor" but it changes original code behavior.
In original code, source locations are separated with " " but
in refactored code, source locations are separated with ", ".

msgmerge and po-mode that are part of the GNU gettext toolset treats
"," as part of source location. We can fix this problem by one of them:

  * Use " " instead of ", " as source locations separator
    in a "reference" line.
  * Put "reference" lines. Each "reference" line just has a source location.

This commit uses the latter because the latter has more higher readablility.

See also about "reference" line but it doesn't say about separator:
  http://www.gnu.org/s/hello/manual/gettext/PO-Files.html
2011-08-14 19:55:07 +09:00
jules
8ad51bb220 Pulling in changes from birkenfeld branch 2011-08-12 18:25:34 -05:00
Njal Karevoll
61867d69e7 The graphviz extension uses an empty <object ... /> tag to embed svg files, but for the object tag the start and the end tag are required (see http://www.w3.org/TR/html40/struct/objects.html#edef-OBJECT).
Issue #659: https://bitbucket.org/birkenfeld/sphinx/issue/659/patch-graphviz-object-tag-to-embed-svg
2011-08-12 09:15:02 +02:00
Georg Brandl
aa7098ed82 Merged in kou/sphinx (pull request #12) 2011-08-12 08:30:35 +02:00
Georg Brandl
f5ecf50985 Merged in kou/sphinx (pull request #11) 2011-08-12 07:40:18 +02:00
Kouhei Sutou
f98cfbe862 [i18n] use relative path from output directory for source path.
This commit reverts part of 5976facae92c commit:
  Refactor comment generating code for message catalogs.

The commit says "Refactor" but it changes original code behavior.
In original code, start path for path.relpath() is self.outdir but
in refactored code, start path for path.relpath() is self.srcdir.

It should be self.outdir not self.srcdir to improve po-mode.el
support. po-mode.el has "po-cycle-source-reference" command. It
search source code relative from .po file directory.

See also::
  http://www.gnu.org/s/hello/manual/gettext/C-Sources-Context.html

    Program source files are usually found relative to where the PO
    file stands. As a special provision, when this fails, the file
    is also looked for, but relative to the directory immediately
    above it.
2011-08-12 14:29:19 +09:00
jules
26ebe84b3a Working with guides 2011-07-30 00:30:19 -05:00
jules
5233f7a544 Working with guides 2011-07-30 00:26:21 -05:00
jules
df02c49e76 Working with guides 2011-07-30 00:22:18 -05:00
jules
2af77f7be2 Working with guides 2011-07-29 23:58:52 -05:00
jules
b7d0b6387c Working with guides 2011-07-29 23:43:10 -05:00
Georg Brandl
ed0bad3889 Doc and changelog entries for 91b4fc984b32. 2011-07-23 10:04:09 +02:00
Georg Brandl
3e649cf681 Merged in mattpap/sphinx (pull request #8) 2011-07-23 10:02:10 +02:00
Georg Brandl
680d261694 s/jsmath/mathjax/ 2011-07-23 10:02:04 +02:00
bond
bfa6e8c0de some changes to math docs 2011-07-19 22:35:52 +02:00
Mateusz Paprocki
e7d915e47e Added support for non-local files to Application.add_stylesheet() 2011-07-19 01:45:52 +02:00
Benoit Allard
9350b3b46b graphviz: also catch IOError with Errno 22 (invalid parameter)
This happen on Python2.7 and Graphviz version 2.12 (Mon Dec  4 22:04:37 UTC 2006)
on Windows when a not recognized renderer type is asked.
2011-07-14 16:57:01 +02:00
Benoit Allard
db733f40fc Don't use deprecated values in the template conf.py (issue732) 2011-07-14 13:03:33 +02:00
Georg Brandl
f4bd8c5e84 Remove unused import. 2011-07-09 12:08:18 +02:00
Georg Brandl
c1084af66e Merged in michaeljones/sphinx (pull request #3) 2011-07-09 12:06:17 +02:00
Georg Brandl
96749c5749 Merged in jonwaltman/sphinx-info (pull request #5) 2011-07-07 19:50:11 +02:00
Jonathan Waltman
1fde44cbf6 Follow the behavior described by :confval:primary_domain to display domain object names and use this as the category in Texinfo desc_signatures. 2011-07-07 01:39:53 -05:00
Mark Lodato
2c0f936e6b add :emphasize-lines: option to source-code and literal-include
Add a new option, :emphasize-lines:, to the source-code and
literal-include directives.  The format is the same as the :lines:
option for literal-include.  The resulting list of lines is passed to
the Pygments formatter as 'hl_lines', which is only honored by the HTML
formatter.
2011-07-06 22:58:19 -04:00
Mark Lodato
b9279ca1e3 add 'highlight_args' option for literal_block nodes
For the HTML and LaTeX writers, if 'highlight_args' is set on
a literal_block node, this is taken as a dictionary of keyword arguments
to pass to PygmentsBridge.highlight_block.  This allows custom
directives to directly set formatter options.
2011-07-06 22:47:32 -04:00
Mark Lodato
94aab04ecb PygmentsBridge: pass keyword arguments to Pygments
In Pygments.highlight_block, pass all extra keyword arguments, including
linenos, directly to the Pygments formatter.  This allows custom
directives to use other Pygments features.
2011-07-06 22:05:22 -04:00
Mark Lodato
cab5a5edc1 PygmentsBridge: construct new formatter each time
Previously, we pre-constructed two different formatters, one with line
numbers and one without.  This made the code rather confusing and also
was not scalable for options that take arguments, such as 'hl_lines'.
Now, we construct a new HTMLFormatter or LatexFormatter on each call to
highlight_block().
2011-07-06 21:52:10 -04:00
Robert Lehmann
b5f53e1972 Move node filtering into extract_messages. 2011-07-06 08:52:07 +02:00
Robert Lehmann
f1f7bde914 Distribute UUIDs over multiple comment lines. 2011-07-06 08:34:26 +02:00
Robert Lehmann
f477eaf26f Comment and stretch out code.
Also leverage the fact that we ignore Sphinx' built-in messages for catalogs.
2011-07-06 08:31:40 +02:00
Robert Lehmann
651a00f3cd Close #630: Revamp data structures used for message catalogs. 2011-07-06 08:25:25 +02:00
Jonathan Waltman
626a954821 Use `ObjType.lname` for the category in Texinfo desc_signatures. 2011-07-03 17:44:03 -05:00
Jonathan Waltman
d16be40da1 Fix NameError in graphviz.render_dot_texinfo. 2011-06-30 17:21:16 -05:00
Jonathan Waltman
a78b9ec927 Prevent indexing commands from causing a paragraph break in Texinfo. 2011-06-29 17:33:27 -05:00
Jonathan Waltman
584dc31883 Replace no-break spaces with normal ones inside desc_parameters for Texinfo. 2011-06-27 19:51:00 -05:00
Jonathan Waltman
10e0fb8ad9 Properly escape ``quote'' characters in Texinfo. 2011-06-27 19:28:47 -05:00
Jonathan Waltman
7147131145 Add method `ensure_eol` and use it to fix paragraph spacing in Texinfo. 2011-06-27 18:45:00 -05:00
Georg Brandl
4bc665cf4a Recompile German catalog. 2011-06-07 17:21:59 +02:00
Georg Brandl
acbc89a6a8 Merge with 1.0. 2011-06-07 17:21:45 +02:00
Georg Brandl
2c0aa5092c Close #712: fix indentation error in German translation. 2011-06-07 17:20:56 +02:00
Georg Brandl
517acb80f0 Add Nepali translation, thanks to Arati Sharma. 2011-06-07 17:17:54 +02:00
Michael Jones
b4a6b2c3c1 Respect "includehidden" for sub-toctrees as well
Previously, the includehidden method argument was only being taken into account
for top level toctrees. This meant that hidden subtree toctrees were still
being resolved if they exists below a non-hidden toctree.
2011-06-05 14:21:47 +12:00
Kouhei Sutou
102b3bf925 [i18n][man] add missing deunicode().
We get the following error message when we have a translated admonition
(e.g. 'note') label:

  Exception occurred:
      File "../sphinx/sphinx/locale/__init__.py", line 75, in __str__
        return str(self.data)
        UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
2011-05-29 19:48:01 +09:00
Roland Meister
dbe932d30c Merge with birkenfeld/sphinx. 2011-05-23 21:22:33 +02:00
Roland Meister
0da0c03b53 Added the epub theme options relbar1 and footer. 2011-05-23 21:09:51 +02:00
Georg Brandl
6da34ddd39 Update compiled japanese catalog. 2011-05-15 14:54:52 +02:00