Skip to content

Commit e3c0a95

Browse files
committed
Fix import problem in docgen
1 parent b72a638 commit e3c0a95

File tree

5 files changed

+19
-17
lines changed

5 files changed

+19
-17
lines changed

.github/workflows/mkdocs-main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121

2222
- name: install deps
2323
working-directory: ./python
24-
run: cp ../README.md . && pip3 install -r ../requirements-docs.txt && pip3 install -e .[dev]
24+
run: cp ../README.md . && pip3 install -e .[dev]
2525

2626
- name: generate autodoc
27-
run: python3 auto_doc.py
27+
run: python3 ./python/auto_doc.py
2828

2929
- name: Cache local Maven repository
3030
uses: actions/cache@v2

.github/workflows/mkdocs-release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626

2727
- name: install deps
2828
working-directory: ./python
29-
run: cp ../README.md . && pip3 install -r ../requirements-docs.txt && pip3 install -e .[dev]
29+
run: cp ../README.md . && pip3 install -e .[dev]
3030

3131
- name: generate autodoc
32-
run: python3 auto_doc.py
32+
run: python3 ./python/auto_doc.py
3333

3434
- name: Cache local Maven repository
3535
uses: actions/cache@v2

auto_doc.py python/auto_doc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@
682682
},
683683
}
684684

685-
hw_dir = pathlib.Path(__file__).resolve().parents[0]
685+
hw_dir = pathlib.Path(__file__).resolve().parents[1]
686686
if "GITHUB_SHA" in os.environ:
687687
commit_sha = os.environ["GITHUB_SHA"]
688688
project_url = (

python/pyproject.toml

+14-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,20 @@ dev-pandas1 = [
8686
"pandas<=1.5.3",
8787
"sqlalchemy<=1.4.48",
8888
]
89-
dev = ["hopsworks[dev-no-opt,great-expectations]"]
89+
dev-docs = [
90+
"mkdocs==1.5.3",
91+
"mkdocs-material==9.5.17",
92+
"mike==2.0.0",
93+
"sphinx==7.3.7",
94+
"keras_autodoc @ git+https://git@github.com/logicalclocks/keras-autodoc",
95+
"markdown-include==0.8.1",
96+
"mkdocs-jupyter==0.24.3",
97+
"markdown==3.6",
98+
"pymdown-extensions==10.7.1",
99+
"mkdocs-macros-plugin==1.0.4",
100+
"mkdocs-minify-plugin>=0.2.0",
101+
]
102+
dev = ["hopsworks[dev-no-opt,great-expectations,dev-docs]"]
90103

91104
[build-system]
92105
requires = ["setuptools", "wheel"]

requirements-docs.txt

-11
This file was deleted.

0 commit comments

Comments
 (0)