Skip to content

Commit

Permalink
Add pointer to website
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyashankar committed Sep 13, 2024
1 parent 8709c33 commit 7cb1b3f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -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 '[email protected]'
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
2 changes: 1 addition & 1 deletion docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7cb1b3f

Please sign in to comment.