Skip to content

Commit 0d7c212

Browse files
authored
Merge pull request #49 from club-1/doc-cleanup
Cleanup doc (nocontentsentry, indentation, rst xrefs)
2 parents 6b98bf5 + b0edc14 commit 0d7c212

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

README.rst

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ This is source::
4949

5050
.. php:class:: DateTime
5151

52-
Datetime class
52+
Datetime class
5353

54-
.. php:method:: setDate($year, $month, $day)
54+
.. php:method:: setDate($year, $month, $day)
5555

5656
Set the date.
5757

@@ -61,7 +61,7 @@ This is source::
6161
:returns: Either false on failure, or the datetime object for method chaining.
6262

6363

64-
.. php:method:: setTime($hour, $minute[, $second])
64+
.. php:method:: setTime($hour, $minute[, $second])
6565

6666
Set the time.
6767

@@ -70,18 +70,20 @@ This is source::
7070
:param int $second: The second
7171
:returns: Either false on failure, or the datetime object for method chaining.
7272

73-
.. php:const:: ATOM
73+
.. php:const:: ATOM
7474

7575
Y-m-d\TH:i:sP
7676

7777
Result
7878
-----------------
7979

8080
.. php:class:: DateTime
81+
:nocontentsentry:
8182

82-
Datetime class
83+
Datetime class
8384

84-
.. php:method:: setDate($year, $month, $day)
85+
.. php:method:: setDate($year, $month, $day)
86+
:nocontentsentry:
8587

8688
Set the date.
8789

@@ -91,7 +93,8 @@ Result
9193
:returns: Either false on failure, or the DateTime object for method chaining.
9294

9395

94-
.. php:method:: setTime($hour, $minute[, $second])
96+
.. php:method:: setTime($hour, $minute[, $second])
97+
:nocontentsentry:
9598

9699
Set the time.
97100

@@ -100,7 +103,8 @@ Result
100103
:param int $second: The second
101104
:returns: Either false on failure, or the DateTime object for method chaining.
102105

103-
.. php:const:: ATOM
106+
.. php:const:: ATOM
107+
:nocontentsentry:
104108

105109
Y-m-d\TH:i:sP
106110

doc/reference.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ Each directive populates the index, and or the namespace index.
132132
Text about the method
133133
134134

135-
.. seealso:: .. php:method:: name
136-
.. php:attr:: name
137-
.. php:const:: name
135+
.. seealso:: :rst:dir:`php:method`
136+
:rst:dir:`php:attr`
137+
:rst:dir:`php:const`
138138

139139
.. rst:directive:: .. php:method:: name(signature)
140140

0 commit comments

Comments
 (0)