Skip to content

Commit

Permalink
update pydoc
Browse files Browse the repository at this point in the history
  • Loading branch information
sunli829 committed Feb 5, 2025
1 parent dc7d3f4 commit 6eef0bf
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
components: rust-docs
- uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.13"
- name: Setup node
uses: actions/setup-node@v3
with:
Expand All @@ -45,7 +45,7 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: "x86_64"
args: -i python3.9 --out dist -m python/Cargo.toml
args: -i python3.13 --out dist -m python/Cargo.toml
- name: Install built wheel
run: |
pip install longport --no-index --find-links dist --force-reinstall
Expand Down
3 changes: 0 additions & 3 deletions python/docs/config.md

This file was deleted.

6 changes: 3 additions & 3 deletions python/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

## References

- [Config](https://longportapp.github.io/openapi-sdk/python/config/)
- [Config](reference_all.md#longport.openapi.Config)

The configuration of the SDK.

- [QuoteContext](https://longportapp.github.io/openapi-sdk/python/quote_context/)
- [QuoteContext](reference_all.md#longport.openapi.QuoteContext)

The Quote API part of the SDK, e.g.: get basic information of securities, subscribe quotes...

- [TradeContext](https://longportapp.github.io/openapi-sdk/python/trade_context/)
- [TradeContext](reference_all.md#longport.openapi.TradeContext)

The Trade API part of the SDK, e.g.: submit order, get order status...

Expand Down
3 changes: 0 additions & 3 deletions python/docs/quote_context.md

This file was deleted.

10 changes: 5 additions & 5 deletions python/docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mkdocs==1.3.0
mkdocstrings==0.18.1
mkdocstrings-python==0.6.6
Jinja2==3.1.0
semver==2.13.0
mkdocs>=1.6.1
mkdocstrings>=0.28.0
mkdocstrings-python>=1.14.4
Jinja2>=3.1.5
semver>=3.0.4
3 changes: 0 additions & 3 deletions python/docs/trade_context.md

This file was deleted.

12 changes: 4 additions & 8 deletions python/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
site_name: LongPort OpenAPI SDK
docs_dir: docs

# theme:
# name: readthedocs
theme:
name: readthedocs

nav:
- Index: index.md
- Code Reference:
- Config: config.md
- QuoteContext: quote_context.md
- TradeContext: trade_context.md
- All: reference_all.md

markdown_extensions:
Expand All @@ -24,11 +21,10 @@ plugins:
- mkdocstrings:
handlers:
python:
import:
inventories:
- https://docs.python.org/3/objects.inv
selection:
options:
docstring_style: google
rendering:
show_source: false
show_if_no_docstring: true
members_order: source
Expand Down
2 changes: 1 addition & 1 deletion python/pysrc/longport/openapi.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5178,7 +5178,7 @@ class TradeContext:
Get order detail
Args:
order id: Order id
order_id: Order id
Returns:
Order detail
Expand Down

0 comments on commit 6eef0bf

Please sign in to comment.