Changeset 1028
- Timestamp:
- Jul 16, 2012 1:06:58 AM (11 years ago)
- Location:
- specdomain/trunk/src/specdomain
- Files:
-
- 5 added
- 8 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
specdomain/trunk/src/specdomain/CHANGES
r1007 r1028 3 3 This file describes user-visible changes between the extension versions. 4 4 5 Version 1.0 (2012-07-1 3)5 Version 1.0 (2012-07-16) 6 6 ------------------------ 7 7 -
specdomain/trunk/src/specdomain/doc/bugs.rst
r1027 r1028 11 11 * fix the signature recognition for roles 12 12 * fix the signature handling for roles and directives 13 * the out-of-source example PNG shows a Python project, should be a SPEC project -
specdomain/trunk/src/specdomain/doc/conventions.rst
r1027 r1028 1 1 .. $Id$ 2 3 .. index:: ! SPEC conventions 4 see: conventions; SPEC conventions 2 5 3 6 ==================================================================== … … 6 9 7 10 There are several conventions 8 for documenting SPEC macro source Codefiles11 for documenting SPEC macro source code files 9 12 to help provide consistency. 10 13 These are not requirements. 11 14 12 .. index:: ! extended comment 15 .. index:: 16 pair: SPEC conventions; extended comments 17 18 .. _convention for extended comment: 13 19 14 20 extended comment … … 18 24 (This setting could be changed with an optional switch.) 19 25 20 A "section"might be the global scope of a .mac file or a macro definition block.26 A *section* might be the global scope of a .mac file or a macro definition block. 21 27 22 28 As much as possible, use the python documentation style (that is, … … 28 34 If the first paragraph starts with a ":", no summary text will be assumed. 29 35 30 .. index:: ! descriptive comment 36 37 38 .. index:: ! descriptive comments 39 pair: SPEC conventions; descriptive comments 40 31 41 .. _descriptive comment: 32 42 … … 56 66 57 67 58 .. index:: ! hidden object 68 69 70 .. index:: ! hidden objects 71 pair: SPEC conventions; hidden objects 59 72 60 73 hidden objects -
specdomain/trunk/src/specdomain/doc/howto-build.rst
r1013 r1028 6 6 ==================================================================== 7 7 8 --tba-- 9 10 :: 8 Briefly:: 11 9 12 10 make html -
specdomain/trunk/src/specdomain/doc/howto-configure.rst
r1022 r1028 28 28 files are in **the same directory** as the SPEC macro files. 29 29 30 Here is a graphical example: --tba-- 30 Here is a graphical example: 31 32 .. figure:: in-source.png 33 :alt: example directory of an in-source configuration 34 35 Example directory of an in-source configuration 31 36 32 37 .. index:: ! out-of-source configuration … … 38 43 files are in **a separate directory** from the SPEC macro files. 39 44 40 Here is a graphical example: --tba-- 45 Here is a graphical example: [#]_ 46 47 .. figure:: out-of-source1.png 48 :alt: example build directory of an out-of-source configuration 49 50 Example build directory of an out-of-source configuration 51 52 The source files are located in the *source* directory (child of the build directory): 53 54 .. figure:: out-of-source2.png 55 :alt: example *source* directory of an out-of-source configuration 56 57 Example *source* directory of an out-of-source configuration 58 59 60 .. caution:: FIXME: these are Python files and project directories. 61 The figure *should* be shown with SPEC macro files out-of-source. 62 63 41 64 42 65 Create the Sphinx documentation tree … … 54 77 cd /tmp/sandbox 55 78 56 Create a Sphinx configuration in this directory by running ``sphinx-quickstart``: 79 .. index:: sphinx-quickstart 80 81 Create a Sphinx configuration in this directory by running:: 82 83 sphinx-quickstart 84 85 Here's the full session: 57 86 58 87 .. code-block:: text … … 134 163 jemian@como-ubuntu64:/tmp/sandbox$ 135 164 165 In case you missed them, these are the non-default answers supplied: 166 167 ========================================================================================= =============== 168 prompt response 169 ========================================================================================= =============== 170 ``> Project name:`` *sandbox* 171 ``> Author name(s):`` *sandy* 172 ``> Project version:`` *test* 173 ``> autodoc: automatically insert docstrings from modules (y/N) [n]:`` *y* 174 ``> viewcode: include links to the source code of documented Python objects (y/N) [n]:`` *y* 175 ========================================================================================= =============== 176 136 177 137 178 Configure: Changes to ``conf.py`` … … 153 194 154 195 html_theme = 'sphinxdoc' 196 197 198 ---------------------------------- 199 200 .. rubric:: Footnotes 201 202 .. [#] The green check boxes correspond to the status of each item in the version control system. -
specdomain/trunk/src/specdomain/doc/howto-markup.rst
r1027 r1028 51 51 prompt response 52 52 ======================================================================================== ================================ 53 ``> Project name:`` * *example**54 ``> Author name(s):`` * *SPEC Macro Writer**55 ``> Project version:`` * *1**56 ``> autodoc: automatically insert docstrings from modules (y/N) [n]:`` * *y**57 ``> viewcode: include links to the source code of documented Python objects (y/N) [n]:`` * *y**53 ``> Project name:`` *example* 54 ``> Author name(s):`` *SPEC Macro Writer* 55 ``> Project version:`` *1* 56 ``> autodoc: automatically insert docstrings from modules (y/N) [n]:`` *y* 57 ``> viewcode: include links to the source code of documented Python objects (y/N) [n]:`` *y* 58 58 ======================================================================================== ================================ 59 59 … … 205 205 Note that the two colons indicate literal text follows. 206 206 Both the blank line after the colons and the final blank line are required to avoid warnings. 207 And, the entire comment must be indentedat least one column to the right of the two colons.207 And, the entire comment *must be indented* at least one column to the right of the two colons. 208 208 209 209 reST markup … … 240 240 This markup does not look too complicated until we reach the *Modification history* 241 241 starting at line 23. The content here might be coded as either literal text (above) 242 or a reST table. Since the table is easy *and* CVS is no longer used , we'll243 format it as a table.242 or a reST table. Since the table is easy *and* CVS is no longer used to build the 243 revision history, we'll format it as a table. 244 244 245 245 Consider this SPEC comment: … … 354 354 User macros 355 355 ioc_HKL -> to turn on/off the feature of putting HKL to shared 356 356 memory. 357 357 358 358 Internal macros -
specdomain/trunk/src/specdomain/doc/index.rst
r1007 r1028 17 17 18 18 howto 19 examples 19 20 conventions 20 21 spec 21 example22 bpm23 aalength24 22 25 23 Other matters -
specdomain/trunk/src/specdomain/doc/simple.mac
r1027 r1028 48 48 def CheckSaveToFile '{ 49 49 """ 50 Helps prevent user from writing data to */dev/null* by accident. 51 50 52 This macro will run when SPEC starts and checks 51 if the output is directed into a file or might be ignored .53 if the output is directed into a file or might be ignored (written to */dev/null*). 52 54 It runs :spec:def:`newsample` if the output might be ignored. 53 55 """ -
specdomain/trunk/src/specdomain/doc/simple.rst
r1027 r1028 2 2 3 3 ==================================================================== 4 Example SPEC Macro Source Code File Documentation 4 Simple Example to Document a SPEC Macro File 5 5 ==================================================================== 6 6 7 7 This example demonstrates how a file with simple reST markup will be documented.:: 8 8 9 .. autospecmacro:: example.mac9 .. autospecmacro:: simple.mac 10 10 11 .. autospecmacro:: example.mac11 .. autospecmacro:: simple.mac -
specdomain/trunk/src/specdomain/doc/spec.rst
r1007 r1028 69 69 -------------------------------- 70 70 71 .. sidebar:: Do not use the single-quote character to mark an extended comment. 72 73 In the Python language, a triple-quoted string is known as a docstring. 74 But, **unlike Python**, SPEC does not recognize single quotes 75 to mark extended comments. Only use the double quote character for SPEC files. 76 71 77 Since 2002, SPEC has provided an *extended comment* block. [#]_ 72 78 Such a block begins and ends … … 76 82 77 83 Here, the extended comment block should be formatted according to the conventions of 78 restructured text [#]_. 84 restructured text [#]_. There is also a 85 :ref:`recommended convention <convention for extended comment>` 86 for using extended comments in SPEC macro files. 87 79 88 80 89
Note: See TracChangeset
for help on using the changeset viewer.