Changeset 919
- Timestamp:
- Jun 12, 2012 5:10:09 PM (10 years ago)
- Location:
- specdomain/src/specdomain
- Files:
-
- 5 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
specdomain/src/specdomain/doc/index.rst
r912 r919 11 11 :maxdepth: 2 12 12 13 objectives 13 14 reference 15 changes 16 license 14 17 15 18 * :ref:`genindex` … … 20 23 21 24 .. include:: ../AUTHORS 22 23 ChangeLog24 =========25 26 .. include:: ../CHANGES27 28 29 License30 =======31 32 .. literalinclude:: ../LICENSE33 :linenos: -
specdomain/src/specdomain/sphinxcontrib/specdomain.py
r918 r919 392 392 label = 'SPEC' 393 393 object_types = { 394 ' function': ObjType(l_('function'), 'func'),395 ' macro': ObjType(l_('macro'), 'macro'),396 ' global': ObjType(l_('global'), 'global'),397 'record': ObjType(l_('record'), 'record'),398 'module': ObjType(l_('module'), 'mod'),399 'variable': ObjType(l_('variable'), 'var'),394 'def': ObjType(l_('def'), 'def'), 395 'rdef': ObjType(l_('rdef'), 'rdef'), 396 'cdef': ObjType(l_('cdef'), 'cdef'), 397 #'record': ObjType(l_('record'), 'record'), 398 #'module': ObjType(l_('module'), 'mod'), 399 #'variable': ObjType(l_('variable'), 'var'), 400 400 } 401 401 directives = { 402 ' function': SpecObject,403 ' macro':SpecObject,404 ' record':SpecObject,405 'module': SpecModule,406 'variable': SpecVariable,407 'global': SpecVariable,408 'currentmodule': SpecCurrentModule,402 'def': SpecObject, 403 'rdef': SpecObject, 404 'cdef': SpecObject, 405 #'module': SpecModule, 406 #'variable': SpecVariable, 407 #'global': SpecVariable, 408 #'currentmodule': SpecCurrentModule, 409 409 } 410 410 roles = { 411 ' func' :SpecXRefRole(),412 ' macro':SpecXRefRole(),413 ' global':SpecXRefRole(),414 'record': SpecXRefRole(),415 'mod': SpecXRefRole(),411 'def' : SpecXRefRole(), 412 'rdef': SpecXRefRole(), 413 'cdef': SpecXRefRole(), 414 #'record': SpecXRefRole(), 415 #'mod': SpecXRefRole(), 416 416 } 417 417 initial_data = { -
specdomain/src/specdomain/test/conf.py
- Property svn:eol-style set to native
- Property svn:keywords set to Id
-
specdomain/src/specdomain/test/index.rst
r912 r919 18 18 19 19 * :ref:`genindex` 20 * :ref:`modindex`21 20 * :ref:`search` 22 21 22 *documentation built*: 23 |today| -
specdomain/src/specdomain/test/test_doc.rst
r912 r919 1 .. $Id$ 2 1 3 =============== 2 4 Acceptance Test … … 5 7 If all links are valid, test is done successfully. 6 8 7 Global (spec module's contents)8 ===============================9 9 10 .. spec:function:: function_out_of_module 10 Directives 11 ========== 11 12 12 .. spec:module:: test_module 13 A *directive* can be used to define the anchor point of a reference. 14 Index entries will point back to the *directive*. If the item 15 defined in the directive is not obtained from the source code, 16 then define it here, like these. All of these directives should 17 have entries in an Index. 13 18 14 .. define various tests 19 SPEC Macros 20 ^^^^^^^^^^^ 21 22 .. spec:def:: example_defined_macro [arg1 [arg2 [...]]] 23 24 :param arg1: anything 25 :type arg1: str 26 :param arg2: another thing 27 28 .. spec:rdef:: example_runtime_defined_macro content 29 30 :param content: SPEC code (single or multi-line but typically a single macro) 31 :type content: str 32 33 .. spec:cdef:: example_chained_macro(identifier, content, placement) 34 35 :param identifier: one-word name for this macro chain 36 :type identifier: str 37 :param content: SPEC code to be inserted (typically a single macro) 38 :type content: str 39 :param placement: see the manual 40 :type placement: str 41 42 SPEC Variables 43 ^^^^^^^^^^^^^^ 44 45 * global variable declaration: 46 * local variable declaration: 47 * array variable declaration: 48 49 Python example 50 ^^^^^^^^^^^^^^ 51 52 .. py:function:: the_time(t = None) 53 54 :param t: time_t object or None (defaults to ``now()``) 55 :type t: str 56 57 58 Roles 59 ===== 60 61 A *role* refers to a *directive* (makes a link to a *directive* defined elsewhere). 62 Each of these items should produce a valid link. 63 64 SPEC Macros 65 ^^^^^^^^^^^ 66 67 * macro definition: :spec:def:`example_defined_macro` 68 * runtime-defined macro definition: :spec:rdef:`example_runtime_defined_macro` 69 * chained macro definition: :spec:cdef:`example_chained_macro` 70 71 SPEC Variables 72 ^^^^^^^^^^^^^^ 73 74 * global variable declaration: 75 * local variable declaration: 76 * array variable declaration: 77 78 Python example 79 ^^^^^^^^^^^^^^ 80 81 See the python method :py:func:`the_time()` (defined above)
Note: See TracChangeset
for help on using the changeset viewer.