Permalink
Browse files

depend on intersphinx to point at Mako i18n recipe

  • Loading branch information...
1 parent 57cc868 commit 8864e043a683f22f5ec316f17a146fedaa3373da @mcdonc mcdonc committed Jan 21, 2011
Showing with 20 additions and 5 deletions.
  1. +18 −2 docs/conf.py
  2. +2 −3 docs/narr/i18n.rst
View
@@ -57,8 +57,24 @@ def nothing(*arg):
# 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']
View
@@ -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

0 comments on commit 8864e04

Please sign in to comment.