From 7468fabf5615522a1b3c3489c419ff191546d093 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Wed, 24 Jul 2013 13:12:41 +0200 Subject: [PATCH] More documentation cleanup --- docs/conf.py | 2 +- docs/display.rst | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 65216c30..5ba78779 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,7 +26,7 @@ sys.path.append(os.path.abspath('_themes')) # 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.viewcode', +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx'] # Add any paths that contain templates here, relative to this directory. diff --git a/docs/display.rst b/docs/display.rst index 1fa3865a..66eec89b 100644 --- a/docs/display.rst +++ b/docs/display.rst @@ -24,8 +24,8 @@ Consortium `_. The ``Locale`` Class ==================== -You normally access such locale data through the `Locale`_ class provided -by Babel: +You normally access such locale data through the +:class:`~babel.core.Locale` class provided by Babel: .. code-block:: pycon @@ -37,8 +37,6 @@ by Babel: >>> locale.territories['US'] u'Estados Unidos' -.. _`Locale`: api/babel.core.Locale-class.html - In addition to country/territory names, the locale data also provides access to names of languages, scripts, variants, time zones, and more. Some of the data is closely related to number and date formatting. @@ -51,8 +49,9 @@ documentation for references to the relevant specifications. Calender Display Names ====================== -The `Locale`_ class provides access to many locale display names related to -calendar display, such as the names of week days or months. +The :class:`~babel.locale.Locale` class provides access to many locale +display names related to calendar display, such as the names of week days +or months. These display names are of course used for date formatting, but can also be used, for example, to show a list of months to the user in their preferred -- 2.47.2