Skip to content

Commit

Permalink
docs: add docstrings to core client and pdoc for sdk reference genera…
Browse files Browse the repository at this point in the history
…tion (#370)



---------

Co-authored-by: ChrisTho23 <[email protected]>
  • Loading branch information
marcklingen and ChrisTho23 authored Mar 4, 2024
1 parent 0a1c47a commit e6876fd
Show file tree
Hide file tree
Showing 9 changed files with 1,068 additions and 45 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1
with:
args: --config ci.ruff.toml

ci:
runs-on: ubuntu-latest
Expand Down
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ dist/
*.egg-info/
.pytest_cache/

playground

# pyenv
.python-version

Expand All @@ -24,5 +26,8 @@ dmypy.json

.DS_Store

playground
tests/mocks/llama-index-storage
# Docs
docs

# Llamaindex
tests/mocks/llama-index-storage
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"njpwerner.autodocstring",
"charliermarsh.ruff"
]
}
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,19 @@ poetry run pre-commit install
- Create PyPi API token: https://pypi.org/manage/account/token/
- Setup: `poetry config pypi-token.pypi your-api-token`
9. Create a release on GitHub with the changelog

### SDK Reference

Note: The generated SDK reference is currently work in progress.

The SDK reference is generated via pdoc. To update the reference, run the following command:

```sh
poetry run pdoc -o docs/ --docformat google langfuse
```

You need to have all extra dependencies installed to generate the reference.

```sh
poetry install --all-extras
```
4 changes: 4 additions & 0 deletions ci.ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This is the Ruff config used in CI.
# In development, ruff.toml is used instead.

target-version = 'py38'
Loading

0 comments on commit e6876fd

Please sign in to comment.