@@ -84,6 +84,7 @@ def usage():
84
84
print "\t --docs-html-multi\t generate HTML documentation, split up into separate sections"
85
85
print "\t --docs-html-single\t generate HTML documentation in a single file"
86
86
print "\t --docs-pdf\t \t generate PDF documentation"
87
+ print "\t --docs-sphinx\t \t generate Sphinx documentation"
87
88
print "\t --docs-all\t \t generate all documents"
88
89
print "\t --pydoc\t \t \t generate pydoc information"
89
90
print
@@ -93,7 +94,7 @@ def usage():
93
94
"hct" ,
94
95
["help" , "clean" , "test" , "suite=" , "debug-level=" , "coverage" , "package" , "build-stamp=" , \
95
96
"publish" , "register" , \
96
- "site" , "docs-html-multi" , "docs-html-single" , "docs-pdf" , "docs-all" , "pydoc" ])
97
+ "site" , "docs-html-multi" , "docs-html-single" , "docs-pdf" , "docs-sphinx" , "docs- all" , "pydoc" ])
97
98
except getopt .GetoptError :
98
99
# print help information and exit:
99
100
print "Invalid command found in %s" % sys .argv
@@ -328,7 +329,8 @@ def docs_all(version):
328
329
329
330
docs_multi (version )
330
331
docs_pdf (version )
331
-
332
+ docs_sphinx ()
333
+
332
334
def docs_multi (version ):
333
335
root = p ["targetDir" ] + "/" + p ["dist.ref.dir" ] + "/html"
334
336
print root
@@ -380,6 +382,13 @@ def docs_pdf(version):
380
382
os .remove (ref + "/src/mangled.xml" )
381
383
os .chdir (cur )
382
384
385
+ def docs_sphinx ():
386
+ cur = os .getcwd ()
387
+ os .chdir ("docs/sphinx" )
388
+ os .system ("make html" )
389
+ os .chdir (cur )
390
+ shutil .copytree ("docs/sphinx/build/html" , "target/docs/sphinx" )
391
+
383
392
def create_pydocs ():
384
393
sys .path .append (os .getcwd () + "/src" )
385
394
import springpython
@@ -540,6 +549,9 @@ def create_pydocs():
540
549
if option [0 ] in ("--docs-pdf" ):
541
550
docs_pdf (complete_version )
542
551
552
+ if option [0 ] in ("--docs-sphinx" ):
553
+ docs_sphinx ()
554
+
543
555
if option [0 ] in ("--pydoc" ):
544
556
create_pydocs ()
545
557
0 commit comments