Permalink
Browse files

build: updates to build targets to generate/support translation catal…

…ogue generation
  • Loading branch information...
1 parent 2fc08bb commit cda19f1d23fdd6ff610883b097d8e715e9175182 @tychoish tychoish committed Dec 11, 2013
Showing with 61 additions and 25 deletions.
  1. +22 −11 bin/builddata/integration.yaml
  2. +28 −12 bin/builddata/sphinx.yaml
  3. +1 −0 bin/docs_meta.yaml
  4. +8 −2 conf.py
  5. +2 −0 requirements.txt
@@ -1,12 +1,23 @@
-targets:
- - 'latex'
- - 'json'
- - 'singlehtml'
- - 'html'
- - 'man'
- - 'epub'
- - 'dirhtml'
-doc-root: ['manual']
-branch-root:
- - ''
+fr:
+ inherit: base
+es:
+ inherit: base
+ja:
+ inherit: base
+zh:
+ inherit: base
+it:
+ inherit: base
+base:
+ targets:
+ - 'latex'
+ - 'json'
+ - 'singlehtml'
+ - 'html'
+ - 'man'
+ - 'epub'
+ - 'dirhtml'
+ doc-root: ['manual']
+ branch-root:
+ - ''
...
View
@@ -18,22 +18,18 @@ generated-source:
- intersphinx
- images
- composites
-dirhtml:
+web-base:
excluded_files:
- - 'meta/reference'
- - 'meta/use-cases'
- - 'meta/administration'
- - 'meta/manual'
+ - meta/reference
+ - meta/use-cases
+ - meta/administration
+ - meta/manual
tags:
- web
+dirhtml:
+ inherit: web-base
html:
- tags:
- - web
- excluded_files:
- - 'meta/reference'
- - 'meta/use-cases'
- - 'meta/administration'
- - 'meta/manual'
+ inherit: web-base
latex:
tags:
- print
@@ -62,4 +58,24 @@ linkcheck:
texinfo:
tags:
- print
+html-fr:
+ builder: html
+ inherit: html
+ language: fr
+html-es:
+ builder: html
+ inherit: html
+ language: es
+html-ja:
+ builder: html
+ inherit: html
+ language: ja
+html-it:
+ builder: html
+ inherit: html
+ language: it
+html-zh:
+ builder: html
+ inherit: html
+ language: zh
...
View
@@ -44,4 +44,5 @@ build:
tools: 'bin'
buildsystem: 'build/docs-tools'
builddata: 'bin/builddata'
+ locale: 'locale'
...
View
10 conf.py
@@ -6,10 +6,13 @@
# This file is execfile()d with the current directory set to its containing dir.
import sys
-import os.path
+import os
import datetime
-project_root = os.path.join(os.path.abspath(os.path.dirname(__file__)))
+try:
+ project_root = os.path.join(os.path.abspath(os.path.dirname(__file__)))
+except NameError:
+ project_root = os.path.abspath(os.getcwd())
sys.path.append(project_root)
@@ -38,6 +41,9 @@
'directives',
]
+locale_dirs = [ conf.build.paths.locale ]
+gettext_compact = False
+
templates_path = ['.templates']
exclude_patterns = []
View
@@ -5,3 +5,5 @@ argparse
fabric
distribute
droopy
+sphinx-intl
+transifex-client

0 comments on commit cda19f1

Please sign in to comment.