Skip to content

Commit 6dfef94

Browse files
authored
GH-49509: [Docs][Python][C++] Minimize warnings and docutils errors for Sphinx build html (#49510)
### Rationale for this change Closes #49509 ### What changes are included in this PR? Docs formatting/typos corrected. ### Are these changes tested? Yes, on fork branch. ### Are there any user-facing changes? No, just corrected formatting/typos in docs. * GitHub Issue: #49509 Authored-by: Tadeja Kadunc <tadeja.kadunc@gmail.com> Signed-off-by: Rok Mihevc <rok@mihevc.org>
1 parent 7ec459a commit 6dfef94

File tree

14 files changed

+38
-24
lines changed

14 files changed

+38
-24
lines changed

cpp/apidoc/Doxyfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2476,6 +2476,7 @@ PREDEFINED = __attribute__(x)= \
24762476
__declspec(x)= \
24772477
ARROW_ACERO_EXPORT= \
24782478
ARROW_ARG_UNUSED(x)=x \
2479+
ARROW_CUDA_EXPORT= \
24792480
ARROW_DEPRECATED(x)= \
24802481
ARROW_DS_EXPORT= \
24812482
ARROW_ENGINE_EXPORT= \

cpp/src/arrow/compute/kernels/scalar_arithmetic.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,13 +1347,13 @@ const FunctionDoc atan2_doc{"Compute the inverse tangent of y/x",
13471347
{"y", "x"}};
13481348

13491349
const FunctionDoc atanh_doc{"Compute the inverse hyperbolic tangent",
1350-
("NaN is returned for input values x with |x| > 1.\n"
1350+
("NaN is returned for input values x with \\|x\\| > 1.\n"
13511351
"At x = +/- 1, returns +/- infinity.\n"
13521352
"To raise an error instead, see \"atanh_checked\"."),
13531353
{"x"}};
13541354

13551355
const FunctionDoc atanh_checked_doc{"Compute the inverse hyperbolic tangent",
1356-
("Input values x with |x| >= 1.0 raise an error\n"
1356+
("Input values x with \\|x\\| >= 1.0 raise an error\n"
13571357
"to return NaN instead, see \"atanh\"."),
13581358
{"x"}};
13591359

cpp/src/arrow/compute/kernels/vector_pairwise.cc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,23 +111,23 @@ Status PairwiseExec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out)
111111

112112
const FunctionDoc pairwise_diff_doc(
113113
"Compute first order difference of an array",
114-
("Computes the first order difference of an array, It internally calls \n"
115-
"the scalar function \"subtract\" to compute \n differences, so its \n"
116-
"behavior and supported types are the same as \n"
117-
"\"subtract\". The period can be specified in :struct:`PairwiseOptions`.\n"
114+
("Computes the first order difference of an array. It internally calls\n"
115+
"the scalar function \"subtract\" to compute differences, so its\n"
116+
"behavior and supported types are the same as\n"
117+
"\"subtract\". The period can be specified in `PairwiseOptions`.\n"
118118
"\n"
119-
"Results will wrap around on integer overflow. Use function \n"
119+
"Results will wrap around on integer overflow. Use function\n"
120120
"\"pairwise_diff_checked\" if you want overflow to return an error."),
121121
{"input"}, "PairwiseOptions");
122122

123123
const FunctionDoc pairwise_diff_checked_doc(
124124
"Compute first order difference of an array",
125-
("Computes the first order difference of an array, It internally calls \n"
126-
"the scalar function \"subtract_checked\" (or the checked variant) to compute \n"
127-
"differences, so its behavior and supported types are the same as \n"
128-
"\"subtract_checked\". The period can be specified in :struct:`PairwiseOptions`.\n"
125+
("Computes the first order difference of an array. It internally calls\n"
126+
"the scalar function \"subtract_checked\" (or the checked variant) to compute\n"
127+
"differences, so its behavior and supported types are the same as\n"
128+
"\"subtract_checked\". The period can be specified in `PairwiseOptions`.\n"
129129
"\n"
130-
"This function returns an error on overflow. For a variant that doesn't \n"
130+
"This function returns an error on overflow. For a variant that doesn't\n"
131131
"fail on overflow, use function \"pairwise_diff\"."),
132132
{"input"}, "PairwiseOptions");
133133

cpp/src/arrow/result.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ class [[nodiscard]] Result : public util::EqualityComparable<Result<T>> {
228228
}
229229

230230
/// Templatized constructor which constructs a `Result<T>` by moving the
231-
/// contents of a `Result<U>`. `T` must be implicitly constructible from `U
232-
/// &&`.
231+
/// contents of a `Result<U>`. `T` must be implicitly constructible from
232+
/// `U&&`.
233233
///
234234
/// Sets `other` to contain a non-OK status with a `StatusError::Invalid`
235235
/// error code.

docs/source/cpp/env_vars.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ that changing their value later will have an effect.
9494
value "1"; use "0" to disable.
9595

9696
If enabled, at-fork handlers make Arrow C++ compatible with the use of the
97-
``fork()`` system call, such as by Python's :python:mod:`multiprocessing`,
97+
``fork()`` system call, such as by Python's :py:mod:`multiprocessing`,
9898
but at the expense of executing
9999
`potentially unsafe code <https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_atfork.html>`__
100100
in a forked child process if the parent process is multi-threaded.

docs/source/format/CanonicalExtensions.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,4 +590,10 @@ Arrow extension types for representing vector geometries. It is well known
590590
within the Arrow geospatial subcommunity. The GeoArrow specification is not yet
591591
finalized.
592592

593+
.. toctree::
594+
:maxdepth: 1
595+
:hidden:
596+
597+
CanonicalExtensions/Examples
598+
593599
.. _rfc8259: https://datatracker.ietf.org/doc/html/rfc8259

docs/source/format/Security.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Columnar Format
5252
Invalid data
5353
------------
5454

55-
The Arrow :ref:`columnar format <_format_columnar>` is an efficient binary
55+
The Arrow :ref:`columnar format <format_columnar>` is an efficient binary
5656
representation with a focus on performance and efficiency. While the format
5757
does not store raw pointers, the contents of Arrow buffers are often
5858
combined and converted to pointers into the process' address space.
@@ -165,7 +165,7 @@ have bugs anyway.
165165
IPC Format
166166
==========
167167

168-
The :ref:`IPC format <_ipc-message-format>` is a serialization format for the
168+
The :ref:`IPC format <ipc-message-format>` is a serialization format for the
169169
columnar format with associated metadata. Reading an IPC stream or file from
170170
an untrusted source comes with similar caveats as reading the Arrow columnar
171171
format.

docs/source/implementations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ The source files for the Cookbook are maintained in the
113113
C++ <cpp/index>
114114
C GLib <c_glib/index>
115115
Go <https://arrow.apache.org/go/>
116-
Java <java/index>
116+
Java <https://arrow.apache.org/java/current/>
117117
JavaScript <https://arrow.apache.org/js/current/>
118118
Julia <https://arrow.apache.org/julia/>
119119
MATLAB <https://github.com/apache/arrow/blob/main/matlab/README.md>

docs/source/python/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,4 @@ files into Arrow structures.
6767
env_vars
6868
api
6969
getting_involved
70-
benchmarks
7170
Python cookbook <https://arrow.apache.org/cookbook/py/>

python/pyarrow/_azurefs.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ cdef class AzureFileSystem(FileSystem):
5959
client_id : str, default None
6060
The client ID (Application ID) for Azure Active Directory authentication.
6161
Its interpretation depends on the credential type being used:
62+
6263
- For `ClientSecretCredential`: It is the Application (client) ID of your
6364
registered Azure AD application (Service Principal). It must be provided
6465
together with `tenant_id` and `client_secret` to use ClientSecretCredential.
@@ -67,6 +68,7 @@ cdef class AzureFileSystem(FileSystem):
6768
user-assigned managed identity and need to explicitly specify which one
6869
(e.g., if the resource has multiple user-assigned identities). For
6970
system-assigned managed identities, this parameter is typically not required.
71+
7072
client_secret : str, default None
7173
Client secret for Azure Active Directory authentication. Must be provided together
7274
with `tenant_id` and `client_id` to use ClientSecretCredential.

0 commit comments

Comments
 (0)