Changeset 905
- Timestamp:
- Jun 11, 2012 5:45:28 PM (10 years ago)
- Location:
- specdomain/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
specdomain/src/sphinxcontrib/specdomain.py
r904 r905 68 68 69 69 spec_paramlist_re = re.compile(r'([\[\],])') # split at '[', ']' and ',' 70 71 72 73 #### re parts that recognize the start of a macro definition (def or rdef)74 # # ^75 # # [\s]*76 # # [r]?77 # # def78 # # [\s]+79 # # ([a-zA-Z_][\w]*)80 # #81 #### re parts that recognize the start of a chained macro definition (cdef)82 # # ^83 # # [\s]*84 # # cdef85 # # \(86 #87 # def _ascan ''88 #89 # kohzuMove_PV = "32ida:KohzuPutBO"90 # Und_Delay = 0.191 #92 # def kohzuE_cmd(mne,key,p1) '{93 # if (key == "set_position") {94 # return95 # }96 # }'97 #98 # def show_und'99 # printf("\n%40.40s","Curent Undulator Status")100 # '101 #102 # # cleanup macro for ^C usage103 # rdef _cleanup3 \'resetUSAXS\'104 # rdef _cleanup3 \'\'105 # cdef("Fheader", fheader, "UCOL", 0x20)106 # rdef Flabel \'""\'107 108 109 #### re parts that recognize a global variable declaration110 # ^ # start of line111 # ([\s]*) # optional preceding white space112 # global # "global" declaration113 # ([\s]+[@]?[a-zA-Z_][\w]*(\[\])?)+ # one or more variable names114 # ([\s]+#.*)* # optional comment115 # $ # end of line116 117 # global BCDA_GM[]118 #119 # global billy[]120 # global 9billy[]121 # global _billy[]122 #123 # global kohzu_PV kohzuMV_PV UND_PV Und_Off UNDE_TRACK_ON124 # global kohzuStop_PV kohzuMode_PV kohzuMove_PV125 # global CCD_PREFIX # EPICS PV for CCD server126 # global CCD_OVERHEAD_SECS # readout time127 # global CCD_OVERHEAD_SECS_MEASURED # measured readout time128 #129 # global @A_name[] @B_name[]130 # unglobal @A_name131 # unglobal @B_name132 # global CCD_DARK_NUM CCDDARK CCD_THROW133 # global MULTI_IMGS # useful 8-ID's imm fileformat; currently not used134 70 135 71 … … 529 465 arity = min(arities) 530 466 if arity in arities: 531 532 467 docname, targetname = arities[arity] 468 return targetname, docname 533 469 return None, None 534 470 … … 557 493 558 494 def get_objects(self): 559 for refname, (docname, type) in self.data['objects'].iteritems():560 yield (refname, refname, type, docname, refname, 1)495 for refname, (docname, doctype) in self.data['objects'].iteritems(): 496 yield (refname, refname, doctype, docname, refname, 1) 561 497 562 498 563 499 def setup(app): 564 500 app.add_domain(SpecDomain) 501 # http://sphinx.pocoo.org/ext/appapi.html#sphinx.domains.Domain -
specdomain/src/test/hints.rst
r904 r905 11 11 * http://sphinx.pocoo.org/ext/tutorial.html 12 12 * https://bitbucket.org/birkenfeld/sphinx-contrib/ 13 * http://sphinx.pocoo.org/ext/appapi.html#sphinx.domains.Domain 14 15 .. note:: Per ``src/refs/sphinx-contrib/README``, 16 *Use "make-ext.py" to set up your extension subdirectory.* 17 18 There is also a useful comment about using ``ez_setup.py``. 13 19 14 20
Note: See TracChangeset
for help on using the changeset viewer.