Skip to content

Commit

Permalink
redirect to mintlify docs (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoralez authored Nov 8, 2023
1 parent 2812ef0 commit 20c1dde
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 25 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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/
Expand All @@ -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
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
15 changes: 0 additions & 15 deletions .github/workflows/deploy.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
[submodule "docs-scripts"]
path = docs-scripts
url = https://github.com/Nixtla/docs.git
branch = scripts
1 change: 0 additions & 1 deletion docs-scripts
Submodule docs-scripts deleted from d63d02

0 comments on commit 20c1dde

Please sign in to comment.