Skip to content

Commit 6b997a0

Browse files
committed
docs
1 parent d450fd6 commit 6b997a0

File tree

4 files changed

+43
-13
lines changed

4 files changed

+43
-13
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
build:
3-
os: "ubuntu-20.04"
3+
os: "ubuntu-22.04"
44
tools:
55
python: "3.12"
66
python:

docs/source/conf.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,23 @@
66

77
# -- Path setup --------------------------------------------------------------
88

9+
import logging
10+
911
# If extensions (or modules to document with autodoc) are in another directory,
1012
# add these directories to sys.path here. If the directory is relative to the
1113
# documentation root, use os.path.abspath to make it absolute, like shown here.
1214
#
1315
import os
1416
import sys
1517

16-
sys.path.insert(0, os.path.abspath("../../src"))
18+
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../../src")))
19+
20+
print(sys.path)
21+
logging.warning(sys.path)
22+
23+
import zvt
1724

25+
logging.warning(zvt.zvt_env)
1826

1927
# -- Project information -----------------------------------------------------
2028

@@ -68,3 +76,5 @@
6876
autodoc_default_options = {
6977
"member-order": "bysource",
7078
}
79+
if __name__ == "__main__":
80+
pass

requirements/docs.txt

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,23 @@ sphinx_autodoc_typehints==3.0.1
33
rst2pdf==0.103.1
44
ipython==8.29.0
55
sphinx_rtd_theme==3.0.2
6-
readthedocs-sphinx-search==0.3.2
6+
readthedocs-sphinx-search==0.3.2
7+
requests==2.32.0
8+
SQLAlchemy==2.0.36
9+
pandas==2.2.3
10+
pydantic==2.6.4
11+
arrow==1.2.3
12+
openpyxl==3.1.1
13+
demjson3==3.0.6
14+
plotly==5.13.0
15+
dash==2.18.2
16+
jqdatapy==0.1.8
17+
dash-bootstrap-components==1.3.1
18+
dash_daq==0.5.0
19+
scikit-learn==1.5.2
20+
fastapi==0.110.0
21+
fastapi-pagination==0.12.23
22+
apscheduler==3.10.4
23+
eastmoneypy==0.1.9
24+
orjson==3.10.3
25+
numpy==2.1.3

src/zvt/__init__.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -232,18 +232,19 @@ def old_db_to_provider_dir(data_path):
232232

233233
# register to meta
234234
import zvt.contract as zvt_contract
235-
import zvt.recorders as zvt_recorders
236-
import zvt.factors as zvt_factors
237235

238-
import platform
236+
# import zvt.recorders as zvt_recorders
237+
import zvt.factors as zvt_factors
239238

240-
if platform.system() == "Windows":
241-
try:
242-
import zvt.recorders.qmt as qmt_recorder
243-
except Exception as e:
244-
logger.error("QMT not work", e)
245-
else:
246-
logger.warning("QMT need run in Windows!")
239+
# import platform
240+
#
241+
# if platform.system() == "Windows":
242+
# try:
243+
# import zvt.recorders.qmt as qmt_recorder
244+
# except Exception as e:
245+
# logger.error("QMT not work", e)
246+
# else:
247+
# logger.warning("QMT need run in Windows!")
247248

248249

249250
__all__ = ["zvt_env", "zvt_config", "init_log", "init_env", "init_config", "__version__"]

0 commit comments

Comments
 (0)