Skip to content

Commit

Permalink
chore: sphinx-autoapiをv3.1.0に上げる (#808)
Browse files Browse the repository at this point in the history
* chore: sphinx-autoapiをv3.1.0に上げる

* poetry.lockを修正

* poetry.lockをGHAの`ubuntu-22.04`が吐くやつに合わせる

* `exclude_patterns`にコメント
  • Loading branch information
qryxip authored Jul 22, 2024
1 parent d66a8b0 commit e22ec47
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 22 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/generate_document.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ jobs:
working-directory: "docs/apis/c_api/doxygen"
- name: Build voicevox_core_python_api
run: maturin develop --manifest-path ./crates/voicevox_core_python_api/Cargo.toml --locked
# https://github.com/readthedocs/sphinx-autoapi/issues/405
- name: Workaround to make Sphinx recognize `_rust` as a module
run: touch ./crates/voicevox_core_python_api/python/voicevox_core/_rust/__init__.py
- name: Generate Sphinx document
run: sphinx-build docs/apis/python_api public/apis/python_api
- name: Generate Javadoc
Expand Down
22 changes: 5 additions & 17 deletions crates/voicevox_core_python_api/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/voicevox_core_python_api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pydantic = ">=2.5.2,<3"
[tool.poetry.group.docs.dependencies]
sphinx = "6.2.1"
pydata-sphinx-theme = "0.14.1"
sphinx-autoapi = "3.0.0"
sphinx-autoapi = "3.1.0"

[tool.poetry.group.dev.dependencies]
maturin = "1.3.1"
Expand Down
2 changes: 1 addition & 1 deletion docs/apis/python_api/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
]

# templates_path = ['_templates']
exclude_patterns = []
exclude_patterns = ["autoapi/*/_rust/*"] # パブリックAPIを意図した部分ではなく、またorphan扱いとなって警告が出るため


# -- Options for HTML output -------------------------------------------------
Expand Down

0 comments on commit e22ec47

Please sign in to comment.