Changeset 3194371 in sasview
- Timestamp:
- Jun 16, 2017 10:41:01 AM (7 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- e9df8a5
- Parents:
- 90d9cd3
- Location:
- docs/sphinx-docs
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
docs/sphinx-docs/Makefile
r1d5f5c2 r3194371 16 16 PAPEROPT_a4 = -D latex_paper_size=a4 17 17 PAPEROPT_letter = -D latex_paper_size=letter 18 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source 18 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source-temp 19 19 # the i18n builder cannot share the environment and doctrees with the others 20 20 I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source … … 53 53 rm -rf source/dev/api 54 54 sphinx-apidoc -o source/dev/api -d 8 ../../src 55 55 56 56 html: stubs 57 57 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html -
docs/sphinx-docs/build_sphinx.py
r90d9cd3 r3194371 374 374 SASVIEW_BUILD]) 375 375 376 def build_pdf(): 377 """ 378 Runs sphinx-build for pdf. Reads in all .rst files and spits out the final html. 379 """ 380 print("=== Build PDF Docs from ReST Files ===") 381 subprocess.call(["sphinx-build", 382 "-b", "latex", # Builder name. TODO: accept as arg to setup.py. 383 "-d", os.path.join(SPHINX_BUILD, "doctrees"), 384 SPHINX_SOURCE, 385 os.path.join(SPHINX_BUILD, "latex")]) 386 387 LATEXDIR = os.path.join(SPHINX_BUILD, "latex") 388 def pdflatex(): 389 subprocess.call(["pdflatex", "Sasview.tex"], cwd=LATEXDIR) 390 pdflatex() 391 pdflatex() 392 pdflatex() 393 subprocess.call(["makeindex", "-s", "python.ist", "Sasview.idx"], cwd=LATEXDIR) 394 pdflatex() 395 pdflatex() 396 397 print("=== Copy PDF to HTML Directory ===") 398 source = os.path.join(LATEXDIR, "Sasview.pdf") 399 target = os.path.join(SASVIEW_DOCS, "Sasview.pdf") 400 shutil.copyfile(source, target) 401 376 402 def build(): 377 403 """ 378 404 Runs sphinx-build. Reads in all .rst files and spits out the final html. 379 405 """ 380 print("=== Build HTML Docs from Re stFiles ===")406 print("=== Build HTML Docs from ReST Files ===") 381 407 subprocess.call(["sphinx-build", 382 408 "-b", "html", # Builder name. TODO: accept as arg to setup.py. … … 388 414 html = os.path.join(SPHINX_BUILD, "html") 389 415 copy_tree(html, SASVIEW_DOCS) 416 417 def convert_katex(): 418 print("=== Preprocess HTML, converting latex to html ===") 419 subprocess.call(["node", "convertKaTex.js", SASVIEW_DOCS]) 390 420 391 421 def rebuild(): … … 397 427 apidoc() 398 428 build() 429 #build_pdf() 430 #convert_katex() 399 431 400 432 print("=== Done ===")
Note: See TracChangeset
for help on using the changeset viewer.