Skip to content

Commit

Permalink
move directories
Browse files Browse the repository at this point in the history
  • Loading branch information
zainhoda committed Aug 2, 2023
1 parent c36cdaa commit 7c28125
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 574 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
- run: pip install pdoc
- run: pip install .
- run: pdoc vanna --logo https://img.vanna.ai/vanna-ref.svg --logo-link https://docs.vanna.ai --no-show-source --mermaid --docformat google -n -o docs
- run: python docs/sidebar.py docs/sidebar.yaml docs
- run: python docs/sidebar.py docs/sidebar.yaml notebooks docs
- run: ghp-import -n -p -f docs
4 changes: 3 additions & 1 deletion docs/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
# Get the directory to search for the .ipynb files from the command line
notebook_dir = sys.argv[2]

# Get the output directory from the command line
output_dir = sys.argv[3]

def generate_html(sidebar_data, current_path: str):
html = '<ul class="space-y-2">\n'
Expand Down Expand Up @@ -72,6 +74,6 @@ def read_yaml_file(file_path):
(body, resources) = html_exporter.from_notebook_node(current_notebook)

# Write body to file
with open(os.path.join(notebook_dir, f'{notebook_name}.html'), 'w') as file:
with open(os.path.join(output_dir, f'{notebook_name}.html'), 'w') as file:
file.write(body.replace('<!-- NAV HERE -->', html_code))

572 changes: 0 additions & 572 deletions docs/vn-ask.ipynb

This file was deleted.

File renamed without changes.
30 changes: 30 additions & 0 deletions notebooks/streamlit.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"<iframe\n",
" src=\"https://demo.vanna.ai/?embed=true\"\n",
" height=\"450\"\n",
" style=\"width:100%;border:none;\"\n",
"></iframe>"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": []
}
],
"metadata": {
"language_info": {
"name": "python"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit 7c28125

Please sign in to comment.