Skip to content

Add strict to mkdocs #8

Add strict to mkdocs

Add strict to mkdocs #8

Workflow file for this run

name: Deploy MkDocs to Next.js
on:
push:
branches:
- main # or your default branch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: make install
- name: Build MkDocs site
run: poetry run mkdocs build --verbose
- name: Deploy to Next.js repo
env:
NEXT_REPO_TOKEN: ${{ secrets.NEXT_REPO_TOKEN }}
run: |
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
echo "Copying MkDocs site to Next.js repo..."
cp -rv public/docs/* 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