Commit Graph

3840 Commits

Author SHA1 Message Date
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
Kouhei Sutou
d4de9de8fc [ja] update Japanese translations. 2011-05-15 21:30:14 +09:00
Georg Brandl
10287a6684 merge with 1.0 2011-05-15 13:52:48 +02:00
Georg Brandl
c90d6cc52f Closes #98: mention original copyright owners, and port fix from https://bitbucket.org/thomaswaldmann/sphinx-autopackage-script/changeset/dba2b779c1af. 2011-05-15 13:41:29 +02:00
Georg Brandl
40c294f0c8 Closes #657: viewcode now works correctly with source files that have non-ASCII encoding. 2011-05-15 13:31:39 +02:00
Georg Brandl
8965cf1095 Closes #658: fix error in script_files example and document css_files. 2011-05-15 13:05:31 +02:00
Georg Brandl
d63cf564ab Closes #665: update Turkish translation. 2011-05-15 13:01:14 +02:00
Georg Brandl
5ca496847a Closes #669: Respect the `noindex` flag option in py:module directives. 2011-05-15 13:00:11 +02:00
Georg Brandl
6b6ca70622 Closes #670: Allow docutils "standard includes" to be again specified with the `include` directive. 2011-05-15 12:58:34 +02:00
Georg Brandl
ef674a20a6 Closes #671: new autodoc features: :special-members: and :private-members: should respect :undoc-members:. Also :special-members: should not document __doc__. 2011-05-15 12:41:45 +02:00