Skip to content

Commit 5421e73

Browse files
authored
docs: small fixes to source API documentation (#498)
1 parent 311158c commit 5421e73

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

docs/connectors/sources/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ For multiplatform support, Quix Streams starts the source process using the [spa
3939

4040
Sources work by sending data to Kafka topics. Then StreamingDataFrames consume these topics.
4141

42-
Each source provides a default topic based on its configuration. You can override the default topic by
43-
specifying a topic using the `app.dataframe()` method.
42+
Each source provides a default topic based on its configuration. You can override the default topic by specifying a topic using the `app.dataframe()` method.
4443

4544
**Example**
4645

docs/connectors/sources/csv-source.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A basic source that reads data from a single CSV file.
44

55
The CSV source reads the file, produce the data and exit. It doesn't keep any state. On restart, the whole file will be re-consumed.
66

7-
## How to use CSV Sourceth
7+
## How to use CSV Source
88

99
To use a CSV Source, you need to create and instance of `CSVSource` and pass it to the `app.dataframe()` method.
1010

docs/connectors/sources/custom-sources.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Quix Streams also provides a set of classes to help users implement custom sources.
44

5-
* [`quixstreams.sources.base.BaseSource`]: This is the base class for all other sources. It defines the must have methods.
6-
* [`quixstreams.sources.base.Source`]: A subclass of `BaseSource` that implements some helpful methods for writing sources. We recommend subclassing `Source` instead of `BaseSource`.
5+
* [`quixstreams.sources.base.Source`](../../api-reference/sources.md#sources): A subclass of `BaseSource` that implements some helpful methods for writing sources. We recommend subclassing `Source` instead of `BaseSource`.
6+
* [`quixstreams.sources.base.BaseSource`](../../api-reference/sources.md#BaseSource): This is the base class for all other sources. It defines the must have methods.
77

88
## Source
99

@@ -36,7 +36,7 @@ class MySource(Source):
3636
)
3737
```
3838

39-
For more information, see [`quixstreams.sources.base.Source`](../../api-reference/sources.md#sources) docstrings.
39+
For more information, see [`quixstreams.sources.base.Source`](../../api-reference/sources.md#source) docstrings.
4040

4141
## BaseSource
4242

quixstreams/sources/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ def serialize(
238238
timestamp_ms: Optional[int] = None,
239239
) -> KafkaMessage:
240240
"""
241-
Serialize data to bytes using the producer topic serializers and return a :class:`quixstreams.models.messages.KafkaMessage` .
241+
Serialize data to bytes using the producer topic serializers and return a `quixstreams.models.messages.KafkaMessage`.
242242
243-
:return: :class:`quixstreams.models.messages.KafkaMessage`
243+
:return: `quixstreams.models.messages.KafkaMessage`
244244
"""
245245
return self._producer_topic.serialize(
246246
key=key, value=value, headers=headers, timestamp_ms=timestamp_ms
@@ -294,7 +294,7 @@ def default_topic(self) -> Topic:
294294
Return a default topic matching the source name.
295295
The default topic will not be used if the topic has already been provided to the source.
296296
297-
:return: `:class:`quixstreams.models.topics.Topic`
297+
:return: `quixstreams.models.topics.Topic`
298298
"""
299299
return Topic(
300300
name=self.name,

quixstreams/sources/csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(
2020
) -> None:
2121
"""
2222
A base CSV source that reads data from a single CSV file.
23-
Best used with :class:`quixstreams.sinks.csv.CSVSink`.
23+
Best used with `quixstreams.sinks.csv.CSVSink`.
2424
2525
Required columns: key, value
2626
Optional columns: timestamp

quixstreams/sources/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def start(self) -> "SourceProcess":
114114

115115
def raise_for_error(self) -> None:
116116
"""
117-
Raise a :class:`quixstreams.sources.manager.SourceException`
117+
Raise a `quixstreams.sources.manager.SourceException`
118118
if the child process was terminated with an exception.
119119
"""
120120
if super().is_alive():

0 commit comments

Comments
 (0)