Skip to content

Commit

Permalink
chore: add faq docs (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
AzulGarza authored Nov 9, 2023
2 parents e0dcc35 + 00edd77 commit 34704fe
Show file tree
Hide file tree
Showing 5 changed files with 529 additions and 5 deletions.
2 changes: 1 addition & 1 deletion action_files/create_readme_docs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

BASE_DIR="nbs/docs/"
SUB_DIRS=("getting-started" "tutorials" "how-to-guides")
SUB_DIRS=("getting-started" "tutorials" "how-to-guides" "misc")

counter=0
for sub_dir in "${SUB_DIRS[@]}"; do
Expand Down
5 changes: 2 additions & 3 deletions action_files/modify_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def to_snake_case(s):


def merge_lines(md_text):
code_block_pattern = re.compile(r"``` python([\s\S]*?)```", re.MULTILINE)
code_block_pattern = re.compile(r"``` (?:python|bash)([\s\S]*?)```", re.MULTILINE)
code_blocks = code_block_pattern.findall(md_text)
md_text_no_code = code_block_pattern.sub("CODEBLOCK", md_text)
lines = md_text_no_code.split("\n")
Expand Down Expand Up @@ -75,7 +75,6 @@ def modify_markdown(
title: "{title}"
slug: "{slug}"
order: {slug_number}
excerpt: "Learn how to do {title} with TimeGPT"
category: {category}
hidden: false
---
Expand All @@ -88,7 +87,7 @@ def modify_markdown(

# Modify image paths
content = content.replace("![figure](../../", f"![figure]({host_url}/nbs/")
pattern_image = re.compile(r"!\[\]\(((?!\.svg)*?)\)")
pattern_image = re.compile(r"!\[\]\(((?!.*\.svg).*?)\)")
modified_content = pattern_image.sub(
r"![](" + host_url + dir_path + r"\1)", content
)
Expand Down
5 changes: 4 additions & 1 deletion nbs/docs/getting-started/1_getting_started_short.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"source": [
"# TimeGPT Quickstart\n",
"\n",
"> Unlock the power of accurate predictions and confidently navigate uncertainty. Reduce uncertainty and resource limitations. With TimeGPT, you can effortlessly access state-of-the-art models to make data-driven decisions. Whether you're a bank forecasting market trends or a startup predicting product demand, TimeGPT democratizes access to cutting-edge predictive insights."
"> Unlock the power of accurate predictions and confidently navigate uncertainty. Reduce uncertainty and resource limitations.\n",
"> With TimeGPT, you can effortlessly access state-of-the-art models to make data-driven decisions. Whether you're a bank\n",
"> forecasting market trends or a startup predicting product demand, TimeGPT democratizes access to cutting-edge predictive\n",
"> insights."
]
},
{
Expand Down
520 changes: 520 additions & 0 deletions nbs/docs/misc/0_faqs.ipynb

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions nbs/sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ website:
contents: docs/tutorials/*
- section: "How-To Guides"
contents: docs/how-to-guides/*
- section: "FAQS & Misc"
contents: docs/misc/*
- section: "API Reference"
contents:
- timegpt.ipynb
Expand Down

0 comments on commit 34704fe

Please sign in to comment.