Skip to content

Commit

Permalink
Second attempt to fix the doc
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Nov 16, 2023
1 parent 980a652 commit ecaef96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Doc/c-api/time.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ range is around [-292.3 years; +292.3 years]. Using the Unix epoch (January
Time formats:

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

.. c:function:: double PyTime_AsSecondsDouble(PyTime_t t)
Convert a timestamp to a number of seconds as a C :c:type:`double`.
Convert a timestamp to a number of seconds as a C :c:expr:`double`.
The function cannot fail.
Expand Down
10 changes: 5 additions & 5 deletions Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,12 @@
('py:meth', '_SubParsersAction.add_parser'),
]

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

Expand Down

0 comments on commit ecaef96

Please sign in to comment.