Changeset 1090 for specdomain/trunk/src/specdomain/doc/style_guide.rst
- Timestamp:
- Aug 24, 2012 6:30:30 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
specdomain/trunk/src/specdomain/doc/style_guide.rst
r1088 r1090 417 417 definition list which is processed by sphinx to include more information, 418 418 for example, the type of an argument. Other projects, however, actively 419 discourage its use. The syntax is as follows:: 419 discourage its use or prefer the above style for simplicity. 420 The syntax is as follows:: 420 421 421 422 :param str motor_name: name of motor to use. … … 428 429 EXAMPLE: 429 430 A short example, illustrating the usage of the macro. As in the case of the 430 USAGE section, the syntax should appear as pre formatted text, and each input431 USAGE section, the syntax should appear as pre-formatted text, and each input 431 432 line should start with the ``>``-symbol to represent the SPEC command line 432 433 prompt. Short explanation lines can be inserted as indented comment lines:: … … 458 459 459 460 """ 460 Summary line461 Concise summary line. 461 462 462 463 USAGE:: 463 464 464 > my_move <motor> <position> 465 > my_move <motor> <position> [<sleep_time>] 465 466 466 467 ARGUMENTS: 467 :motor: The motor to be moved. 468 :position: The position to move the motor to. 468 469 Required arguments: 470 :motor: The motor to be moved [str]. 471 :position: The position to move the motor to [float]. 472 473 Optional arguments: 474 :sleep_time: Settling time after the move has finished [float]. 469 475 470 476 EXAMPLE:: 471 477 472 > my_move del 23.2346 473 478 > my_move del 23.2346 0.3 479 # move del to 23.2346 and wait for 0.3 seconds after move finishes. 474 480 NOTE: 475 Indicate any side effects, restrictions or other usage notes here 481 Indicate any side effects, restrictions or other usage notes here. 476 482 477 483 SEE ALSO: … … 481 487 """ 482 488 483 484 485 486 487 488 489 490 491 492 493 489 This results in the following: 490 491 Concise summary line. 492 493 USAGE:: 494 495 > my_move <motor> <position> [<sleep_time>] 496 497 ARGUMENTS: 498 499 Required arguments: 500 :motor: The motor to be moved [str]. 501 :position: The position to move the motor to [float]. 502 503 Optional arguments: 504 :sleep_time: Settling time after the move has finished [float]. 505 506 EXAMPLE:: 507 508 > my_move del 23.2346 0.3 509 # move del to 23.2346 and wait for 0.3 seconds after move finishes. 510 NOTE: 511 Indicate any side effects, restrictions or other usage notes here. 512 513 SEE ALSO: 514 * :spec:def:`my_move2` 515 * :spec:global:`MOVE_FLAG` 516 517 518 519 520 521 522 523 524 525 526
Note: See TracChangeset
for help on using the changeset viewer.