From 20c1dde585a71d0a6fd097e0e9d0c860ad6e0c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Morales?= Date: Wed, 8 Nov 2023 14:35:00 -0600 Subject: [PATCH] redirect to mintlify docs (#34) --- .github/workflows/build-docs.yaml | 24 +++++++++++++++++++----- .github/workflows/ci.yaml | 2 ++ .github/workflows/deploy.yaml | 15 --------------- .gitmodules | 4 ---- docs-scripts | 1 - 5 files changed, 21 insertions(+), 25 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 eee79fc..41d9c67 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" @@ -26,7 +31,7 @@ jobs: run: | set -ux python -m pip install --upgrade pip - pip install -Uq nbdev PyYAML + pip install -Uq nbdev pip install -e ".[dev]" mkdir nbs/_extensions cp -r docs-scripts/mintlify/ nbs/_extensions/ @@ -45,7 +50,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 utilsforecast + - 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/ci.yaml b/.github/workflows/ci.yaml index 5f1acd4..cac8ca5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -57,7 +57,9 @@ jobs: cache: 'pip' - name: Install dependencies + shell: bash run: pip3 install . nbdev - name: Run tests + shell: bash run: nbdev_test --do_print --timing --skip_file_re '(plotting|target_transforms)' diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml deleted file mode 100644 index bbf74a1..0000000 --- a/.github/workflows/deploy.yaml +++ /dev/null @@ -1,15 +0,0 @@ -name: Deploy to GitHub Pages - -permissions: - contents: write - pages: write - -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 d785203..e69de29 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 d63d026..0000000 --- a/docs-scripts +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d63d02696ad23a3104636207152d2ac393291315