diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..3152d5e3 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,41 @@ +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 dependencies + run: | + python -m pip install --upgrade pip + pip install mkdocs # Add any other dependencies your MkDocs site needs + + - name: Build MkDocs site + run: mkdocs build + + - 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 'action@github.com' + git clone https://x-access-token:${NEXT_REPO_TOKEN}@github.com/shreyashankar/docetl-website.git next-repo + mkdir -p next-repo/public/docs + cp -r site/* next-repo/public/docs/ + cd next-repo + git add . + git commit -m "Update docs" || echo "No changes to commit" + git push diff --git a/docs/tutorial.md b/docs/tutorial.md index 506d2504..508cff2d 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -134,7 +134,7 @@ Create a file named `pipeline.yaml` with the following structure: ??? example "Full Pipeline Configuration" - ````yaml + ```yaml default_model: gpt-4o-mini datasets: diff --git a/mkdocs.yml b/mkdocs.yml index e98b32c8..52b01a80 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: docetl +site_name: docetl docs site_url: https://docetl.com/docs repo_url: https://github.com/shreyashankar/docetl repo_name: shreyashankar/docetl