Skip to content

Commit

Permalink
Update config
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyashankar committed Sep 13, 2024
1 parent 0050fc8 commit 036b5f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: make install

- name: Build MkDocs site
run: poetry run mkdocs build
run: poetry run mkdocs build --verbose

- name: Deploy to Next.js repo
env:
Expand All @@ -34,10 +34,16 @@ jobs:
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
git clone https://x-access-token:${NEXT_REPO_TOKEN}@github.com/shreyashankar/docetl-website.git next-repo
echo "Removing existing docs directory..."
rm -rf next-repo/public/docs
echo "Creating new docs directory..."
mkdir -p next-repo/public/docs
cp -r site/* next-repo/public/docs/
echo "Copying MkDocs site to Next.js repo..."
cp -rv site/* next-repo/public/docs/
cd next-repo
echo "Contents of public/docs directory:"
ls -R public/docs
git add .
git status
git commit -m "Update docs" || echo "No changes to commit"
git push
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
site_name: docetl docs
site_url: https://docetl.com/docs/
use_directory_urls: false
repo_url: https://github.com/shreyashankar/docetl
repo_name: shreyashankar/docetl
remote_branch: gh-pages
Expand Down

0 comments on commit 036b5f4

Please sign in to comment.