Skip to content

Merge branch 'main' of https://github.com/Alchemyst-ai/docs #10

Merge branch 'main' of https://github.com/Alchemyst-ai/docs

Merge branch 'main' of https://github.com/Alchemyst-ai/docs #10

Workflow file for this run

name: Generate Mintlify sitemap.xml
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: write
jobs:
sitemap:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Generate sitemap.xml (in developer-docs)
working-directory: developer-docs
env:
SITE_URL: https://getalchemystai.com/docs # change
DOCS_JSON: docs.json # relative to developer-docs/
DOCS_DIR: docs # relative to developer-docs/
SITEMAP_OUT_DIR: . # writes developer-docs/sitemap.xml
INCLUDE_ORPHANS: "false" # true if you want union with all mdx on disk
run: node scripts/generate-sitemap-from-docsjson.mjs
- name: Commit sitemap.xml
run: |
if git diff --quiet; then
echo "No changes to commit."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add developer-docs/sitemap.xml
git commit -m "chore(docs): update sitemap.xml"
git push