Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: docs building using pdoc3 #89

Merged
merged 1 commit into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 24 additions & 9 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,37 @@ on:
branches:
- main

# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: write
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
- run: pip install pdoc3
- run: pdoc --html --output-dir docs zep_python
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install -r docs/requirements.txt
- run: mkdocs gh-deploy --force
# Upload docs folder as artifact
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all format lint test tests
.PHONY: all format lint test test coverage docs

all: help

Expand All @@ -8,6 +8,9 @@ coverage:
--cov-report xml \
--cov-report term-missing:skip-covered

docs:
poetry run pdoc --html --output-dir docs zep_python

format:
poetry run black .
poetry run ruff --select I --fix .
Expand Down
1 change: 0 additions & 1 deletion docs/documents.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/exceptions.md

This file was deleted.

18 changes: 0 additions & 18 deletions docs/index.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/memory.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/models_document.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/models_memory.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/requirements.txt

This file was deleted.

4 changes: 0 additions & 4 deletions docs/zep_client.md

This file was deleted.

63 changes: 0 additions & 63 deletions mkdocs.yml

This file was deleted.

72 changes: 53 additions & 19 deletions poetry.lock

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

4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ black = "^23.3.0"
ruff = "^0.0.265"
mypy = "^1.2.0"
pre-commit = "^3.3.1"
mkdocs = "^1.4.3"
mkdocstrings = {version = "0.21.2", extras = ["python"]}
mkdocs-material = "^9.1.13"
pytest-httpx = "^0.22.0"
faker = "^19.2.0"
python-dotenv = "^1.0.0"
pdoc3 = "^0.10.0"

[build-system]
requires = ["poetry-core"]
Expand Down