Changeset 1049 for specdomain/trunk/src/specdomain/doc/conventions.rst
- Timestamp:
- Jul 17, 2012 5:15:35 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
specdomain/trunk/src/specdomain/doc/conventions.rst
r1043 r1049 5 5 6 6 ==================================================================== 7 Common Conventions7 SPEC Documentation Conventions 8 8 ==================================================================== 9 9 10 Th ere are several conventions11 for documenting SPEC macro source code files 12 to help provide consistency. 13 These are not requirements.10 This document lays out several conventions for for documenting SPEC 11 macro source code files. The aim of these conventions is to to help provide 12 consistency for the "look and feel" of the resulting documentation. However, 13 these conventions are by no means strict requirements. 14 14 15 15 .. index:: … … 49 49 .. Is it used to document Python code? 50 50 51 Descriptive comments are used to document items that cannot contain 52 extended comments (triple-quoted strings) such as variable declarations 53 or *rdef* or *cdef* macro declarations. They appear either in-line 54 with the declaration or on the preceding line. 51 Descriptive comments are a new construct which can be used to document items 52 that cannot contain extended comments (triple-quoted strings) themselves, 53 such as variable declarations or *rdef* or *cdef* macro declarations. 54 They appear either as comments in the same line after the declaration (in-line) 55 or as a comment-only line immediately preceding the declaration (one-liner). 55 56 56 Descriptive comment example that documents *tth*, a global variable declaration:: 57 **Examples**: 58 Descriptive comment that documents *tth*, a global variable declaration:: 57 59 58 60 global tth #: two-theta, the scattering angle 59 61 60 Descriptive comment examplethat documents *ccdset_shutter*, a *rdef* declaration::62 Descriptive comment that documents *ccdset_shutter*, a *rdef* declaration:: 61 63 62 64 #: clear the ccd shutter handler
Note: See TracChangeset
for help on using the changeset viewer.