@@ -488,7 +488,7 @@ def get_script_common_text(this: str, example: Optional[str] = None):
488488 default = None
489489 elif item .endswith ("handlers" ):
490490 desc = desc + '\n \n ' + dedent (f'''
491- Examples:
491+ .. rubric:: Examples:
492492
493493 .. code-block:: cylc
494494
@@ -548,7 +548,7 @@ def get_script_common_text(this: str, example: Optional[str] = None):
548548 Conf ('<parameter>' , VDR .V_PARAMETER_LIST , desc = '''
549549 A custom parameter to use in a workflow.
550550
551- Examples:
551+ .. rubric:: Examples:
552552
553553 - ``run = control, test1, test2``
554554 - ``mem = 1..5`` (equivalent to ``1, 2, 3, 4, 5``).
@@ -623,6 +623,24 @@ def get_script_common_text(this: str, example: Optional[str] = None):
623623
624624 This item can be overridden on the command line using
625625 ``cylc play --initial-cycle-point`` or ``--icp``.
626+
627+ .. rubric:: Examples:
628+
629+ ``2000-01-01T00:00Z``
630+ The 1st of January at midnight.
631+ ``2000``
632+ Shorthand for ``2000-01-01T00:00``.
633+ ``now``
634+ The exact time when the workflow is started. By default this is
635+ to the minute, e.g: ``2001-02-03T12:34``.
636+ ``previous(T-00)``
637+ The hour when the workflow was started. I.e, The time when the
638+ workflow is started with the minute cut off.
639+ ``previous(T00)``
640+ The day when the workflow was started. I.e, the time when the
641+ workflow was started with the hour and minute cut off.
642+ ``next(T00)``
643+ The day after the workflow was started (at midnight).
626644 ''' )
627645 # NOTE: final cycle point is not a V_CYCLE_POINT to allow expressions
628646 # such as '+P1Y' (relative to initial cycle point)
@@ -635,11 +653,16 @@ def get_script_common_text(this: str, example: Optional[str] = None):
635653 This item can be overridden on the command line using
636654 ``cylc play --final-cycle-point`` or ``--fcp``.
637655
638- Examples:
656+ .. rubric:: Examples:
639657
640- - ``2000`` - Shorthand for ``2000-01-01T00:00``.
641- - ``+P1D`` - The initial cycle point plus one day.
642- - ``2000 +P1D +P1Y`` - The year ``2000`` plus one day and one year.
658+ ``2000-01-01T00:00Z``
659+ The 1st of January at midnight.
660+ ``2000``
661+ Shorthand for ``2000-01-01T00:00``.
662+ ``+P1D``
663+ The initial cycle point plus one day.
664+ ``2000 +P1D +P1Y``
665+ The year ``2000`` plus one day and one year.
643666 ''' )
644667 Conf ('initial cycle point constraints' , VDR .V_STRING_LIST ,
645668 desc = CYCLE_POINT_CONSTRAINTS .format ('initial' ) + dedent ('''
@@ -676,7 +699,7 @@ def get_script_common_text(this: str, example: Optional[str] = None):
676699 choosing not to run that part of the graph. You can play
677700 the workflow and continue.
678701
679- Examples:
702+ .. rubric:: Examples:
680703
681704 - ``2000`` - Shorthand for ``2000-01-01T00:00``.
682705 - ``+P1D`` - The initial cycle point plus one day.
@@ -717,7 +740,7 @@ def get_script_common_text(this: str, example: Optional[str] = None):
717740 value instead, in which case the number of cycles
718741 within the interval depends on the cycling intervals present.
719742
720- Examples:
743+ .. rubric:: Examples:
721744
722745 ``P0``
723746 Only one cycle can be active at a time.
@@ -831,7 +854,7 @@ def get_script_common_text(this: str, example: Optional[str] = None):
831854
832855 :ref:`ClockExpireTasks`.
833856
834- Examples:
857+ .. rubric:: Examples:
835858
836859 ``foo(PT1H)`` - expire task ``foo`` if the current wall clock
837860 time has reached 1 hour after the task's cycle point.
@@ -1035,7 +1058,7 @@ def get_script_common_text(this: str, example: Optional[str] = None):
10351058
10361059 See :ref:`task namespace rules. <namespace-names>`
10371060
1038- Examples of legal values :
1061+ ..rubric:: Examples :
10391062
10401063 - ``[foo]``
10411064 - ``[foo, bar, baz]``
0 commit comments