Skip to content

Commit

Permalink
Generate weaviate API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje committed Feb 7, 2024
1 parent 593af1f commit fb6aab4
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/weaviate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,9 @@ jobs:
- name: Run Weaviate container
run: docker-compose up -d

- name: Generate docs
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run docs

- name: Run tests
run: hatch run cov
28 changes: 28 additions & 0 deletions integrations/weaviate/pydoc/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
loaders:
- type: haystack_pydoc_tools.loaders.CustomPythonLoader
search_path: [../src]
modules: [
"haystack_integrations.document_stores.weaviate.document_store",
]
ignore_when_discovered: ["__init__"]
processors:
- type: filter
expression:
documented_only: true
do_not_filter_modules: false
skip_empty_modules: true
- type: smart
- type: crossref
renderer:
type: haystack_pydoc_tools.renderers.ReadmePreviewRenderer
excerpt: Weaviate integration for Haystack
category_slug: haystack-integrations
title: Weaviate
slug: integrations-weaviate
order: 1
markdown:
descriptive_class_title: false
descriptive_module_title: true
add_method_class_prefix: true
add_member_class_prefix: false
filename: _readme_weaviate.md
4 changes: 4 additions & 0 deletions integrations/weaviate/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ classifiers = [
dependencies = [
"haystack-ai",
"weaviate-client==3.*",
"haystack-pydoc-tools",
]

[project.urls]
Expand Down Expand Up @@ -62,6 +63,9 @@ cov = [
"test-cov",
"cov-report",
]
docs = [
"pydoc-markdown pydoc/config.yml"
]

[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
Expand Down

0 comments on commit fb6aab4

Please sign in to comment.