Skip to content

Commit

Permalink
Fix import problem in docgen
Browse files Browse the repository at this point in the history
  • Loading branch information
aversey committed Jul 15, 2024
1 parent 8aebb63 commit 3597808
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/mkdocs-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:

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

- name: generate autodoc
run: python3 auto_doc.py
run: python3 ./python/auto_doc.py

- name: Cache local Maven repository
uses: actions/cache@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mkdocs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:

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

- name: generate autodoc
run: python3 auto_doc.py
run: python3 ./python/auto_doc.py

- name: Cache local Maven repository
uses: actions/cache@v2
Expand Down
2 changes: 1 addition & 1 deletion auto_doc.py → python/auto_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@
},
}

hw_dir = pathlib.Path(__file__).resolve().parents[0]
hw_dir = pathlib.Path(__file__).resolve().parents[1]
if "GITHUB_SHA" in os.environ:
commit_sha = os.environ["GITHUB_SHA"]
project_url = (
Expand Down
15 changes: 14 additions & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,20 @@ dev-pandas1 = [
"pandas<=1.5.3",
"sqlalchemy<=1.4.48",
]
dev = ["hopsworks[dev-no-opt,great-expectations]"]
dev-docs = [
"mkdocs==1.5.3",
"mkdocs-material==9.5.17",
"mike==2.0.0",
"sphinx==7.3.7",
"keras_autodoc @ git+https://[email protected]/logicalclocks/keras-autodoc",
"markdown-include==0.8.1",
"mkdocs-jupyter==0.24.3",
"markdown==3.6",
"pymdown-extensions==10.7.1",
"mkdocs-macros-plugin==1.0.4",
"mkdocs-minify-plugin>=0.2.0",
]
dev = ["hopsworks[dev-no-opt,great-expectations,dev-docs]"]

[build-system]
requires = ["setuptools", "wheel"]
Expand Down
11 changes: 0 additions & 11 deletions requirements-docs.txt

This file was deleted.

0 comments on commit 3597808

Please sign in to comment.