From 39b875c35f4fb25671a49738383bab1e56090eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Morales?= Date: Wed, 8 Nov 2023 13:21:59 -0600 Subject: [PATCH] redirect to mintlify docs --- .github/workflows/build-docs.yaml | 22 ++++++++++++++++++---- .github/workflows/deploy.yaml | 9 --------- .gitmodules | 4 ---- docs-scripts | 1 - 4 files changed, 18 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/deploy.yaml delete mode 160000 docs-scripts diff --git a/.github/workflows/build-docs.yaml b/.github/workflows/build-docs.yaml index 8209bdabe..e07644fdf 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" @@ -46,7 +51,16 @@ 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: Configure redirects for gh-pages + run: python docs-scripts/configure-redirects.py statsforecast + - 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 8d077a768..000000000 --- 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 d785203a9..e69de29bb 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 d63d02696..000000000 --- a/docs-scripts +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d63d02696ad23a3104636207152d2ac393291315