Changeset 92a8206 in sasview for docs/sphinx-docs


Ignore:
Timestamp:
Apr 4, 2014 7:18:35 AM (11 years ago)
Author:
Peter Parker
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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
9e2bc6c
Parents:
4651383
Message:

Refs #202 - Make call to sphinx-apidoc more robust, and amend conf.py with some more SasView?-specific options. We still need a batch file to be able to compile on Windows.

Location:
docs/sphinx-docs
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • docs/sphinx-docs/Makefile

    r385e457 r92a8206  
    5252stubs: 
    5353        rm -rf source/api 
    54         sphinx-apidoc -o source/api -d 8 ../../src 
     54        python call-sphinx-api.py 
    5555         
    5656html: stubs 
  • docs/sphinx-docs/source/conf.py

    r941a0b8 r92a8206  
    1212# serve to show the default. 
    1313 
    14 import sys, os 
     14import sys, os, collections 
    1515 
    1616# If extensions (or modules to document with autodoc) are in another directory, 
    1717# add these directories to sys.path here. If the directory is relative to the 
    1818# documentation root, use os.path.abspath to make it absolute, like shown here. 
    19 sys.path.insert(0, os.path.abspath('../../src')) 
     19from distutils.util import get_platform 
     20platform = '.%s-%s'%(get_platform(),sys.version[:3]) 
     21build_lib = os.path.abspath('../../../build/lib'+platform) 
     22sys.path.insert(0, build_lib) 
     23print "-- path --" 
     24print "\n".join(sys.path) 
     25import sans.sansview 
     26from sans.sansview import __version__ as sasview_version 
     27print "version:",sasview_version 
    2028 
    2129# -- General configuration ----------------------------------------------------- 
     
    2634# Add any Sphinx extension module names here, as strings. They can be extensions 
    2735# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. 
    28 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.mathjax', 'sphinx.ext.viewcode'] 
     36extensions = ['sphinx.ext.autodoc', 
     37              'sphinx.ext.todo', 
     38              'sphinx.ext.coverage', 
     39              'sphinx.ext.mathjax', 
     40              'sphinx.ext.viewcode'] 
    2941 
    3042# Add any paths that contain templates here, relative to this directory. 
     
    6577# List of patterns, relative to source directory, that match files and 
    6678# directories to ignore when looking for source files. 
    67 exclude_patterns = [] 
     79# 
     80# PGP 2014/04/03: We have some code which doesn't get carried over to 
     81# the build directory.  Exclude the appropriate *.rst files here so 
     82# that we don't get various "ImportError: No module named ___" when 
     83# running Sphinx. 
     84exclude_patterns = ["*sans.perspectives.simulation.rst", 
     85                    "*sans.pr.c_extensions.rst", 
     86                    "*sans.realspace.rst", 
     87                    "*sans.simulation.rst",] 
    6888 
    6989# The reST default role (used for this markup: `text`) to use for all documents. 
Note: See TracChangeset for help on using the changeset viewer.