changeset 802:8af7fe0794b0

Improved appearance of Chinese documentation. Added the "lang" attibute and made the text left aligned.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 28 Dec 2012 13:17:39 +0000
parents b95a6d779c89
children 6c3349baa1d3
files xsls/article.xsls xsls/style.xsls
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/xsls/article.xsls
+++ b/xsls/article.xsls
@@ -41,6 +41,8 @@ X:template = "/article | /module" {
 
     X:if "@lang = 'he'" { X:attribute "dir" { X:text{rtl} } }
 
+    X:if "@lang = 'cn'" { X:attribute "lang" { X:text{zh-CN} } }
+
     <head>
 
     <title> !{@name} </title>
--- a/xsls/style.xsls
+++ b/xsls/style.xsls
@@ -65,6 +65,15 @@ X:template style (lang) {
         ') }
     }
 
+    X:if "$lang = 'cn'" {
+        !{ normalize-space('
+        p                 { text-align:     left; }
+        li                { text-align:     left; }
+        dd                { text-align:     left; }
+        blockquote.note   { text-align:     left; }
+        ') }
+    }
+
     </style>
 }