1212
1313env :
1414 HATCH_VERSION : " 1.14.2"
15- PYTHON_VERSION : " 3.9"
16- DOCS_REPO : " deepset-ai/haystack-docs"
17- DOCS_REPO_PATH : " reference/haystack-api"
15+ PYTHON_VERSION : " 3.11"
1816
1917jobs :
2018 sync :
@@ -34,21 +32,14 @@ jobs:
3432 - name : Install Hatch
3533 run : pip install hatch==${{ env.HATCH_VERSION }}
3634
37- - name : Generate API docs for Docusaurus
35+ - name : Generate API reference for Docusaurus
3836 # This command simply runs ./.github/utils/pydoc-markdown.sh with a specific config path
3937 run : hatch run readme:sync "../config_docusaurus/*"
4038
41- - name : Checkout Docusaurus repo
42- uses : actions/checkout@v5
43- with :
44- repository : ${{ env.DOCS_REPO }}
45- token : ${{ secrets.HAYSTACK_BOT_TOKEN }}
46- path : haystack-docs
47-
48- - name : Sync generated docs to Docusaurus repo
39+ - name : Sync generated API reference to docs folder
4940 run : |
5041 SOURCE_PATH="docs/pydoc/temp"
51- DEST_PATH="haystack- docs/${{ env.DOCS_REPO_PATH }} "
42+ DEST_PATH="docs-website/reference/haystack-api "
5243
5344 echo "Syncing from $SOURCE_PATH to $DEST_PATH"
5445 mkdir -p $DEST_PATH
@@ -57,12 +48,12 @@ jobs:
5748
5849 - name : Commit and push changes
5950 env :
60- GITHUB_TOKEN : ${{ secrets.HAYSTACK_BOT_TOKEN }}
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6152 run : |
6253 git config --global user.name "github-actions[bot]"
6354 git config --global user.email "github-actions[bot]@users.noreply.github.com"
6455
65- cd haystack- docs
56+ cd docs-website
6657
6758 if [[ -n $(git status -s) ]]; then
6859 echo "Syncing docs with Docusaurus..."
0 commit comments