Skip to content

Commit ecaef96

Browse files
committed
Second attempt to fix the doc
1 parent 980a652 commit ecaef96

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Doc/c-api/time.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ range is around [-292.3 years; +292.3 years]. Using the Unix epoch (January
2222
Time formats:
2323

2424
* Seconds.
25-
* Seconds as a floating pointer number (C :c:type:`double`).
25+
* Seconds as a floating pointer number (C :c:expr:`double`).
2626
* Milliseconds (10\ :sup:`-3` seconds).
2727
* Microseconds (10\ :sup:`-6` seconds).
2828
* 100 nanoseconds (10\ :sup:`-7` seconds), used on Windows.
@@ -88,7 +88,7 @@ Functions
8888

8989
.. c:function:: double PyTime_AsSecondsDouble(PyTime_t t)
9090
91-
Convert a timestamp to a number of seconds as a C :c:type:`double`.
91+
Convert a timestamp to a number of seconds as a C :c:expr:`double`.
9292
9393
The function cannot fail.
9494

Doc/conf.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,12 @@
237237
('py:meth', '_SubParsersAction.add_parser'),
238238
]
239239

240-
# gh-106948: Copy standard C types declared in the "c:type" domain to the
241-
# "c:identifier" domain, since "c:function" markup looks for types in the
242-
# "c:identifier" domain. Use list() to not iterate on items which are being
243-
# added
240+
# gh-106948: Copy standard C types declared in the "c:type" domain and C
241+
# structures declared in the "c:struct" domain to the "c:identifier" domain,
242+
# since "c:function" markup looks for types in the "c:identifier" domain. Use
243+
# list() to not iterate on items which are being added
244244
for role, name in list(nitpick_ignore):
245-
if role == 'c:type':
245+
if role in ('c:type', 'c:struct'):
246246
nitpick_ignore.append(('c:identifier', name))
247247
del role, name
248248

0 commit comments

Comments
 (0)