dabodoc Commit
Revision 63
Date: 2011-02-27 02:14:26 -0800 (Sun, 27 Feb 2011)
Author: Werner
Trac: http://trac.dabodev.com/changeset/63

Changed:
A   trunk/api/sphinx/config_sample.py

Log:
- rename config.py to config_sample.py to prevent changes to it to overwrite 
local config file

Diff:
Copied: trunk/api/sphinx/config_sample.py (from rev 62, 
trunk/api/sphinx/config.py)
===================================================================
--- trunk/api/sphinx/config_sample.py                           (rev 0)
+++ trunk/api/sphinx/config_sample.py   2011-02-27 10:14:26 UTC (rev 63)
@@ -0,0 +1,46 @@
+# -*- coding: utf-8 -*-#
+
+import os
+import platform
+
+# review and update as needed
+
+# folder where .rst files will be stored
+baseFolder = os.getcwd()
+
+docFolder = os.path.join(baseFolder, "source")
+# used to generate files, only changed and new ones will be copied to docFolder
+# this speeds up the Sphinx build
+rstTempFolder = os.path.join(baseFolder, "tempsource")
+folderToDoc = r"c:\dev\dabo\dabo"
+
+if platform.system() == "Windows":
+       sphinxBuildCmd = "C:\\Python26\\Scripts\\sphinx-build.exe"
+       # this is needed for the Sphinx Inheritance diagrams
+       graphVizDot = ' -D graphviz_dot="C:\\Program Files 
(x86)\\Graphviz2.26.3\\bin\\dot.exe" '
+       # is not tested yet
+       hhcExe = "C:\Program Files (x86)\HTML Help Workshop\hhc.exe "
+
+else:
+       # needs to be adapted
+       sphinxBuildCmd = "C:\\Python26\\Scripts\\sphinx-build.exe"
+       graphVizDot = ' -D graphviz_dot="C:\\Program Files 
(x86)\\Graphviz2.26.3\\bin\\dot.exe" '
+       hhcExe = "C:\Program Files (x86)\HTML Help Workshop\hhc.exe "
+
+
+sStdErr = os.path.join(baseFolder, "sphinxstderr.txt")
+sphinxStdErrStr = " -w %s " % sStdErr
+sphinxStdErrFile = open(sStdErr, 'w')
+
+# supported builders
+normalHtml = "html"
+helpHtml = "htmlhelp"
+singleHtml = "singlehtml"
+pdfDoc = "pdf" # doesn't work yet
+
+validBuilders = [normalHtml, helpHtml, singleHtml, pdfDoc]
+
+# match entry in conf.py for htmlhelp_basename
+hhpName = "dabo.hhp"
+
+



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to