Merge pull request #252 from AndreaCrotti/settings

Settings
This commit is contained in:
Alexis Metaireau 2012-03-15 07:37:57 -07:00
commit 61d5ba1776
2 changed files with 7 additions and 1 deletions

View file

@ -1,6 +1,8 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys, os import sys, os
sys.path.append(os.path.abspath('..'))
# -- General configuration ----------------------------------------------------- # -- General configuration -----------------------------------------------------
templates_path = ['_templates'] templates_path = ['_templates']
extensions = ['sphinx.ext.autodoc',] extensions = ['sphinx.ext.autodoc',]
@ -14,7 +16,6 @@ release = version
# -- Options for HTML output --------------------------------------------------- # -- Options for HTML output ---------------------------------------------------
sys.path.append(os.path.abspath('_themes'))
html_theme_path = ['_themes'] html_theme_path = ['_themes']
html_theme = 'pelican' html_theme = 'pelican'

View file

@ -160,6 +160,8 @@ maintain multiple languages with different date formats, you can set this dict
using language name (``lang`` in your posts) as key. Regarding available format using language name (``lang`` in your posts) as key. Regarding available format
codes, see `strftime document of python`_ : codes, see `strftime document of python`_ :
.. parsed-literal::
DATE_FORMAT = { DATE_FORMAT = {
'en': '%a, %d %b %Y', 'en': '%a, %d %b %Y',
'jp': '%Y-%m-%d(%a)', 'jp': '%Y-%m-%d(%a)',
@ -167,6 +169,8 @@ codes, see `strftime document of python`_ :
You can set locale to further control date format: You can set locale to further control date format:
.. parsed-literal::
LOCALE = ('usa', 'jpn', # On Windows LOCALE = ('usa', 'jpn', # On Windows
'en_US', 'ja_JP' # On Unix/Linux 'en_US', 'ja_JP' # On Unix/Linux
) )
@ -175,6 +179,7 @@ Also, it is possible to set different locale settings for each language. If you
put (locale, format) tuples in the dict, this will override the LOCALE setting put (locale, format) tuples in the dict, this will override the LOCALE setting
above: above:
.. parsed-literal::
# On Unix/Linux # On Unix/Linux
DATE_FORMAT = { DATE_FORMAT = {
'en': ('en_US','%a, %d %b %Y'), 'en': ('en_US','%a, %d %b %Y'),