diff --git a/.github/workflows/build-docs.yaml b/.github/workflows/build-docs.yaml index db003fa1..7574408a 100644 --- a/.github/workflows/build-docs.yaml +++ b/.github/workflows/build-docs.yaml @@ -14,9 +14,14 @@ jobs: build-docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Clone repo + uses: actions/checkout@v3 + - name: Clone docs repo + uses: actions/checkout@v3 with: - submodules: 'recursive' + repository: Nixtla/docs + ref: scripts + path: docs-scripts - uses: actions/setup-python@v4 with: cache: "pip" @@ -35,6 +40,8 @@ jobs: run: | cp nbs/mint.json _docs/mint.json cp docs-scripts/imgs/* _docs/ + - name: Configure redirects for gh-pages + run: python docs-scripts/configure-redirects.py mlforecast - name: Deploy to Mintlify Docs if: github.event_name == 'push' uses: peaceiris/actions-gh-pages@v3 @@ -42,7 +49,14 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_branch: docs publish_dir: ./_docs - # The following lines assign commit authorship to the official GH-Actions bot for deploys to `docs` branch. - # You can swap them out with your own user credentials. + user_name: github-actions[bot] + user_email: 41898282+github-actions[bot]@users.noreply.github.com + - name: Deploy to Github Pages + if: github.event_name == 'push' + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: gh-pages + publish_dir: ./gh-pages user_name: github-actions[bot] user_email: 41898282+github-actions[bot]@users.noreply.github.com diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml deleted file mode 100644 index 8d077a76..00000000 --- a/.github/workflows/deploy.yaml +++ /dev/null @@ -1,9 +0,0 @@ -name: Deploy to GitHub Pages -on: - push: - branches: ["main"] - workflow_dispatch: -jobs: - deploy: - runs-on: ubuntu-latest - steps: [uses: fastai/workflows/quarto-ghp@master] diff --git a/.gitmodules b/.gitmodules index d785203a..e69de29b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +0,0 @@ -[submodule "docs-scripts"] - path = docs-scripts - url = https://github.com/Nixtla/docs.git - branch = scripts diff --git a/docs-scripts b/docs-scripts deleted file mode 160000 index d63d0269..00000000 --- a/docs-scripts +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d63d02696ad23a3104636207152d2ac393291315