Skip to content

Commit 37cf75a

Browse files
feat: improve document api reference (#185)
* feat: improve document api reference * refactor: remove old documentation link * chore: CHANGELOG.md * [EMPTY] trigger CI * chore: add document link to README.md * chore: CHANGELOG.md * feat: improve document api reference * chore: add ReadTheDocs badge to README.md * chore: update ReadTheDocs badge alt text in README.md * chore: remove duplicate documentation link from README.md
1 parent 337dce7 commit 37cf75a

File tree

6 files changed

+34
-3
lines changed

6 files changed

+34
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
1. [#180](https://github.com/InfluxCommunity/influxdb3-python/pull/180): Add `flush()` method to `InfluxDBClient3`:
1818
- Allows flushing the write buffer without closing the client when using batching mode.
1919
- Enables applications to ensure data is written before querying, while keeping the client open for further operations.
20+
1. [#185](https://github.com/InfluxCommunity/influxdb3-python/pull/185):
21+
- Add API Reference page on document page
22+
- Remove old document link.
23+
- Add link to document page in README.md
2024

2125
### Bug Fixes
2226

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
</p>
55

66
<p align="center">
7+
<a href="https://influxdb3-python.readthedocs.io/en/latest/">
8+
<img src="https://img.shields.io/readthedocs/influxdb3-python/latest" alt="Readthedocs document">
9+
</a>
710
<a href="https://pypi.org/project/influxdb3-python/">
811
<img src="https://img.shields.io/pypi/v/influxdb3-python.svg" alt="PyPI version">
912
</a>

docs/api_reference.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# API Reference
2+
3+
::: __init__.InfluxDBClient3
4+
options:
5+
members:
6+
- from_env
7+
- write
8+
- write_file
9+
- write_dataframe
10+
- query
11+
- query_dataframe
12+
- query_async
13+
- get_server_version
14+
- flush
15+
- close

docs/mkdocs.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,14 @@ site_name: InfluxDB 3.0 Python Client
22
docs_dir: .
33
nav:
44
- Home: index.md
5+
- API Reference: api_reference.md
56
plugins:
67
- include-markdown
8+
- mkdocstrings:
9+
handlers:
10+
python:
11+
paths: [ ../influxdb_client_3 ]
12+
options:
13+
summary: true
14+
show_symbol_type_toc: true
15+
show_symbol_type_heading: true

docs/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
mkdocs
22
mkdocs-include-markdown-plugin
3+
mkdocstrings
4+
mkdocstrings-python

influxdb_client_3/write_client/client/write_api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,7 @@ def __init__(self,
296296

297297
if self._write_options.write_type is WriteType.asynchronous:
298298
message = """The 'WriteType.asynchronous' is deprecated and will be removed in future major version.
299-
300-
You can use native asynchronous version of the client:
301-
- https://influxdb-client.readthedocs.io/en/stable/usage.html#how-to-use-asyncio
299+
You can use native asynchronous version of the client:
302300
"""
303301
# TODO above message has link to Influxdb2 API __NOT__ Influxdb3 API !!! - illustrates different API
304302
warnings.warn(message, DeprecationWarning)

0 commit comments

Comments
 (0)