Skip to content

Commit

Permalink
fix_slugs
Browse files Browse the repository at this point in the history
  • Loading branch information
elephaint committed May 3, 2024
1 parent f67b2cf commit a7ac7bf
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 3 deletions.
12 changes: 9 additions & 3 deletions action_files/readme_com/modify_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,17 @@ def modify_markdown(
categories = {category["slug"]:category["id"] for category in response.json()}
if Path(file_path).name == 'CHANGELOG.md':
category_slug = 'getting-started'
slug = category_slug + '-' + slug
else:
if Path(file_path).parents[1].name == "docs":
category_slug = Path(file_path).parents[0].name
parent = Path(file_path).parents[0].name
grandparent = Path(file_path).parents[1].name
if grandparent == "docs":
category_slug = parent
slug = category_slug + '-' + slug
else:
category_slug = Path(file_path).parents[1].name
category_slug = grandparent
subcategory = parent
slug = category_slug + '-' + subcategory + '-' + slug
category = categories[category_slug]
except:
pass
Expand Down
29 changes: 29 additions & 0 deletions nbs/docs/capabilities/anomaly-detection/00_anomaly_detection.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "6de758ee-a0d2-4b3f-acff-eed419dd17c5",
"metadata": {},
"source": [
"# Anomaly detection"
]
},
{
"cell_type": "markdown",
"id": "5d267032-535b-4b7b-b7d3-d2db8f673af6",
"metadata": {},
"source": [
"This section shows the capabilities TimeGPT offers for anomaly detection."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "python3",
"language": "python",
"name": "python3"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
29 changes: 29 additions & 0 deletions nbs/docs/capabilities/forecast/00_forecast.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "6de758ee-a0d2-4b3f-acff-eed419dd17c5",
"metadata": {},
"source": [
"# Forecast"
]
},
{
"cell_type": "markdown",
"id": "5d267032-535b-4b7b-b7d3-d2db8f673af6",
"metadata": {},
"source": [
"This section shows the capabilities TimeGPT offers for forecasting."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "python3",
"language": "python",
"name": "python3"
}
},
"nbformat": 4,
"nbformat_minor": 5
}

0 comments on commit a7ac7bf

Please sign in to comment.