diff options
| author | Chris McDonough <chrism@plope.com> | 2011-01-21 13:03:29 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-01-21 13:03:29 -0500 |
| commit | 8864e043a683f22f5ec316f17a146fedaa3373da (patch) | |
| tree | d62fafac6e8ea2efee3a4bf01db829eab0ec61bd | |
| parent | 57cc8680abf2c2bce3a8bc405277677043ffe007 (diff) | |
| download | pyramid-8864e043a683f22f5ec316f17a146fedaa3373da.tar.gz pyramid-8864e043a683f22f5ec316f17a146fedaa3373da.tar.bz2 pyramid-8864e043a683f22f5ec316f17a146fedaa3373da.zip | |
depend on intersphinx to point at Mako i18n recipe
| -rw-r--r-- | docs/conf.py | 20 | ||||
| -rw-r--r-- | docs/narr/i18n.rst | 5 |
2 files changed, 20 insertions, 5 deletions
diff --git a/docs/conf.py b/docs/conf.py index dce4ef879..e48af3cbc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -57,8 +57,24 @@ for item in os.listdir(parent): # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', - 'repoze.sphinx.autointerface'] +extensions = [ + 'sphinx.ext.autodoc', + 'sphinx.ext.doctest', + 'repoze.sphinx.autointerface', + 'sphinx.ext.intersphinx' + ] + +# Looks for objects in other Pyramid projects +intersphinx_mapping = { + 'cookbook': + ('http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/', None), + 'handlers': + ('http://docs.pylonsproject.org/projects/pyramid_handlers/dev/', None), + 'zcml': + ('http://docs.pylonsproject.org/projects/pyramid_zcml/dev/', None), + 'jinja2': + ('http://docs.pylonsproject.org/projects/pyramid_jinja2/dev/', None), + } # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/docs/narr/i18n.rst b/docs/narr/i18n.rst index 02e7dba64..4871fe400 100644 --- a/docs/narr/i18n.rst +++ b/docs/narr/i18n.rst @@ -738,9 +738,8 @@ facility described in :ref:`performing_a_translation`. Mako Pyramid I18N Support ------------------------- -See `Alexandre Bourget's blog entry -<http://blog.abourget.net/2011/1/13/pyramid-and-mako:-how-to-do-i18n-the-pylons-way/>`_ -to add idiomatic I18N support to :term:`Mako` templates. +:`mako_i18n` is a cookbook recipe which explains how to add idiomatic I18N +support to :term:`Mako` templates. .. index:: single: localization deployment settings |
