Changeset 927


Ignore:
Timestamp:
Jun 13, 2012 5:46:28 PM (10 years ago)
Author:
jemian
Message:

refs #8, directives work, no SPEC entries in the index, re-examine the standard domains supplied with Sphinx to improve

Location:
specdomain/src/specdomain
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • specdomain/src/specdomain/doc/starter.py

    r924 r927  
    1313
    1414
    15 def force_rebuild_all():
     15def force_rebuild_all(parent = '_build'):
    1616    '''
    1717    Delete the *doctrees* subdirectory.
     18   
     19    :param str parent: path to *build* subdirectory (either ``build`` or ``_build``)
    1820    '''
    19     if os.path.exists('_build/doctrees'):
     21    if os.path.exists(parent):
    2022        garbage_list = [
    21             '_build/doctrees/environment.pickle',
    22             '_build/doctrees/index.doctree',
    23             '_build/doctrees/test_doc.doctree',
     23            parent+'/doctrees/environment.pickle',
     24            parent+'/doctrees/index.doctree',
     25            parent+'/doctrees/test_doc.doctree',
    2426        ]
    2527        for item in garbage_list:
    2628            if os.path.exists(item):
    2729                os.remove(item)
    28         os.rmdir('_build/doctrees')
     30        os.rmdir(parent+'/doctrees')
    2931
    3032
  • specdomain/src/specdomain/test/index.rst

    r919 r927  
    2020* :ref:`search`
    2121
     22.. * :ref:`modindex`
     23
    2224*documentation built*:
    2325|today|
  • specdomain/src/specdomain/test/starter.py

    r924 r927  
    1313
    1414
    15 def force_rebuild_all():
     15def force_rebuild_all(parent = '_build'):
    1616    '''
    1717    Delete the *doctrees* subdirectory.
     18   
     19    :param str parent: path to *build* subdirectory (either ``build`` or ``_build``)
    1820    '''
    19     if os.path.exists('_build/doctrees'):
     21    if os.path.exists(parent):
    2022        garbage_list = [
    21             '_build/doctrees/environment.pickle',
    22             '_build/doctrees/index.doctree',
    23             '_build/doctrees/test_doc.doctree',
     23            parent+'/doctrees/environment.pickle',
     24            parent+'/doctrees/index.doctree',
     25            parent+'/doctrees/test_doc.doctree',
    2426        ]
    2527        for item in garbage_list:
    2628            if os.path.exists(item):
    2729                os.remove(item)
    28         os.rmdir('_build/doctrees')
     30        os.rmdir(parent+'/doctrees')
    2931
    3032
  • specdomain/src/specdomain/test/test_doc.rst

    r919 r927  
    2020^^^^^^^^^^^
    2121
    22 .. spec:def:: example_defined_macro [arg1 [arg2 [...]]]
     22.. spec:def:: example_defined_macro arg1 arg2 arg3
    2323
    2424   :param arg1: anything
Note: See TracChangeset for help on using the changeset viewer.