-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parsing errors and add mint.json (#243)
- Loading branch information
1 parent
9dce084
commit 2bb5acc
Showing
11 changed files
with
163 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: "build-docs" | ||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
- uses: actions/setup-python@v4 | ||
with: | ||
cache: "pip" | ||
python-version: '3.10' | ||
cache-dependency-path: settings.ini | ||
- name: Build docs | ||
run: | | ||
set -ux | ||
python -m pip install --upgrade pip | ||
pip install -Uq nbdev | ||
pip install -e ".[dev]" | ||
mkdir nbs/_extensions | ||
cp -r docs-scripts/mintlify/ nbs/_extensions/ | ||
python docs-scripts/update-quarto.py | ||
nbdev_docs | ||
- name: Apply final formats | ||
run: bash ./docs-scripts/docs-final-formatting.bash | ||
- name: Copy over necessary assets | ||
run: | | ||
cp nbs/mint.json _docs/mint.json | ||
cp docs-scripts/imgs/* _docs/ | ||
- name: Deploy to Mintlify Docs | ||
if: github.event_name == 'push' | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
[submodule "docs/assets"] | ||
path = docs/assets | ||
url = https://github.com/Nixtla/styles.git | ||
[submodule "docs-scripts"] | ||
path = docs-scripts | ||
url = [email protected]:Nixtla/docs.git | ||
branch = scripts |
Submodule docs-scripts
added at
d63d02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"$schema": "https://mintlify.com/schema.json", | ||
"name": "Nixtla", | ||
"logo": { | ||
"light": "/light.png", | ||
"dark": "/dark.png" | ||
}, | ||
"favicon": "/favicon.svg", | ||
"colors": { | ||
"primary": "#0E0E0E", | ||
"light": "#FAFAFA", | ||
"dark": "#0E0E0E", | ||
"anchors": { | ||
"from": "#2AD0CA", | ||
"to": "#0E00F8" | ||
} | ||
}, | ||
"topbarCtaButton": { | ||
"type": "github", | ||
"url": "https://github.com/Nixtla/hierarchicalforecast" | ||
}, | ||
"topAnchor": { | ||
"name": "HierarchicalForecast", | ||
"icon": "crown" | ||
}, | ||
"navigation": [ | ||
{ | ||
"group": "", | ||
"pages": ["index.html"] | ||
}, | ||
{ | ||
"group": "Getting Started", | ||
"pages": [ | ||
"examples/installation.html", | ||
"examples/tourismsmall.html", | ||
"examples/introduction.html" | ||
] | ||
}, | ||
{ | ||
"group": "Tutorials", | ||
"pages": [ | ||
{ | ||
"group": "Point Reconciliation", | ||
"pages": [ | ||
"examples/australiandomestictourism.html", | ||
"examples/australianprisonpopulation.html", | ||
"examples/nonnegativereconciliation.html" | ||
] | ||
}, | ||
{ | ||
"group": "Probabilistic Reconciliation", | ||
"pages": [ | ||
"examples/australiandomestictourism-intervals.html", | ||
"examples/australiandomestictourism-bootstraped-intervals.html", | ||
"examples/australiandomestictourism-permbu-intervals.html", | ||
"examples/tourismlarge-evaluation.html" | ||
] | ||
}, | ||
{ | ||
"group": "ML Forecast Reconciliation", | ||
"pages": [ | ||
"examples/hierarchicalforecast-gluonts.html", | ||
"examples/mlframeworksexample.html" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"group": "API Reference", | ||
"pages": [ | ||
"core.html", | ||
"methods.html", | ||
"probabilistic_methods.html", | ||
"evaluation.html", | ||
"utils.html" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.