Skip to content

Update deploy to v4 and add redirects #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ concurrency:

jobs:
deploy-book:
runs-on: ubuntu-latest
runs-on:
group: databricks-protected-runner-group
labels: linux-ubuntu-latest
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
pages: write
Expand Down Expand Up @@ -48,4 +50,4 @@ jobs:
# Deploy the book's HTML to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
3 changes: 2 additions & 1 deletion dev/build_requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
jupyter-book
jupyter-book
sphinx-reredirects
1 change: 1 addition & 0 deletions dev/dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ git+https://github.com/unitycatalog/unitycatalog.git#subdirectory=ai/integration
tabulate
pandas
pyspark
sphinx-reredirects
39 changes: 35 additions & 4 deletions genai_cookbook/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ logo: logo2.png
# Force re-execution of notebooks on each build.
# See https://jupyterbook.org/content/execute.html
execute:
execute_notebooks: 'off'
execute_notebooks: "off"

# Information about where the book exists on the web
repository:
url: https://github.com/databricks/genai-cookbook/tree/v0.2.0/agent_app_sample_code
path_to_book: ../genai_cookbook # Optional path to your book, relative to the repository root
branch: main # Which branch of the repository should be used when creating links (optional)
path_to_book: ../genai_cookbook # Optional path to your book, relative to the repository root
branch: main # Which branch of the repository should be used when creating links (optional)

# Add GitHub buttons to your book
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
Expand All @@ -27,4 +27,35 @@ html:
use_multitoc_numbering: false
sphinx:
config:
html_show_copyright: false
html_show_copyright: false
redirects:
index: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/index.html"
index-2: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/introduction.html"
nbs/1-introduction-to-agents: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/rag-overview.html"
nbs/2-fundamentals-unstructured: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/fundamentals-retrieval-augmented-generation.html"
nbs/2-fundamentals-unstructured-data-pipeline: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/fundamentals-data-pipeline-steps.html"
nbs/2-fundamentals-unstructured-chain: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/fundamentals-inference-chain-rag.html"
nbs/2-fundamentals-unstructured-eval: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/fundamentals-evaluation-monitoring-rag.html"
nbs/2-fundamentals-unstructured-llmops: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/fundamentals-governance-llmops.html"
nbs/3-deep-dive: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/quality-overview.html"
nbs/3-deep-dive-data-pipeline: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/quality-data-pipeline-rag.html"
nbs/3-deep-dive-chain: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/quality-rag-chain.html"
nbs/4-evaluation: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/evaluate-rag-overview.html"
nbs/4-evaluation-eval-sets: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/evaluate-define-quality.html"
nbs/4-evaluation-metrics: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/evaluate-assess-performance.html"
nbs/4-evaluation-infra: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/evaluate-enable-measurement.html"
nbs/5-rag-development-workflow: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/evaluation-driven-development.html"
10-min-demo/Mosaic-AI-Agents-10-Minute-Demo: "https://docs.databricks.com/generative-ai/tutorials/agent-framework-notebook.html"
nbs/5-hands-on-requirements: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/implementation/prerequisites.html"
nbs/6-implement-overview: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/implementation/step-1-clone-repository.html"
nbs/5-hands-on-build-poc: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/implementation/step-2-build-poc.html"
nbs/5-hands-on-curate-eval-set: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/implementation/step-3-evaluation-set.html"
nbs/5-hands-on-evaluate-poc: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/implementation/step-4-evaluate-quality.html"
nbs/5-hands-on-improve-quality-step-1: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/implementation/step-5-root-cause-analysis.html"
nbs/5-hands-on-improve-quality-step-1-retrieval: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/implementation/step-5-debug-retrieval-quality.html"
nbs/5-hands-on-improve-quality-step-1-generation: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/implementation/step-5-debug-generation-quality.html"
nbs/5-hands-on-improve-quality-step-2: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/implementation/step-6-improve-quality.html"
nbs/5-hands-on-improve-quality-step-2-data-pipeline: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/implementation/step-6-improve-data-pipeline.html"
nbs/5-hands-on-deploy-and-monitor: "https://docs.databricks.com/generative-ai/tutorials/ai-cookbook/implementation/step-7-deploy-and-monitor.html"
extra_extensions:
- sphinx_reredirects
3 changes: 0 additions & 3 deletions genai_cookbook/redirects/external-sites.json

This file was deleted.

Loading