Skip to content

Commit

Permalink
Merge pull request #1479 from weaviate/pipeline_docs
Browse files Browse the repository at this point in the history
Add pipeline to test docs build
  • Loading branch information
dirkkul authored Dec 12, 2024
2 parents 584a3c7 + 7ec3b24 commit eac93c3
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 120 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
run: |
python -m build
python -m twine check dist/*
- name: Build the docs (results don't matter)
run: |
cd docs
python -m sphinx -T -b html -d _build/doctrees -D language=en . html
type-checking:
name: Run Type Checking
Expand Down Expand Up @@ -309,7 +313,6 @@ jobs:
if: ${{ github.event.pull_request.head.repo.fork }}
run: pytest -v -n auto integration


build-and-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
needs: [integration-tests, unit-tests, lint-and-format, type-checking, test-package]
Expand Down
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
import os
import sys

from importlib.metadata import version, PackageNotFoundError
from importlib.metadata import PackageNotFoundError
from importlib.metadata import version as version_func

# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
Expand All @@ -28,7 +29,7 @@ def chdir(directory):


try:
dist = version("weaviate")
version = version_func("weaviate")
except PackageNotFoundError:
# The project is not installed in readthedocs environment. Read the version with setuptools_scm.
import setuptools_scm
Expand Down
26 changes: 0 additions & 26 deletions docs/weaviate.cluster.rst

This file was deleted.

16 changes: 0 additions & 16 deletions docs/weaviate.collections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ weaviate.collections.aggregate module
:undoc-members:
:show-inheritance:

weaviate.collections.base module
--------------------------------

.. automodule:: weaviate.collections.base
:members:
:undoc-members:
:show-inheritance:

weaviate.collections.collection module
--------------------------------------

Expand Down Expand Up @@ -85,14 +77,6 @@ weaviate.collections.iterator module
:undoc-members:
:show-inheritance:

weaviate.collections.orm module
-------------------------------

.. automodule:: weaviate.collections.orm
:members:
:undoc-members:
:show-inheritance:

weaviate.collections.query module
---------------------------------

Expand Down
50 changes: 0 additions & 50 deletions docs/weaviate.gql.rst

This file was deleted.

26 changes: 26 additions & 0 deletions docs/weaviate.rbac.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
weaviate.rbac
===============

.. automodule:: weaviate.rbac
:members:
:undoc-members:
:show-inheritance:

Submodules
----------

weaviate.rbac.models module
-----------------------------

.. automodule:: weaviate.rbac.models
:members:
:undoc-members:
:show-inheritance:

weaviate.rbac.roles module
-----------------------------

.. automodule:: weaviate.rbac.roles
:members:
:undoc-members:
:show-inheritance:
24 changes: 1 addition & 23 deletions docs/weaviate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,9 @@ Subpackages
:maxdepth: 4

weaviate.backup
weaviate.batch
weaviate.classification
weaviate.cluster
weaviate.collections
weaviate.connect
weaviate.contextionary
weaviate.data
weaviate.gql
weaviate.proto
weaviate.schema
weaviate.rbac

Submodules
----------
Expand Down Expand Up @@ -67,13 +60,6 @@ weaviate.embedded module
:undoc-members:
:show-inheritance:

weaviate.error\_msgs module
---------------------------

.. automodule:: weaviate.error_msgs
:members:
:undoc-members:
:show-inheritance:

weaviate.exceptions module
--------------------------
Expand All @@ -98,11 +84,3 @@ weaviate.util module
:members:
:undoc-members:
:show-inheritance:

weaviate.warnings module
------------------------

.. automodule:: weaviate.warnings
:members:
:undoc-members:
:show-inheritance:
2 changes: 0 additions & 2 deletions weaviate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
connect,
embedded,
exceptions,
gql,
outputs,
types,
)
Expand Down Expand Up @@ -69,7 +68,6 @@
"connect",
"embedded",
"exceptions",
"gql",
"outputs",
"types",
"use_async_with_custom",
Expand Down

0 comments on commit eac93c3

Please sign in to comment.