Skip to content

Commit

Permalink
Merge pull request #34 from Sindri-Labs/kp-fix-docs-build
Browse files Browse the repository at this point in the history
Fix docs build
  • Loading branch information
KPreisner authored Mar 18, 2024
2 parents dcb7147 + a790c9c commit 30b4301
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
python-version: 3.10.6
- run: |
pip install requests>=2.13.0 lazydocs
pip install requests>=2.13.0 lazydocs==0.4.8
- run: |
TAG=${{ github.ref_name }} ./build-docs.sh
Expand Down
7 changes: 5 additions & 2 deletions build-docs.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#!/usr/bin/env bash

set -e

mkdir -p docs/docstrings

TAG="${TAG:-main}"

# pip install requests>=2.13.0 lazydocs
# pip install requests>=2.13.0 lazydocs==0.4.8
lazydocs \
--output-path="docs/docstrings" \
--overview-file="README.md" \
--src-base-url="https://github.com/Sindri-Labs/sindri-python/blob/$TAG/" \
--no-watermark \
src/sindri
src/sindri/sindri.py
7 changes: 5 additions & 2 deletions local-run-docs.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
#!/usr/bin/env bash

set -e

mkdir -p docs/docstrings


TAG="${TAG:-main}"

# pip install requests>=2.13.0 lazydocs
# pip install requests>=2.13.0 lazydocs==0.4.8
lazydocs \
--output-path="./docs/docstrings" \
--overview-file="README.md" \
--src-base-url="https://github.com/Sindri-Labs/sindri-python/blob/$TAG/" \
--no-watermark \
src/sindri
src/sindri/sindri.py

# pip install mkdocs mkdocs-awesome-pages-plugin
echo "Hosting docs on http://localhost:1111"
Expand Down

0 comments on commit 30b4301

Please sign in to comment.