From 7cb1b3f444056c4db875da7ec5a320380051db73 Mon Sep 17 00:00:00 2001 From: Shreya Shankar Date: Fri, 13 Sep 2024 10:33:03 -0700 Subject: [PATCH] Add pointer to website --- .github/workflows/docs.yml | 41 ++++++++++++++++++++++++++++++++++++++ docs/tutorial.md | 2 +- mkdocs.yml | 2 +- 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/docs.yml 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