Skip to content

Commit

Permalink
Merge pull request #14 from MKhalusova/workflows
Browse files Browse the repository at this point in the history
GitHub workflows & toctree
  • Loading branch information
Mishig committed Feb 1, 2024
2 parents c1c87fb + ad3bf7f commit e4df795
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build documentation

on:
push:
branches:
- main

jobs:
build:
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@main
with:
commit_sha: ${{ github.sha }}
package: cookbook
package_name: cookbook
path_to_docs: cookbook/notebooks/
additional_args: --not_python_module
languages: en
convert_notebooks: true
secrets:
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
21 changes: 21 additions & 0 deletions .github/workflows/build_pr_documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build PR Documentation

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@main
with:
commit_sha: ${{ github.event.pull_request.head.sha }}
pr_number: ${{ github.event.number }}
package: cookbook
package_name: cookbook
path_to_docs: cookbook/notebooks/
additional_args: --not_python_module
languages: en
convert_notebooks: true
17 changes: 17 additions & 0 deletions .github/workflows/upload_pr_documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Upload PR Documentation

on:
workflow_run:
workflows: ["Build PR Documentation"]
types:
- completed

jobs:
build:
uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@main
with:
package_name: cookbook
hub_base_path: https://moon-ci-docs.huggingface.co/learn
secrets:
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions notebooks/en/_toctree.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- title: Open-Source AI Cookbook
sections:
- local: index
title: Open-Source AI Cookbook
- local: FAISS_with_HF_datasets_and_CLIP
title: Embedding multimodal data for similarity search
- local: Fine_tuning_Code_LLM_on_single_GPU
title: Fine-tuning a Code LLM on Custom Code on a single GPU
- local: RAG_zephyr_langchain
title: Simple RAG using Hugging Face Zephyr and LangChain
- local: advanced_RAG
title: Advanced RAG on HuggingFace documentation using LangChain
- local: RAG_evaluation
title: RAG Evaluation
File renamed without changes.
3 changes: 3 additions & 0 deletions notebooks/en/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Open-Source AI Cookbook

we cooking

0 comments on commit e4df795

Please sign in to comment.